summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit874c92bd47797c7b7ba4dc46b8d7c6d6bf477972 (patch)
tree3b3c86f43c6be4789c88afa5ec3beba4a99a600b /llvm/test
parentf3f7a770b767f001e5ede90d5fade9ce80ae5662 (diff)
downloadbcm5719-llvm-874c92bd47797c7b7ba4dc46b8d7c6d6bf477972.tar.gz
bcm5719-llvm-874c92bd47797c7b7ba4dc46b8d7c6d6bf477972.zip
fix fastisel to handle GS and FS relative pointers. Patch by
Nelson Elhage! llvm-svn: 106031
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/2010-06-14-fast-isel-fs-load.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/2010-06-14-fast-isel-fs-load.ll b/llvm/test/CodeGen/X86/2010-06-14-fast-isel-fs-load.ll
new file mode 100644
index 00000000000..b22a391ef35
--- /dev/null
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud