projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
426df75
)
verify x86 generates ud2 for llvm.trap
author
Chris Lattner
<sabre@nondot.org>
Tue, 15 Jan 2008 22:22:02 +0000
(22:22 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 15 Jan 2008 22:22:02 +0000
(22:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46023
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/CodeGen/X86/trap.ll
[new file with mode: 0644]
patch
|
blob
diff --git a/test/CodeGen/X86/trap.ll
b/test/CodeGen/X86/trap.ll
new file mode 100644
(file)
index 0000000..
9a013ff
--- /dev/null
+++ b/
test/CodeGen/X86/trap.ll
@@ -0,0
+1,9
@@
+; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah | grep ud2
+define i32 @test() noreturn nounwind {
+entry:
+ tail call void @llvm.trap( )
+ unreachable
+}
+
+declare void @llvm.trap() nounwind
+