diff options
Diffstat (limited to 'test/CodeGen/X86/inline-asm-pic.ll')
-rw-r--r-- | test/CodeGen/X86/inline-asm-pic.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/inline-asm-pic.ll b/test/CodeGen/X86/inline-asm-pic.ll new file mode 100644 index 0000000..0b5ff08 --- /dev/null +++ b/test/CodeGen/X86/inline-asm-pic.ll @@ -0,0 +1,10 @@ +; RUN: llc < %s -mtriple=i386-apple-darwin -relocation-model=pic | grep lea +; RUN: llc < %s -mtriple=i386-apple-darwin -relocation-model=pic | grep call + +@main_q = internal global i8* null ; <i8**> [#uses=1] + +define void @func2() nounwind { +entry: + tail call void asm "mov $1,%gs:$0", "=*m,ri,~{dirflag},~{fpsr},~{flags}"(i8** inttoptr (i32 152 to i8**), i8* bitcast (i8** @main_q to i8*)) nounwind + ret void +} |