diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-05-11 07:26:32 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-05-11 07:26:32 +0000 |
commit | fb3611daad2bdf9fd50fe5ef1167fe6a8c950031 (patch) | |
tree | d47e24c65b2e04326ab71e4e8defdf1f419b5d44 /test/CodeGen/Thumb | |
parent | 7d9663c70b3300070298d716dba6e6f6ce2d1e3e (diff) | |
download | external_llvm-fb3611daad2bdf9fd50fe5ef1167fe6a8c950031.zip external_llvm-fb3611daad2bdf9fd50fe5ef1167fe6a8c950031.tar.gz external_llvm-fb3611daad2bdf9fd50fe5ef1167fe6a8c950031.tar.bz2 |
Select @llvm.trap to the special B with 1111 condition (i.e. trap) instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb')
-rw-r--r-- | test/CodeGen/Thumb/trap.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/Thumb/trap.ll b/test/CodeGen/Thumb/trap.ll new file mode 100644 index 0000000..76a0589 --- /dev/null +++ b/test/CodeGen/Thumb/trap.ll @@ -0,0 +1,12 @@ +; RUN: llc < %s -march=thumb | FileCheck %s +; rdar://7961298 + +define arm_apcscc void @t() nounwind { +entry: +; CHECK: t: +; CHECK: trap + call void @llvm.trap() + unreachable +} + +declare void @llvm.trap() nounwind |