diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2013-07-26 20:58:55 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2013-07-26 20:58:55 +0000 |
commit | 9758562aa706a5a20a9d833074e733ed544db776 (patch) | |
tree | 2f308beae947ba1bd07b03b1f9ec1a13189de9b2 /test/CodeGen/Mips | |
parent | 407883b69b3bc10ebf053f5922d877b2e786d124 (diff) | |
download | external_llvm-9758562aa706a5a20a9d833074e733ed544db776.zip external_llvm-9758562aa706a5a20a9d833074e733ed544db776.tar.gz external_llvm-9758562aa706a5a20a9d833074e733ed544db776.tar.bz2 |
[mips] Implement llvm.trap intrinsic.
Patch by Sasa Stankovic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187244 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips')
-rw-r--r-- | test/CodeGen/Mips/trap.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/trap.ll b/test/CodeGen/Mips/trap.ll new file mode 100644 index 0000000..beb4b89 --- /dev/null +++ b/test/CodeGen/Mips/trap.ll @@ -0,0 +1,11 @@ +; RUN: llc -march=mipsel -mcpu=mips32 < %s | FileCheck %s + +declare void @llvm.trap() + +define void @f1() { +entry: + call void @llvm.trap() + unreachable + +; CHECK: break +} |