diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-06-20 18:26:15 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-06-20 18:26:15 +0000 |
commit | 60c916bc72f3ed7f767dfabfd07555c3d3630766 (patch) | |
tree | af1be6170f6a81707e6fc1c3257eb609952ac997 /test/CodeGen/ARM/ifcvt8.ll | |
parent | 5dbea73e35a5e07d43c5f7e7abbc36bac20bad14 (diff) | |
download | llvm-60c916bc72f3ed7f767dfabfd07555c3d3630766.tar.gz llvm-60c916bc72f3ed7f767dfabfd07555c3d3630766.tar.bz2 llvm-60c916bc72f3ed7f767dfabfd07555c3d3630766.tar.xz |
Added some if-conversion tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37672 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/ifcvt8.ll')
-rw-r--r-- | test/CodeGen/ARM/ifcvt8.ll | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/ifcvt8.ll b/test/CodeGen/ARM/ifcvt8.ll new file mode 100644 index 0000000000..83343c341a --- /dev/null +++ b/test/CodeGen/ARM/ifcvt8.ll @@ -0,0 +1,19 @@ +; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion +; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep ldmne | wc -l | grep 1 + + %struct.SString = type { i8*, i32, i32 } + +declare void @abort() + +define fastcc void @t(%struct.SString* %word, i8 sext %c) { +entry: + %tmp1 = icmp eq %struct.SString* %word, null ; <i1> [#uses=1] + br i1 %tmp1, label %cond_true, label %cond_false + +cond_true: ; preds = %entry + tail call void @abort( ) + unreachable + +cond_false: ; preds = %entry + ret void +} |