diff options
author | Chris Lattner <sabre@nondot.org> | 2009-05-05 18:52:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-05-05 18:52:19 +0000 |
commit | 1777d0c6c555fb20177b3a60b40eef265c2b842a (patch) | |
tree | 661acbf4aca8e9c9560bdd42ffffd388be0283da /test | |
parent | 26edc21b1b68f126928b20124b5fca14a28bd428 (diff) | |
download | external_llvm-1777d0c6c555fb20177b3a60b40eef265c2b842a.zip external_llvm-1777d0c6c555fb20177b3a60b40eef265c2b842a.tar.gz external_llvm-1777d0c6c555fb20177b3a60b40eef265c2b842a.tar.bz2 |
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')
-rw-r--r-- | test/CodeGen/X86/movfs.ll | 8 |
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 0000000..af102d4 --- /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 +} |