File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
clang/test/CodeGen/PowerPC Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -853,10 +853,16 @@ vector unsigned char test73(void) {
853853vector unsigned short test74 (void ) {
854854// CHECK-BE: @llvm.ppc.vsx.xvcvsphp(<4 x float>
855855// CHECK-BE: @llvm.ppc.vsx.xvcvsphp(<4 x float>
856- // CHECK-BE: @llvm.ppc.altivec.vperm
856+ // CHECK-BE: [[REG0:%[0-9]+]] = call <4 x i32> @llvm.ppc.altivec.vperm
857+ // CHECK-BE-NEXT: [[REG1:%[0-9]+]] = bitcast <4 x i32> [[REG0]] to <4 x float>
858+ // CHECK-BE-NEXT: [[REG2:%[0-9]+]] = bitcast <4 x float> [[REG1]] to <8 x i16>
859+ // CHECK-BE-NEXT: ret <8 x i16> [[REG2]]
857860// CHECK: @llvm.ppc.vsx.xvcvsphp(<4 x float>
858861// CHECK: @llvm.ppc.vsx.xvcvsphp(<4 x float>
859- // CHECK: @llvm.ppc.altivec.vperm
862+ // CHECK: [[REG0:%[0-9]+]] = call <4 x i32> @llvm.ppc.altivec.vperm
863+ // CHECK-NEXT: [[REG1:%[0-9]+]] = bitcast <4 x i32> [[REG0]] to <4 x float>
864+ // CHECK-NEXT: [[REG2:%[0-9]+]] = bitcast <4 x float> [[REG1]] to <8 x i16>
865+ // CHECK-NEXT: ret <8 x i16> [[REG2]]
860866 return vec_pack_to_short_fp32 (vfa , vfb );
861867}
862868vector unsigned int test75 (void ) {
You can’t perform that action at this time.
0 commit comments