@@ -1377,7 +1377,7 @@ define i8 @negate_select_of_op_vs_negated_op(i8 %x, i8 %y, i1 %c) {
13771377
13781378define i8 @negate_select_of_op_vs_negated_op_nsw (i8 %x , i8 %y , i1 %c ) {
13791379; CHECK-LABEL: @negate_select_of_op_vs_negated_op_nsw(
1380- ; CHECK-NEXT: [[T0:%.*]] = sub nsw i8 0, [[X:%.*]]
1380+ ; CHECK-NEXT: [[T0:%.*]] = sub i8 0, [[X:%.*]]
13811381; CHECK-NEXT: [[TMP1:%.*]] = select i1 [[C:%.*]], i8 [[X]], i8 [[T0]]
13821382; CHECK-NEXT: [[T2:%.*]] = add i8 [[TMP1]], [[Y:%.*]]
13831383; CHECK-NEXT: ret i8 [[T2]]
@@ -1390,7 +1390,7 @@ define i8 @negate_select_of_op_vs_negated_op_nsw(i8 %x, i8 %y, i1 %c) {
13901390
13911391define i8 @negate_select_of_op_vs_negated_op_nsw_commuted (i8 %x , i8 %y , i1 %c ) {
13921392; CHECK-LABEL: @negate_select_of_op_vs_negated_op_nsw_commuted(
1393- ; CHECK-NEXT: [[T0:%.*]] = sub nsw i8 0, [[X:%.*]]
1393+ ; CHECK-NEXT: [[T0:%.*]] = sub i8 0, [[X:%.*]]
13941394; CHECK-NEXT: [[TMP1:%.*]] = select i1 [[C:%.*]], i8 [[T0]], i8 [[X]]
13951395; CHECK-NEXT: [[T2:%.*]] = add i8 [[TMP1]], [[Y:%.*]]
13961396; CHECK-NEXT: ret i8 [[T2]]
@@ -1403,8 +1403,8 @@ define i8 @negate_select_of_op_vs_negated_op_nsw_commuted(i8 %x, i8 %y, i1 %c) {
14031403
14041404define i8 @negate_select_of_op_vs_negated_op_nsw_xyyx (i8 %x , i8 %y , i8 %z , i1 %c ) {
14051405; CHECK-LABEL: @negate_select_of_op_vs_negated_op_nsw_xyyx(
1406- ; CHECK-NEXT: [[SUB1:%.*]] = sub nsw i8 [[X:%.*]], [[Y:%.*]]
1407- ; CHECK-NEXT: [[SUB2:%.*]] = sub nsw i8 [[Y]], [[X]]
1406+ ; CHECK-NEXT: [[SUB1:%.*]] = sub i8 [[X:%.*]], [[Y:%.*]]
1407+ ; CHECK-NEXT: [[SUB2:%.*]] = sub i8 [[Y]], [[X]]
14081408; CHECK-NEXT: [[TMP1:%.*]] = select i1 [[C:%.*]], i8 [[SUB2]], i8 [[SUB1]]
14091409; CHECK-NEXT: [[T2:%.*]] = add i8 [[TMP1]], [[Z:%.*]]
14101410; CHECK-NEXT: ret i8 [[T2]]
0 commit comments