aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-07-06 17:33:39 +0000
committerChad Rosier <mcrosier@apple.com>2012-07-06 17:33:39 +0000
commitfd065bbed1d731b49b1b4a5c4c050ce461be80b4 (patch)
tree104147996d811d66fc321f99ebd7204729f172b1 /test/CodeGen/X86
parentc5171d5de6c740751687a8d80aa03115fbcad6b7 (diff)
downloadexternal_llvm-fd065bbed1d731b49b1b4a5c4c050ce461be80b4.zip
external_llvm-fd065bbed1d731b49b1b4a5c4c050ce461be80b4.tar.gz
external_llvm-fd065bbed1d731b49b1b4a5c4c050ce461be80b4.tar.bz2
[fast-isel] Tell fast-isel to do nothing with the new donothing intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159837 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
-rw-r--r--test/CodeGen/X86/fast-isel.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fast-isel.ll b/test/CodeGen/X86/fast-isel.ll
index 9d9a520..132df2b 100644
--- a/test/CodeGen/X86/fast-isel.ll
+++ b/test/CodeGen/X86/fast-isel.ll
@@ -117,3 +117,11 @@ define i64* @life() nounwind {
ret i64* %a3
}
+declare void @llvm.donothing() readnone
+
+; CHECK: donada
+define void @donada() nounwind {
+entry:
+ call void @llvm.donothing()
+ ret void
+}