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