Suggested by @antiagainst in D134321.
func.func @entry() {
%cst0 = arith.constant 0 : i16
%cst1 = arith.constant 1 : i16
- %cst_1 = arith.constant -1 : i16
- %cst_3 = arith.constant -3 : i16
+ %cst_n1 = arith.constant -1 : i16
+ %cst_n3 = arith.constant -3 : i16
%cst13 = arith.constant 13 : i16
%cst37 = arith.constant 37 : i16
// CHECK-NEXT: 2
func.call @check_addi(%cst1, %cst1) : (i16, i16) -> ()
// CHECK-NEXT: 0
- func.call @check_addi(%cst1, %cst_1) : (i16, i16) -> ()
+ func.call @check_addi(%cst1, %cst_n1) : (i16, i16) -> ()
// CHECK-NEXT: -2
- func.call @check_addi(%cst_1, %cst_1) : (i16, i16) -> ()
+ func.call @check_addi(%cst_n1, %cst_n1) : (i16, i16) -> ()
// CHECK-NEXT: -2
- func.call @check_addi(%cst1, %cst_3) : (i16, i16) -> ()
+ func.call @check_addi(%cst1, %cst_n3) : (i16, i16) -> ()
// CHECK-NEXT: 26
func.call @check_addi(%cst13, %cst13) : (i16, i16) -> ()
func.call @check_addi(%cst37, %cst42) : (i16, i16) -> ()
// CHECK-NEXT: 255
- func.call @check_addi(%cst_1, %cst256) : (i16, i16) -> ()
+ func.call @check_addi(%cst_n1, %cst256) : (i16, i16) -> ()
// CHECK-NEXT: 269
func.call @check_addi(%cst256, %cst13) : (i16, i16) -> ()
// CHECK-NEXT: 293
func.call @check_addi(%cst256, %cst37) : (i16, i16) -> ()
// CHECK-NEXT: 253
- func.call @check_addi(%cst256, %cst_3) : (i16, i16) -> ()
+ func.call @check_addi(%cst256, %cst_n3) : (i16, i16) -> ()
// CHECK-NEXT: -32756
func.call @check_addi(%cst13, %cst_i16_max) : (i16, i16) -> ()
%cst0 = arith.constant 0 : i16
%cst1 = arith.constant 1 : i16
- %cst_1 = arith.constant -1 : i16
- %cst_3 = arith.constant -3 : i16
+ %cst_n1 = arith.constant -1 : i16
+ %cst_n3 = arith.constant -3 : i16
%cst13 = arith.constant 13 : i16
%cst256 = arith.constant 256 : i16
vector.print %cst1 : i16
// EMULATED-NEXT: ( -1, -1 )
- vector.print %cst_1 : i16
+ vector.print %cst_n1 : i16
// EMULATED-NEXT: ( -3, -1 )
- vector.print %cst_3 : i16
+ vector.print %cst_n3 : i16
// EMULATED-NEXT: ( 13, 0 )
vector.print %cst13 : i16
func.func @entry() {
%cst0 = arith.constant 0 : i16
%cst1 = arith.constant 1 : i16
- %cst_1 = arith.constant -1 : i16
- %cst_3 = arith.constant -3 : i16
+ %cst_n1 = arith.constant -1 : i16
+ %cst_n3 = arith.constant -3 : i16
%cst13 = arith.constant 13 : i16
%cst37 = arith.constant 37 : i16
// CHECK-NEXT: 1
func.call @check_muli(%cst1, %cst1) : (i16, i16) -> ()
// CHECK-NEXT: -1
- func.call @check_muli(%cst1, %cst_1) : (i16, i16) -> ()
+ func.call @check_muli(%cst1, %cst_n1) : (i16, i16) -> ()
// CHECK-NEXT: 1
- func.call @check_muli(%cst_1, %cst_1) : (i16, i16) -> ()
+ func.call @check_muli(%cst_n1, %cst_n1) : (i16, i16) -> ()
// CHECK-NEXT: -3
- func.call @check_muli(%cst1, %cst_3) : (i16, i16) -> ()
+ func.call @check_muli(%cst1, %cst_n3) : (i16, i16) -> ()
// CHECK-NEXT: 169
func.call @check_muli(%cst13, %cst13) : (i16, i16) -> ()
func.call @check_muli(%cst37, %cst42) : (i16, i16) -> ()
// CHECK-NEXT: -256
- func.call @check_muli(%cst_1, %cst256) : (i16, i16) -> ()
+ func.call @check_muli(%cst_n1, %cst256) : (i16, i16) -> ()
// CHECK-NEXT: 3328
func.call @check_muli(%cst256, %cst13) : (i16, i16) -> ()
// CHECK-NEXT: 9472
func.call @check_muli(%cst256, %cst37) : (i16, i16) -> ()
// CHECK-NEXT: -768
- func.call @check_muli(%cst256, %cst_3) : (i16, i16) -> ()
+ func.call @check_muli(%cst256, %cst_n3) : (i16, i16) -> ()
// CHECK-NEXT: 32755
func.call @check_muli(%cst13, %cst_i16_max) : (i16, i16) -> ()
%cst9 = arith.constant 9 : i16
%cst15 = arith.constant 15 : i16
- %cst_1 = arith.constant -1 : i16
- %cst_3 = arith.constant -3 : i16
+ %cst_n1 = arith.constant -1 : i16
%cst1337 = arith.constant 1337 : i16
func.call @check_shrui(%cst0, %cst1) : (i16, i16) -> ()
func.call @check_shrui(%cst1, %cst1) : (i16, i16) -> ()
func.call @check_shrui(%cst1, %cst0) : (i16, i16) -> ()
- func.call @check_shrui(%cst_1, %cst1) : (i16, i16) -> ()
- func.call @check_shrui(%cst_1, %cst15) : (i16, i16) -> ()
+ func.call @check_shrui(%cst_n1, %cst1) : (i16, i16) -> ()
+ func.call @check_shrui(%cst_n1, %cst15) : (i16, i16) -> ()
// CHECK-NEXT: 1337
// CHECK-NEXT: 334