summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/movfs.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/movfs.ll')
-rw-r--r--test/CodeGen/X86/movfs.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/movfs.ll b/test/CodeGen/X86/movfs.ll
new file mode 100644
index 0000000000..af102d4956
--- /dev/null
+++ b/test/CodeGen/X86/movfs.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc -march=x86 | grep fs
+
+define i32 @foo() nounwind readonly {
+entry:
+ %tmp = load i32* addrspace(257)* getelementptr (i32* addrspace(257)* inttoptr (i32 72 to i32* addrspace(257)*), i32 31) ; <i32*> [#uses=1]
+ %tmp1 = load i32* %tmp ; <i32> [#uses=1]
+ ret i32 %tmp1
+}