aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-07-10 01:54:42 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-07-10 01:54:42 +0000
commitd5b67fab9a5293e74626c34c2967ec4b5cf9283d (patch)
tree76e4f27ee3b197064487715c71ed7fbb7275d58f /test
parentf15238c4648722b59ee418119cf3f5ea425c37aa (diff)
downloadexternal_llvm-d5b67fab9a5293e74626c34c2967ec4b5cf9283d.zip
external_llvm-d5b67fab9a5293e74626c34c2967ec4b5cf9283d.tar.gz
external_llvm-d5b67fab9a5293e74626c34c2967ec4b5cf9283d.tar.bz2
Add a thumb2 pass to insert IT blocks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75218 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/Thumb2/thumb2-select.ll1
-rw-r--r--test/CodeGen/Thumb2/thumb2-select_xform.ll1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/CodeGen/Thumb2/thumb2-select.ll b/test/CodeGen/Thumb2/thumb2-select.ll
index 57f6156..1d51bc3 100644
--- a/test/CodeGen/Thumb2/thumb2-select.ll
+++ b/test/CodeGen/Thumb2/thumb2-select.ll
@@ -4,6 +4,7 @@
; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep movle | count 1
; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep movls | count 1
; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep movhi | count 1
+; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep it | count 6
define i32 @f1(i32 %a.s) {
entry:
diff --git a/test/CodeGen/Thumb2/thumb2-select_xform.ll b/test/CodeGen/Thumb2/thumb2-select_xform.ll
index 9da4ebe..5332c2d 100644
--- a/test/CodeGen/Thumb2/thumb2-select_xform.ll
+++ b/test/CodeGen/Thumb2/thumb2-select_xform.ll
@@ -1,5 +1,6 @@
; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep mov | count 3
; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep mvn | count 1
+; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep it | count 3
define i32 @t1(i32 %a, i32 %b, i32 %c) nounwind {
%tmp1 = icmp sgt i32 %c, 10