@@ -357,7 +357,7 @@ define <4 x i32> @or_sext_v4i8_to_v4i32_constant_with_loss(<4 x i8> %a) {
357
357
define <4 x i16 > @and_trunc_nuw_nsw_constant (<4 x i32 > %a ) {
358
358
; CHECK-LABEL: @and_trunc_nuw_nsw_constant(
359
359
; CHECK-NEXT: [[AND_INNER:%.*]] = and <4 x i32> [[A:%.*]], <i32 1, i32 2, i32 3, i32 4>
360
- ; CHECK-NEXT: [[AND:%.*]] = trunc <4 x i32> [[AND_INNER]] to <4 x i16>
360
+ ; CHECK-NEXT: [[AND:%.*]] = trunc nuw nsw <4 x i32> [[AND_INNER]] to <4 x i16>
361
361
; CHECK-NEXT: ret <4 x i16> [[AND]]
362
362
;
363
363
%t1 = trunc nuw nsw <4 x i32 > %a to <4 x i16 >
@@ -368,7 +368,7 @@ define <4 x i16> @and_trunc_nuw_nsw_constant(<4 x i32> %a) {
368
368
define <4 x i8 > @and_trunc_nuw_nsw_minus_constant (<4 x i32 > %a ) {
369
369
; CHECK-LABEL: @and_trunc_nuw_nsw_minus_constant(
370
370
; CHECK-NEXT: [[AND_INNER:%.*]] = and <4 x i32> [[A:%.*]], <i32 240, i32 241, i32 242, i32 243>
371
- ; CHECK-NEXT: [[AND:%.*]] = trunc <4 x i32> [[AND_INNER]] to <4 x i8>
371
+ ; CHECK-NEXT: [[AND:%.*]] = trunc nuw <4 x i32> [[AND_INNER]] to <4 x i8>
372
372
; CHECK-NEXT: ret <4 x i8> [[AND]]
373
373
;
374
374
%t1 = trunc nuw nsw <4 x i32 > %a to <4 x i8 >
@@ -379,7 +379,7 @@ define <4 x i8> @and_trunc_nuw_nsw_minus_constant(<4 x i32> %a) {
379
379
define <4 x i8 > @and_trunc_nuw_nsw_multiconstant (<4 x i32 > %a ) {
380
380
; CHECK-LABEL: @and_trunc_nuw_nsw_multiconstant(
381
381
; CHECK-NEXT: [[AND_INNER:%.*]] = and <4 x i32> [[A:%.*]], <i32 240, i32 1, i32 242, i32 3>
382
- ; CHECK-NEXT: [[AND:%.*]] = trunc <4 x i32> [[AND_INNER]] to <4 x i8>
382
+ ; CHECK-NEXT: [[AND:%.*]] = trunc nuw <4 x i32> [[AND_INNER]] to <4 x i8>
383
383
; CHECK-NEXT: ret <4 x i8> [[AND]]
384
384
;
385
385
%t1 = trunc nuw nsw <4 x i32 > %a to <4 x i8 >
@@ -391,7 +391,7 @@ define <4 x i8> @and_trunc_nuw_nsw_multiconstant(<4 x i32> %a) {
391
391
define <4 x i32 > @or_zext_nneg_constant (<4 x i16 > %a ) {
392
392
; CHECK-LABEL: @or_zext_nneg_constant(
393
393
; CHECK-NEXT: [[OR_INNER:%.*]] = or <4 x i16> [[A:%.*]], <i16 1, i16 2, i16 3, i16 4>
394
- ; CHECK-NEXT: [[OR:%.*]] = zext <4 x i16> [[OR_INNER]] to <4 x i32>
394
+ ; CHECK-NEXT: [[OR:%.*]] = zext nneg <4 x i16> [[OR_INNER]] to <4 x i32>
395
395
; CHECK-NEXT: ret <4 x i32> [[OR]]
396
396
;
397
397
%z1 = zext nneg <4 x i16 > %a to <4 x i32 >
0 commit comments