summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/movfs.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-05-05 18:52:19 +0000
committerChris Lattner <sabre@nondot.org>2009-05-05 18:52:19 +0000
commit1777d0c6c555fb20177b3a60b40eef265c2b842a (patch)
tree661acbf4aca8e9c9560bdd42ffffd388be0283da /test/CodeGen/X86/movfs.ll
parent26edc21b1b68f126928b20124b5fca14a28bd428 (diff)
downloadllvm-1777d0c6c555fb20177b3a60b40eef265c2b842a.tar.gz
llvm-1777d0c6c555fb20177b3a60b40eef265c2b842a.tar.bz2
llvm-1777d0c6c555fb20177b3a60b40eef265c2b842a.tar.xz
Add basic support for code generation of
addrspace(257) -> FS relative on x86. Patch by Zoltan Varga! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70992 91177308-0d34-0410-b5e6-96231b3b80d8
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
+}