diff options
author | Richard Osborne <richard@xmos.com> | 2008-12-03 10:59:16 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2008-12-03 10:59:16 +0000 |
commit | 269bc0042fc976b13b44c97c6546b4d726073940 (patch) | |
tree | c0ac281b4ccbd9c9fe6978e5f2495a160e7c3561 /test/CodeGen/XCore | |
parent | 370e5340a585d7d4b98bd855e52e4624c44ad681 (diff) | |
download | external_llvm-269bc0042fc976b13b44c97c6546b4d726073940.zip external_llvm-269bc0042fc976b13b44c97c6546b4d726073940.tar.gz external_llvm-269bc0042fc976b13b44c97c6546b4d726073940.tar.bz2 |
Add support for ISD::TRAP to the XCore backend
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60479 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/XCore')
-rw-r--r-- | test/CodeGen/XCore/trap.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/XCore/trap.ll b/test/CodeGen/XCore/trap.ll new file mode 100644 index 0000000..b3d3bc2 --- /dev/null +++ b/test/CodeGen/XCore/trap.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | llc -march=xcore > %t1.s +; RUN: grep "ecallf" %t1.s | count 1 +; RUN: grep "ldc" %t1.s | count 1 +define i32 @test() noreturn nounwind { +entry: + tail call void @llvm.trap( ) + unreachable +} + +declare void @llvm.trap() nounwind + |