@@ -32,23 +32,23 @@ func.func @entry() {
3232 func.call @check_subi (%lhs1 , %rhs1 ) : (i32 , i32 ) -> ()
3333 // CHECK-NEXT: 1
3434 func.call @check_subi (%rhs1 , %lhs1 ) : (i32 , i32 ) -> ()
35-
35+
3636 %lhs2 = arith.constant 1 : i32
3737 %rhs2 = arith.constant -2 : i32
3838
3939 // CHECK-NEXT: 3
4040 func.call @check_subi (%lhs2 , %rhs2 ) : (i32 , i32 ) -> ()
4141 // CHECK-NEXT: -3
4242 func.call @check_subi (%rhs2 , %lhs2 ) : (i32 , i32 ) -> ()
43-
43+
4444 %lhs3 = arith.constant -1 : i32
4545 %rhs3 = arith.constant -2 : i32
4646
4747 // CHECK-NEXT: 1
4848 func.call @check_subi (%lhs3 , %rhs3 ) : (i32 , i32 ) -> ()
4949 // CHECK-NEXT: -1
5050 func.call @check_subi (%rhs3 , %lhs3 ) : (i32 , i32 ) -> ()
51-
51+
5252 // Overflow from the upper/lower part.
5353 %lhs4 = arith.constant 131074 : i32
5454 %rhs4 = arith.constant 3 : i32
@@ -59,15 +59,15 @@ func.func @entry() {
5959 func.call @check_subi (%rhs4 , %lhs4 ) : (i32 , i32 ) -> ()
6060
6161 // Overflow in both parts.
62- %lhs5 = arith.constant 16385027 : i32
62+ %lhs5 = arith.constant 16385027 : i32
6363 %rhs5 = arith.constant 16450564 : i32
6464
6565 // CHECK-NEXT: -65537
6666 func.call @check_subi (%lhs5 , %rhs5 ) : (i32 , i32 ) -> ()
6767 // CHECK-NEXT: 65537
6868 func.call @check_subi (%rhs5 , %lhs5 ) : (i32 , i32 ) -> ()
6969
70- %lhs6 = arith.constant 65536 : i32
70+ %lhs6 = arith.constant 65536 : i32
7171 %rhs6 = arith.constant 1 : i32
7272
7373 // CHECK-NEXT: 65535
@@ -76,7 +76,7 @@ func.func @entry() {
7676 func.call @check_subi (%rhs6 , %lhs6 ) : (i32 , i32 ) -> ()
7777
7878 // Max/Min (un)signed integers.
79- %sintmax = arith.constant 2147483647 : i32
79+ %sintmax = arith.constant 2147483647 : i32
8080 %sintmin = arith.constant -2147483648 : i32
8181 %uintmax = arith.constant -1 : i32
8282 %uintmin = arith.constant 0 : i32
@@ -98,7 +98,6 @@ func.func @entry() {
9898 func.call @check_subi (%uintmin , %cst1 ) : (i32 , i32 ) -> ()
9999 // CHECK-NEXT: 1
100100 func.call @check_subi (%uintmin , %uintmax ) : (i32 , i32 ) -> ()
101-
102101
103102 return
104103}
0 commit comments