1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i386-apple-darwin -relocation-model=pic | FileCheck %s
4 @main_q = internal global i8* null ; <i8**> [#uses=1]
6 define void @func2() nounwind {
8 ; CHECK: ## %bb.0: ## %entry
9 ; CHECK-NEXT: calll L0$pb
11 ; CHECK-NEXT: popl %eax
12 ; CHECK-NEXT: leal _main_q-L0$pb(%eax), %eax
13 ; CHECK-NEXT: ## InlineAsm Start
14 ; CHECK-NEXT: movl %eax, %gs:152
15 ; CHECK-NEXT: ## InlineAsm End
18 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