@@ -19,7 +19,7 @@ define internal spir_func <3 x i32> @foo(ptr addrspace(10) %a) {
1919 ; partial loading of a vector: v4 -> v3.
2020 %2 = load <3 x i32 >, ptr addrspace (10 ) %1 , align 16
2121; CHECK: %[[#load:]] = OpLoad %[[#v4]] %[[#tmp]] Aligned 16
22- ; CHECK: %[[#val:]] = OpVectorShuffle %[[#v3]] %[[#load]] %[[#load]] 0 0 0
22+ ; CHECK: %[[#val:]] = OpVectorShuffle %[[#v3]] %[[#load]] %[[#load]] 0 1 2
2323
2424 ret <3 x i32 > %2
2525; CHECK: OpReturnValue %[[#val]]
@@ -33,7 +33,7 @@ define internal spir_func <3 x i32> @fooDefault(ptr %a) {
3333 ; partial loading of a vector: v4 -> v3.
3434 %2 = load <3 x i32 >, ptr %1 , align 16
3535; CHECK: %[[#load:]] = OpLoad %[[#v4]] %[[#tmp]] Aligned 16
36- ; CHECK: %[[#val:]] = OpVectorShuffle %[[#v3]] %[[#load]] %[[#load]] 0 0 0
36+ ; CHECK: %[[#val:]] = OpVectorShuffle %[[#v3]] %[[#load]] %[[#load]] 0 1 2
3737
3838 ret <3 x i32 > %2
3939; CHECK: OpReturnValue %[[#val]]
@@ -47,7 +47,7 @@ define internal spir_func <3 x i32> @fooBounds(ptr %a) {
4747 ; partial loading of a vector: v4 -> v3.
4848 %2 = load <3 x i32 >, ptr %1 , align 16
4949; CHECK: %[[#load:]] = OpLoad %[[#v4]] %[[#tmp]] Aligned 16
50- ; CHECK: %[[#val:]] = OpVectorShuffle %[[#v3]] %[[#load]] %[[#load]] 0 0 0
50+ ; CHECK: %[[#val:]] = OpVectorShuffle %[[#v3]] %[[#load]] %[[#load]] 0 1 2
5151
5252 ret <3 x i32 > %2
5353; CHECK: OpReturnValue %[[#val]]
@@ -61,7 +61,7 @@ define internal spir_func <2 x i32> @bar(ptr addrspace(10) %a) {
6161 ; partial loading of a vector: v4 -> v2.
6262 %2 = load <2 x i32 >, ptr addrspace (10 ) %1 , align 16
6363; CHECK: %[[#load:]] = OpLoad %[[#v4]] %[[#tmp]] Aligned 16
64- ; CHECK: %[[#val:]] = OpVectorShuffle %[[#v2]] %[[#load]] %[[#load]] 0 0
64+ ; CHECK: %[[#val:]] = OpVectorShuffle %[[#v2]] %[[#load]] %[[#load]] 0 1
6565
6666 ret <2 x i32 > %2
6767; CHECK: OpReturnValue %[[#val]]
0 commit comments