diff options
Diffstat (limited to 'test/Transforms/InstCombine/gep-addrspace.ll')
-rw-r--r-- | test/Transforms/InstCombine/gep-addrspace.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Transforms/InstCombine/gep-addrspace.ll b/test/Transforms/InstCombine/gep-addrspace.ll index 29511a3..aa46ea6 100644 --- a/test/Transforms/InstCombine/gep-addrspace.ll +++ b/test/Transforms/InstCombine/gep-addrspace.ll @@ -8,11 +8,11 @@ target triple = "x86_64-pc-win32" ; make sure that we are not crashing when creating an illegal type define void @func(%myStruct addrspace(1)* nocapture %p) nounwind { ST: - %A = getelementptr inbounds %myStruct addrspace(1)* %p, i64 0 + %A = getelementptr inbounds %myStruct, %myStruct addrspace(1)* %p, i64 0 %B = addrspacecast %myStruct addrspace(1)* %A to %myStruct* - %C = getelementptr inbounds %myStruct* %B, i32 0, i32 1 - %D = getelementptr inbounds [3 x float]* %C, i32 0, i32 2 - %E = load float* %D, align 4 + %C = getelementptr inbounds %myStruct, %myStruct* %B, i32 0, i32 1 + %D = getelementptr inbounds [3 x float], [3 x float]* %C, i32 0, i32 2 + %E = load float, float* %D, align 4 %F = fsub float %E, undef ret void } @@ -23,9 +23,9 @@ ST: define void @keep_necessary_addrspacecast(i64 %i, float** %out0, float** %out1) { entry: ; CHECK-LABEL: @keep_necessary_addrspacecast - %0 = getelementptr [256 x float]* addrspacecast ([256 x float] addrspace(3)* @array to [256 x float]*), i64 0, i64 %i + %0 = getelementptr [256 x float], [256 x float]* addrspacecast ([256 x float] addrspace(3)* @array to [256 x float]*), i64 0, i64 %i ; CHECK: addrspacecast float addrspace(3)* %{{[0-9]+}} to float* - %1 = getelementptr [0 x float]* addrspacecast (float addrspace(3)* @scalar to [0 x float]*), i64 0, i64 %i + %1 = getelementptr [0 x float], [0 x float]* addrspacecast (float addrspace(3)* @scalar to [0 x float]*), i64 0, i64 %i ; CHECK: addrspacecast float addrspace(3)* %{{[0-9]+}} to float* store float* %0, float** %out0, align 4 store float* %1, float** %out1, align 4 |