diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2018-09-10 02:54:25 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2018-09-10 02:54:25 +0000 |
| commit | 72d27f5525f1fde0e95bcf74ec8f543ab96a36d9 (patch) | |
| tree | 0324d90398fb7211e2cd5fc001b85dd8965b7c7b /llvm/test/CodeGen/MIR/AMDGPU/invalid-target-index-operand.mir | |
| parent | b082c36061d68ce983885e5f8a1452e69da4e965 (diff) | |
| download | bcm5719-llvm-72d27f5525f1fde0e95bcf74ec8f543ab96a36d9.tar.gz bcm5719-llvm-72d27f5525f1fde0e95bcf74ec8f543ab96a36d9.zip | |
AMDGPU: Fix tests using old number for constant address space
llvm-svn: 341770
Diffstat (limited to 'llvm/test/CodeGen/MIR/AMDGPU/invalid-target-index-operand.mir')
| -rw-r--r-- | llvm/test/CodeGen/MIR/AMDGPU/invalid-target-index-operand.mir | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/MIR/AMDGPU/invalid-target-index-operand.mir b/llvm/test/CodeGen/MIR/AMDGPU/invalid-target-index-operand.mir index ecee2436eb9..f8de6a6e1a9 100644 --- a/llvm/test/CodeGen/MIR/AMDGPU/invalid-target-index-operand.mir +++ b/llvm/test/CodeGen/MIR/AMDGPU/invalid-target-index-operand.mir @@ -4,12 +4,12 @@ %struct.foo = type { float, [5 x i32] } - @float_gv = internal unnamed_addr addrspace(2) constant [5 x float] [float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00], align 4 + @float_gv = internal unnamed_addr addrspace(4) constant [5 x float] [float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00], align 4 define amdgpu_kernel void @float(float addrspace(1)* %out, i32 %index) #0 { entry: - %0 = getelementptr inbounds [5 x float], [5 x float] addrspace(2)* @float_gv, i32 0, i32 %index - %1 = load float, float addrspace(2)* %0 + %0 = getelementptr inbounds [5 x float], [5 x float] addrspace(4)* @float_gv, i32 0, i32 %index + %1 = load float, float addrspace(4)* %0 store float %1, float addrspace(1)* %out ret void } |

