Skip to content

Commit

Permalink
cranelift: Deduplicate ExtName for avg_round tests
Browse files Browse the repository at this point in the history
  • Loading branch information
afonso360 committed Aug 16, 2022
1 parent 0e695e8 commit 7989edc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cranelift/filetests/filetests/runtests/simd-arithmetic.clif
Original file line number Diff line number Diff line change
Expand Up @@ -174,19 +174,19 @@ block0(v0: f32x4):
}
; run: %fabs_f32x4([0x0.0 -0x1.0 0x2.0 -0x3.0]) == [0x0.0 0x1.0 0x2.0 0x3.0]

function %average_rounding_i8x16(i8x16, i8x16) -> i8x16 {
function %avg_round_i8x16(i8x16, i8x16) -> i8x16 {
block0(v0: i8x16, v1: i8x16):
v2 = avg_round v0, v1
return v2
}
; run: %average_rounding_i8x16([0 0 0 1 42 19 -1 0xff 5 0 0 0 1 42 19 -1], [0 1 2 4 42 18 -1 0 10 0 1 2 4 42 18 -1]) == [0 1 1 3 42 19 -1 0x80 8 0 1 1 3 42 19 -1]
; run: %avg_round_i8x16([0 0 0 1 42 19 -1 0xff 5 0 0 0 1 42 19 -1], [0 1 2 4 42 18 -1 0 10 0 1 2 4 42 18 -1]) == [0 1 1 3 42 19 -1 0x80 8 0 1 1 3 42 19 -1]

function %average_rounding_i16x8(i16x8, i16x8) -> i16x8 {
function %avg_round_i16x8(i16x8, i16x8) -> i16x8 {
block0(v0: i16x8, v1: i16x8):
v2 = avg_round v0, v1
return v2
}
; run: %average_rounding_i16x8([0 0 0 1 42 19 -1 0xffff], [0 1 2 4 42 18 -1 0]) == [0 1 1 3 42 19 -1 0x8000]
; run: %avg_round_i16x8([0 0 0 1 42 19 -1 0xffff], [0 1 2 4 42 18 -1 0]) == [0 1 1 3 42 19 -1 0x8000]

function %iabs(i32x4) -> i32x4 {
block0(v0: i32x4):
Expand Down

0 comments on commit 7989edc

Please sign in to comment.