@@ -31,7 +31,7 @@ extern "rust-intrinsic" {
31
31
// CHECK-LABEL: @bitmask_int
32
32
#[ no_mangle]
33
33
pub unsafe fn bitmask_int ( x : i32x2 ) -> u8 {
34
- // CHECK: [[A:%[0-9]+]] = lshr <2 x i32> %{{x|1}}, <i32 31, i32 31>
34
+ // CHECK: [[A:%[0-9]+]] = lshr <2 x i32> %{{x|1}}, {{ <i32 31, i32 31>|splat \(i32 31\)}}
35
35
// CHECK: [[B:%[0-9]+]] = trunc <2 x i32> [[A]] to <2 x i1>
36
36
// CHECK: [[C:%[0-9]+]] = bitcast <2 x i1> [[B]] to i2
37
37
// CHECK: %{{[0-9]+}} = zext i2 [[C]] to i8
@@ -41,7 +41,7 @@ pub unsafe fn bitmask_int(x: i32x2) -> u8 {
41
41
// CHECK-LABEL: @bitmask_uint
42
42
#[ no_mangle]
43
43
pub unsafe fn bitmask_uint ( x : u32x2 ) -> u8 {
44
- // CHECK: [[A:%[0-9]+]] = lshr <2 x i32> %{{x|1}}, <i32 31, i32 31>
44
+ // CHECK: [[A:%[0-9]+]] = lshr <2 x i32> %{{x|1}}, {{ <i32 31, i32 31>|splat \(i32 31\)}}
45
45
// CHECK: [[B:%[0-9]+]] = trunc <2 x i32> [[A]] to <2 x i1>
46
46
// CHECK: [[C:%[0-9]+]] = bitcast <2 x i1> [[B]] to i2
47
47
// CHECK: %{{[0-9]+}} = zext i2 [[C]] to i8
@@ -51,7 +51,7 @@ pub unsafe fn bitmask_uint(x: u32x2) -> u8 {
51
51
// CHECK-LABEL: @bitmask_int16
52
52
#[ no_mangle]
53
53
pub unsafe fn bitmask_int16 ( x : i8x16 ) -> u16 {
54
- // CHECK: [[A:%[0-9]+]] = lshr <16 x i8> %{{x|1|2}}, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7>
54
+ // CHECK: [[A:%[0-9]+]] = lshr <16 x i8> %{{x|1|2}}, {{ <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7>|splat \(i8 7\)}}
55
55
// CHECK: [[B:%[0-9]+]] = trunc <16 x i8> [[A]] to <16 x i1>
56
56
// CHECK: %{{[0-9]+}} = bitcast <16 x i1> [[B]] to i16
57
57
// CHECK-NOT: zext
0 commit comments