1 ; RUN: llc < %s -march=x86 | FileCheck %s --check-prefix=X32
2 ; RUN: llc < %s -march=x86-64 | FileCheck %s --check-prefix=X64
4 define i32 @test1() nounwind readonly {
6 %tmp = load i32* addrspace(256)* getelementptr (i32* addrspace(256)* inttoptr (i32 72 to i32* addrspace(256)*), i32 31) ; <i32*> [#uses=1]
7 %tmp1 = load i32* %tmp ; <i32> [#uses=1]
11 ; X32: movl %gs:196, %eax
12 ; X32: movl (%eax), %eax
16 ; X64: movq %gs:320, %rax
17 ; X64: movl (%rax), %eax
20 define i64 @test2(void (i8*)* addrspace(256)* %tmp8) nounwind {
22 %tmp9 = load void (i8*)* addrspace(256)* %tmp8, align 8
23 tail call void %tmp9(i8* undef) nounwind optsize
29 ; X32: movl %gs:(%eax), %eax
30 ; X32: movl %eax, (%esp)
34 ; X64: movq %gs:(%rdi), %rax