Skip to content

Commit f359c0b

Browse files
authored
[mlir][arith] Trim trailing spaces in wide int emulation tests. NFC. (llvm#133349)
Followup cleanup after llvm#132375 and llvm#133248
1 parent 14c36db commit f359c0b

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

mlir/test/Integration/Dialect/Arith/CPU/test-wide-int-emulation-fptosi-i64.mlir

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,20 @@ func.func @entry() {
3535

3636
%cstpow20 = arith.constant 1048576.0 : f64
3737
%cstnpow20 = arith.constant -1048576.0 : f64
38-
38+
3939
%cst_i32_max = arith.constant 4294967295.0 : f64
4040
%cst_i32_min = arith.constant -4294967296.0 : f64
4141
%cst_i32_overflow = arith.constant 4294967296.0 : f64
4242
%cst_i32_noverflow = arith.constant -4294967297.0 : f64
4343

44-
4544
%cstpow40 = arith.constant 1099511627776.0 : f64
4645
%cstnpow40 = arith.constant -1099511627776.0 : f64
4746
%cst_pow40ppow20 = arith.constant 1099512676352.0 : f64
4847
%cst_npow40ppow20 = arith.constant -1099512676352.0 : f64
4948

5049
%cst_max = arith.constant 9007199254740992.0
5150
%cst_min = arith.constant -9007199254740992.0
52-
51+
5352
// CHECK: 0
5453
func.call @check_fptosi(%cst0) : (f64) -> ()
5554
// CHECK-NEXT: 0

mlir/test/Integration/Dialect/Arith/CPU/test-wide-int-emulation-fptoui-i64.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func.func @entry() {
4040
%cst_pow40ppow20 = arith.constant 1099512676352.0 : f64
4141

4242
%cst_nzero = arith.constant 0x8000000000000000 : f64
43-
43+
4444
// CHECK: 0
4545
func.call @check_fptoui(%cst0) : (f64) -> ()
4646
// CHECK-NEXT: 1

mlir/test/Integration/Dialect/Arith/CPU/test-wide-int-emulation-subi-i32.mlir

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)