blob: 04ad48d29211580c59dd739e2525811bea61cec6 [file] [log] [blame]
Evan Chengda43bcf2008-09-24 00:05:32 +00001; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin -relocation-model=pic | grep lea
2; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin -relocation-model=pic | grep call
3
4@main_q = internal global i8* null ; <i8**> [#uses=1]
5
6define void @func2() nounwind {
7entry:
8 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
9 ret void
10}