summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-03-25 01:44:40 +0000
committerChris Lattner <sabre@nondot.org>2007-03-25 01:44:40 +0000
commit421ac38bd6b9d1462769f627cf862bba62250e38 (patch)
treec051e8440131b5744c787c4984eb315362298dd7 /llvm
parent9bb967ec5cbd5789a3648ee4bd70f14383cc7c4d (diff)
downloadbcm5719-llvm-421ac38bd6b9d1462769f627cf862bba62250e38.tar.gz
bcm5719-llvm-421ac38bd6b9d1462769f627cf862bba62250e38.zip
new testcase
llvm-svn: 35317
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/CodeGen/X86/2007-03-24-InlineAsmPModifier.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/2007-03-24-InlineAsmPModifier.ll b/llvm/test/CodeGen/X86/2007-03-24-InlineAsmPModifier.ll
new file mode 100644
index 00000000000..3c8bc90c2db
--- /dev/null
+++ b/llvm/test/CodeGen/X86/2007-03-24-InlineAsmPModifier.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -march=x86 | grep 'mov %gs:72, %eax'
+target datalayout = "e-p:32:32"
+target triple = "i686-apple-darwin9"
+
+define void @test() {
+ %tmp1 = tail call i32* asm sideeffect "mov %gs:${1:P}, $0", "=r,i,~{dirflag},~{fpsr},~{flags}"( i32 72 ) ; <%struct._pthread*> [#uses=1]
+ ret void
+}
+
+
OpenPOWER on IntegriCloud