diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-04-07 20:31:12 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-04-07 20:31:12 +0000 |
commit | 9a3f2772f04a018b103d3aadc6ace25324bb65e8 (patch) | |
tree | 6495ed6752d3b8040387c8ba5d7d95827821e162 /llvm/test/CodeGen/ARM/trap.ll | |
parent | 88bc3410619d7346a5fbe69194b313490bba545e (diff) | |
download | bcm5719-llvm-9a3f2772f04a018b103d3aadc6ace25324bb65e8.tar.gz bcm5719-llvm-9a3f2772f04a018b103d3aadc6ace25324bb65e8.zip |
Add option to emit @llvm.trap as a function call instead of a trap instruction. rdar://9249183.
llvm-svn: 129107
Diffstat (limited to 'llvm/test/CodeGen/ARM/trap.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/trap.ll | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/ARM/trap.ll b/llvm/test/CodeGen/ARM/trap.ll index b2f6b6e69fa..189bc8cc04e 100644 --- a/llvm/test/CodeGen/ARM/trap.ll +++ b/llvm/test/CodeGen/ARM/trap.ll @@ -1,10 +1,15 @@ -; RUN: llc < %s -march=arm | FileCheck %s +; RUN: llc < %s -mtriple=arm-apple-darwin | FileCheck %s -check-prefix=INSTR +; RUN: llc < %s -mtriple=arm-apple-darwin -arm-trap-func=_trap | FileCheck %s -check-prefix=FUNC ; rdar://7961298 +; rdar://9249183 define void @t() nounwind { entry: -; CHECK: t: -; CHECK: trap +; INSTR: t: +; INSTR: trap + +; FUNC: t: +; FUNC: bl __trap call void @llvm.trap() unreachable } |