Skip to content
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

[NFC] Recover tests for divsi and remsi #191

Merged
merged 1 commit into from
May 22, 2024
Merged
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
16 changes: 16 additions & 0 deletions mlir/test/Conversion/ArithToEmitC/arith-to-emitc.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,22 @@ func.func @arith_integer_ops(%arg0: i32, %arg1: i32) {

// -----

func.func @arith_signed_integer_div(%arg0: i32, %arg1: i32) {
// CHECK: emitc.div %arg0, %arg1 : (i32, i32) -> i32
%0 = arith.divsi %arg0, %arg1 : i32
return
}

// -----

func.func @arith_signed_integer_rem(%arg0: i32, %arg1: i32) {
// CHECK: emitc.rem %arg0, %arg1 : (i32, i32) -> i32
%0 = arith.remsi %arg0, %arg1 : i32
return
}

// -----

// CHECK-LABEL: arith_integer_ops_signed_nsw
func.func @arith_integer_ops_signed_nsw(%arg0: i32, %arg1: i32) {
// CHECK: emitc.add %arg0, %arg1 : (i32, i32) -> i32
Expand Down