Nelson Elhage!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106031
91177308-0d34-0410-b5e6-
96231b3b80d8
U = C;
}
+ if (const PointerType *Ty = dyn_cast<PointerType>(V->getType()))
+ if (Ty->getAddressSpace() > 255)
+ // Fast instruction selection doesn't support pointers through %fs or %gs
+ return false;
+
switch (Opcode) {
default: break;
case Instruction::BitCast:
--- /dev/null
+; 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
+}