Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,20 @@ 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
%cst_npow40ppow20 = arith.constant -1099512676352.0 : f64

%cst_max = arith.constant 9007199254740992.0
%cst_min = arith.constant -9007199254740992.0

// CHECK: 0
func.call @check_fptosi(%cst0) : (f64) -> ()
// CHECK-NEXT: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,23 @@ 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

// CHECK-NEXT: 3
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

// CHECK-NEXT: 1
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
Expand All @@ -59,15 +59,15 @@ 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
func.call @check_subi(%lhs5, %rhs5) : (i32, i32) -> ()
// 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
Expand All @@ -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
Expand All @@ -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
}
Loading