projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[fast-isel] Add support for selecting @llvm.trap().
[oota-llvm.git]
/
test
/
CodeGen
/
ARM
/
fast-isel.ll
diff --git
a/test/CodeGen/ARM/fast-isel.ll
b/test/CodeGen/ARM/fast-isel.ll
index 417e2d9e410ae035548049a74b730fb114fec10c..ecd5fe27a4b7a7326b6f0c18acf343d6a105082a 100644
(file)
--- a/
test/CodeGen/ARM/fast-isel.ll
+++ b/
test/CodeGen/ARM/fast-isel.ll
@@
-226,3
+226,15
@@
define i32 @urem_fold(i32 %a) nounwind {
%rem = urem i32 %a, 32
ret i32 %rem
}
+
+define i32 @test7() noreturn nounwind {
+entry:
+; ARM: @test7
+; THUMB: @test7
+; ARM: trap
+; THUMB: trap
+ tail call void @llvm.trap( )
+ unreachable
+}
+
+declare void @llvm.trap() nounwind