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 | 274d8d4eba8224b64e0bbc7196011ae7e0477453 (patch) | |
tree | a433b0702162f4568861a33c440970ebf8230839 /test/CodeGen/ARM/trap.ll | |
parent | ce8463f1fb223ecea1243b2274a7c18ddab6e815 (diff) | |
download | external_llvm-274d8d4eba8224b64e0bbc7196011ae7e0477453.zip external_llvm-274d8d4eba8224b64e0bbc7196011ae7e0477453.tar.gz external_llvm-274d8d4eba8224b64e0bbc7196011ae7e0477453.tar.bz2 |
Add option to emit @llvm.trap as a function call instead of a trap instruction. rdar://9249183.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129107 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/trap.ll')
-rw-r--r-- | test/CodeGen/ARM/trap.ll | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/CodeGen/ARM/trap.ll b/test/CodeGen/ARM/trap.ll index b2f6b6e..189bc8c 100644 --- a/test/CodeGen/ARM/trap.ll +++ b/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 } |