[mlir][arith] Trim trailing spaces in wide int emulation tests. NFC. (#133349)

Followup cleanup after https://github.com/llvm/llvm-project/pull/132375
and https://github.com/llvm/llvm-project/pull/133248
This commit is contained in:
Jakub Kuderski 2025-03-27 22:36:05 -04:00 committed by GitHub
parent 14c36db16f
commit f359c0bde5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 11 deletions

View File

@ -35,13 +35,12 @@ func.func @entry() {
%cstpow20 = arith.constant 1048576.0 : f64
%cstnpow20 = arith.constant -1048576.0 : f64
%cst_i32_max = arith.constant 4294967295.0 : f64
%cst_i32_min = arith.constant -4294967296.0 : f64
%cst_i32_overflow = arith.constant 4294967296.0 : f64
%cst_i32_noverflow = arith.constant -4294967297.0 : f64
%cstpow40 = arith.constant 1099511627776.0 : f64
%cstnpow40 = arith.constant -1099511627776.0 : f64
%cst_pow40ppow20 = arith.constant 1099512676352.0 : f64
@ -49,7 +48,7 @@ func.func @entry() {
%cst_max = arith.constant 9007199254740992.0
%cst_min = arith.constant -9007199254740992.0
// CHECK: 0
func.call @check_fptosi(%cst0) : (f64) -> ()
// CHECK-NEXT: 0

View File

@ -40,7 +40,7 @@ func.func @entry() {
%cst_pow40ppow20 = arith.constant 1099512676352.0 : f64
%cst_nzero = arith.constant 0x8000000000000000 : f64
// CHECK: 0
func.call @check_fptoui(%cst0) : (f64) -> ()
// CHECK-NEXT: 1

View File

@ -32,7 +32,7 @@ func.func @entry() {
func.call @check_subi(%lhs1, %rhs1) : (i32, i32) -> ()
// CHECK-NEXT: 1
func.call @check_subi(%rhs1, %lhs1) : (i32, i32) -> ()
%lhs2 = arith.constant 1 : i32
%rhs2 = arith.constant -2 : i32
@ -40,7 +40,7 @@ func.func @entry() {
func.call @check_subi(%lhs2, %rhs2) : (i32, i32) -> ()
// CHECK-NEXT: -3
func.call @check_subi(%rhs2, %lhs2) : (i32, i32) -> ()
%lhs3 = arith.constant -1 : i32
%rhs3 = arith.constant -2 : i32
@ -48,7 +48,7 @@ func.func @entry() {
func.call @check_subi(%lhs3, %rhs3) : (i32, i32) -> ()
// CHECK-NEXT: -1
func.call @check_subi(%rhs3, %lhs3) : (i32, i32) -> ()
// Overflow from the upper/lower part.
%lhs4 = arith.constant 131074 : i32
%rhs4 = arith.constant 3 : i32
@ -59,7 +59,7 @@ func.func @entry() {
func.call @check_subi(%rhs4, %lhs4) : (i32, i32) -> ()
// Overflow in both parts.
%lhs5 = arith.constant 16385027 : i32
%lhs5 = arith.constant 16385027 : i32
%rhs5 = arith.constant 16450564 : i32
// CHECK-NEXT: -65537
@ -67,7 +67,7 @@ func.func @entry() {
// CHECK-NEXT: 65537
func.call @check_subi(%rhs5, %lhs5) : (i32, i32) -> ()
%lhs6 = arith.constant 65536 : i32
%lhs6 = arith.constant 65536 : i32
%rhs6 = arith.constant 1 : i32
// CHECK-NEXT: 65535
@ -76,7 +76,7 @@ func.func @entry() {
func.call @check_subi(%rhs6, %lhs6) : (i32, i32) -> ()
// Max/Min (un)signed integers.
%sintmax = arith.constant 2147483647 : i32
%sintmax = arith.constant 2147483647 : i32
%sintmin = arith.constant -2147483648 : i32
%uintmax = arith.constant -1 : i32
%uintmin = arith.constant 0 : i32
@ -98,7 +98,6 @@ func.func @entry() {
func.call @check_subi(%uintmin, %cst1) : (i32, i32) -> ()
// CHECK-NEXT: 1
func.call @check_subi(%uintmin, %uintmax) : (i32, i32) -> ()
return
}