diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-02-23 21:43:52 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-02-23 21:43:52 +0000 |
commit | 570d54479911d2c996d7bd506ac5224ef764209a (patch) | |
tree | 5e627aedf6b9ca1355c3765f0c4f821a52efd89f /test/CodeGen | |
parent | b4702e215e2771ce9f09095e1415a80827d495cd (diff) | |
download | llvm-570d54479911d2c996d7bd506ac5224ef764209a.tar.gz llvm-570d54479911d2c996d7bd506ac5224ef764209a.tar.bz2 llvm-570d54479911d2c996d7bd506ac5224ef764209a.tar.xz |
SPARC: Implement TRAP lowering. Matches what GCC emits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/SPARC/trap.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/SPARC/trap.ll b/test/CodeGen/SPARC/trap.ll new file mode 100644 index 0000000000..b72a63caee --- /dev/null +++ b/test/CodeGen/SPARC/trap.ll @@ -0,0 +1,11 @@ +; RUN: llc -mtriple=sparc-linux-gnu < %s -show-mc-encoding | FileCheck %s + +define void @test1() { + tail call void @llvm.trap() + unreachable + +; CHECK-LABEL: test1: +; CHECK: ta 5 ! encoding: [0x91,0xd0,0x20,0x05] +} + +declare void @llvm.trap() |