summaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/2007-04-27-InlineAsm-X-Dest.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-04-28 06:05:59 +0000
committerChris Lattner <sabre@nondot.org>2007-04-28 06:05:59 +0000
commit5bee46d8e3f1d697cfa4cf28590a4e081d2fc844 (patch)
tree6f599eb3031806e199a807498712d65d6f2645ad /test/CodeGen/Generic/2007-04-27-InlineAsm-X-Dest.ll
parent93e3d8f3083593d701fd72b42ca7a680f9e48614 (diff)
downloadllvm-5bee46d8e3f1d697cfa4cf28590a4e081d2fc844.tar.gz
llvm-5bee46d8e3f1d697cfa4cf28590a4e081d2fc844.tar.bz2
llvm-5bee46d8e3f1d697cfa4cf28590a4e081d2fc844.tar.xz
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36532 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic/2007-04-27-InlineAsm-X-Dest.ll')
-rw-r--r--test/CodeGen/Generic/2007-04-27-InlineAsm-X-Dest.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2007-04-27-InlineAsm-X-Dest.ll b/test/CodeGen/Generic/2007-04-27-InlineAsm-X-Dest.ll
new file mode 100644
index 0000000000..45a4de2853
--- /dev/null
+++ b/test/CodeGen/Generic/2007-04-27-InlineAsm-X-Dest.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc
+
+; Test that we can have an "X" output constraint.
+
+define void @test(i16 * %t) {
+ call void asm sideeffect "fwait", "=*X,~{dirflag},~{fpsr},~{flags},~{memory}"( i16* %t )
+ ret void
+}