diff options
author | Stuart Hastings <stuart@apple.com> | 2011-05-12 23:36:41 +0000 |
---|---|---|
committer | Stuart Hastings <stuart@apple.com> | 2011-05-12 23:36:41 +0000 |
commit | 5adc64638084c1b8d33ac56e2498b83f1f4bd6e2 (patch) | |
tree | 18fe7fa4f94db8aed38de295b2a29b0b98c9427d /test/CodeGen/Thumb2/thumb2-cbnz.ll | |
parent | 6175e03825070f53b17deeb9156935ac1ac06672 (diff) | |
download | external_llvm-5adc64638084c1b8d33ac56e2498b83f1f4bd6e2.zip external_llvm-5adc64638084c1b8d33ac56e2498b83f1f4bd6e2.tar.gz external_llvm-5adc64638084c1b8d33ac56e2498b83f1f4bd6e2.tar.bz2 |
Non-fast-isel followup to 129634; correctly handle branches controlled
by non-CMP expressions. The executable test case (129821) would test
this as well, if we had an "-O0 -disable-arm-fast-isel" LLVM-GCC
tester. Alas, the ARM assembly would be very difficult to check with
FileCheck.
The thumb2-cbnz.ll test is affected; it generates larger code (tst.w
vs. cmp #0), but I believe the new version is correct.
rdar://problem/9298790
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2/thumb2-cbnz.ll')
-rw-r--r-- | test/CodeGen/Thumb2/thumb2-cbnz.ll | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/CodeGen/Thumb2/thumb2-cbnz.ll b/test/CodeGen/Thumb2/thumb2-cbnz.ll index 10a4985..0c7f33a 100644 --- a/test/CodeGen/Thumb2/thumb2-cbnz.ll +++ b/test/CodeGen/Thumb2/thumb2-cbnz.ll @@ -20,9 +20,10 @@ bb7: ; preds = %bb3 br i1 %a, label %bb11, label %bb9 bb9: ; preds = %bb7 -; CHECK: cmp r0, #0 -; CHECK: cmp r0, #0 -; CHECK-NEXT: cbnz +; CHECK: tst.w r0, #1 +; CHECK: tst.w r0, #1 +; CHECK: tst.w r0, #1 +; CHECK: bne %0 = tail call double @floor(double %b) nounwind readnone ; <double> [#uses=0] br label %bb11 |