aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Thumb2/thumb2-bcc.ll
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-07-08 21:50:04 +0000
committerJim Grosbach <grosbach@apple.com>2011-07-08 21:50:04 +0000
commit25e6d48220330d17875d0ae0ad6a45597d5ac36c (patch)
tree8f7e096da2b668fba274d022dd445c9a79b9e144 /test/CodeGen/Thumb2/thumb2-bcc.ll
parentf29608267baf911ccff7015327839201bd1de529 (diff)
downloadexternal_llvm-25e6d48220330d17875d0ae0ad6a45597d5ac36c.zip
external_llvm-25e6d48220330d17875d0ae0ad6a45597d5ac36c.tar.gz
external_llvm-25e6d48220330d17875d0ae0ad6a45597d5ac36c.tar.bz2
Make tBX_RET and tBX_RET_vararg predicable.
The normal tBX instruction is predicable, so there's no reason the pseudos for using it as a return shouldn't be. Gives us some nice code-gen improvements as can be seen by the test changes. In particular, several tests now have to disable if-conversion because it works too well and defeats the test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134746 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2/thumb2-bcc.ll')
-rw-r--r--test/CodeGen/Thumb2/thumb2-bcc.ll6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/CodeGen/Thumb2/thumb2-bcc.ll b/test/CodeGen/Thumb2/thumb2-bcc.ll
index aae9f5c..5e07b7c 100644
--- a/test/CodeGen/Thumb2/thumb2-bcc.ll
+++ b/test/CodeGen/Thumb2/thumb2-bcc.ll
@@ -1,5 +1,7 @@
-; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s
-; RUN: llc < %s -march=thumb -mattr=+thumb2 | not grep it
+; RUN: llc < %s -ifcvt-limit=0 -march=thumb -mattr=+thumb2 | FileCheck %s
+; RUN: llc < %s -ifcvt-limit=0 -march=thumb -mattr=+thumb2 | not grep it
+; If-conversion defeats the purpose of this test, which is to check CBZ
+; generation, so turn it off.
define i32 @t1(i32 %a, i32 %b, i32 %c) {
; CHECK: t1: