xref: /llvm-project/llvm/test/CodeGen/X86/movfs.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=i686-- | FileCheck %s
3
4define i32 @foo() nounwind readonly {
5; CHECK-LABEL: foo:
6; CHECK:       # %bb.0: # %entry
7; CHECK-NEXT:    movl %fs:196, %eax
8; CHECK-NEXT:    movl (%eax), %eax
9; CHECK-NEXT:    retl
10entry:
11	%tmp = load ptr, ptr addrspace(257) getelementptr (ptr, ptr addrspace(257) inttoptr (i32 72 to ptr addrspace(257)), i32 31)		; <ptr> [#uses=1]
12	%tmp1 = load i32, ptr %tmp		; <i32> [#uses=1]
13	ret i32 %tmp1
14}
15