summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/xtest.ll
diff options
context:
space:
mode:
authorMichael Liao <michael.liao@intel.com>2013-03-26 22:47:01 +0000
committerMichael Liao <michael.liao@intel.com>2013-03-26 22:47:01 +0000
commitf8fd883fd368316ad3738dad6c15b1b8f3850f88 (patch)
tree948e0da9a0208da4b0a3284f7b9da08c29cdb3bd /test/CodeGen/X86/xtest.ll
parent0ca1a7f177ffd29c0af49f23cc7bd5f0b56a60d0 (diff)
downloadllvm-f8fd883fd368316ad3738dad6c15b1b8f3850f88.tar.gz
llvm-f8fd883fd368316ad3738dad6c15b1b8f3850f88.tar.bz2
llvm-f8fd883fd368316ad3738dad6c15b1b8f3850f88.tar.xz
Add XTEST codegen support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178083 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/xtest.ll')
-rw-r--r--test/CodeGen/X86/xtest.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/xtest.ll b/test/CodeGen/X86/xtest.ll
new file mode 100644
index 0000000000..e85565edcd
--- /dev/null
+++ b/test/CodeGen/X86/xtest.ll
@@ -0,0 +1,11 @@
+; RUN: llc < %s -march=x86-64 -mattr=+rtm | FileCheck %s
+
+declare i32 @llvm.x86.xtest() nounwind
+
+define i32 @test_xtest() nounwind uwtable {
+entry:
+ %0 = tail call i32 @llvm.x86.xtest() nounwind
+ ret i32 %0
+; CHECK: test_xtest
+; CHECK: xtest
+}