summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-06-15 19:08:40 +0000
committerChris Lattner <sabre@nondot.org>2010-06-15 19:08:40 +0000
commit868ee9460c6e3055162f7ed9b05747606096945a (patch)
treec147221059bdbb2ac4eeb9f0b0acf453ec35abe5 /test
parent827b2106fe39c4195f5f5393b6bab70cc297657d (diff)
downloadllvm-868ee9460c6e3055162f7ed9b05747606096945a.tar.gz
llvm-868ee9460c6e3055162f7ed9b05747606096945a.tar.bz2
llvm-868ee9460c6e3055162f7ed9b05747606096945a.tar.xz
fix fastisel to handle GS and FS relative pointers. Patch by
Nelson Elhage! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/2010-06-14-fast-isel-fs-load.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2010-06-14-fast-isel-fs-load.ll b/test/CodeGen/X86/2010-06-14-fast-isel-fs-load.ll
new file mode 100644
index 0000000000..b22a391ef3
--- /dev/null
+++ b/test/CodeGen/X86/2010-06-14-fast-isel-fs-load.ll
@@ -0,0 +1,6 @@
+; RUN: llc -fast-isel -march=x86 < %s | grep %fs:
+
+define i32 @test1(i32 addrspace(257)* %arg) nounwind {
+ %tmp = load i32 addrspace(257)* %arg
+ ret i32 %tmp
+}