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 | 2fa5a7e7e4f7843c07941c1e85d74e610f46dbfb (patch) | |
tree | 95aa2579d12bc271359876d8e382782d77a81bff /llvm/test | |
parent | 10dc8aa581f6fa804320296414a737105a4c9275 (diff) | |
download | bcm5719-llvm-2fa5a7e7e4f7843c07941c1e85d74e610f46dbfb.tar.gz bcm5719-llvm-2fa5a7e7e4f7843c07941c1e85d74e610f46dbfb.zip |
Select @llvm.trap to the special B with 1111 condition (i.e. trap) instruction.
llvm-svn: 103459
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/CodeGen/ARM/trap.ll | 12 | ||||
-rw-r--r-- | llvm/test/CodeGen/Thumb/trap.ll | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/trap.ll b/llvm/test/CodeGen/ARM/trap.ll new file mode 100644 index 00000000000..763dff30569 --- /dev/null +++ b/llvm/test/CodeGen/ARM/trap.ll @@ -0,0 +1,12 @@ +; RUN: llc < %s -march=arm | 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 diff --git a/llvm/test/CodeGen/Thumb/trap.ll b/llvm/test/CodeGen/Thumb/trap.ll new file mode 100644 index 00000000000..76a0589a9f8 --- /dev/null +++ b/llvm/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 |