From d68437e1e6415d62116829dcf18f94b9070230e0 Mon Sep 17 00:00:00 2001 From: Darin Morrison Date: Sun, 1 Mar 2020 20:36:09 -0700 Subject: [PATCH] Update SIMD tests to use hex literals --- .../filetests/isa/x86/simd-arithmetic-binemit.clif | 4 ++-- .../filetests/filetests/isa/x86/simd-arithmetic-run.clif | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cranelift/filetests/filetests/isa/x86/simd-arithmetic-binemit.clif b/cranelift/filetests/filetests/isa/x86/simd-arithmetic-binemit.clif index 85797d9a4b..f4b969c90d 100644 --- a/cranelift/filetests/filetests/isa/x86/simd-arithmetic-binemit.clif +++ b/cranelift/filetests/filetests/isa/x86/simd-arithmetic-binemit.clif @@ -78,7 +78,7 @@ block0(v0: i8x16 [%xmm3], v1: i8x16 [%xmm4]): function %imul_i32x4() -> b1 { block0: -[-, %xmm0] v0 = vconst.i32x4 [-1 0 1 -2147483647] ; e.g. -2147483647 == 0x80_00_00_01 +[-, %xmm0] v0 = vconst.i32x4 [-1 0 1 0x80_00_00_01] [-, %xmm1] v1 = vconst.i32x4 [2 2 2 2] [-, %xmm0] v2 = imul v0, v1 ; bin: 66 0f 38 40 c1 @@ -99,7 +99,7 @@ block0: function %imul_i16x8() -> b1 { block0: -[-, %xmm1] v0 = vconst.i16x8 [-1 0 1 32767 0 0 0 0] ; e.g. 32767 == 0x7f_ff +[-, %xmm1] v0 = vconst.i16x8 [-1 0 1 0x7f_ff 0 0 0 0] [-, %xmm2] v1 = vconst.i16x8 [2 2 2 2 0 0 0 0] [-, %xmm1] v2 = imul v0, v1 ; bin: 66 0f d5 ca diff --git a/cranelift/filetests/filetests/isa/x86/simd-arithmetic-run.clif b/cranelift/filetests/filetests/isa/x86/simd-arithmetic-run.clif index 3403815154..71e1e79000 100644 --- a/cranelift/filetests/filetests/isa/x86/simd-arithmetic-run.clif +++ b/cranelift/filetests/filetests/isa/x86/simd-arithmetic-run.clif @@ -67,7 +67,7 @@ block0: function %imul_i32x4() -> b1 { block0: - v0 = vconst.i32x4 [-1 0 1 -2147483647] ; e.g. -2147483647 == 0x80_00_00_01 + v0 = vconst.i32x4 [-1 0 1 0x80_00_00_01] v1 = vconst.i32x4 [2 2 2 2] v2 = imul v0, v1 @@ -88,7 +88,7 @@ block0: function %imul_i16x8() -> b1 { block0: - v0 = vconst.i16x8 [-1 0 1 32767 0 0 0 0] ; e.g. 32767 == 0x7f_ff + v0 = vconst.i16x8 [-1 0 1 0x7f_ff 0 0 0 0] v1 = vconst.i16x8 [2 2 2 2 0 0 0 0] v2 = imul v0, v1 @@ -268,9 +268,9 @@ block0: function %average_rounding_i16x8() -> b1 { block0: - v0 = vconst.i16x8 [0 0 0 1 42 19 -1 -1] + v0 = vconst.i16x8 [0 0 0 1 42 19 -1 0xffff] v1 = vconst.i16x8 [0 1 2 4 42 18 -1 0] - v2 = vconst.i16x8 [0 1 1 3 42 19 -1 -32768] ; -1 (0xffff) + 0 + 1 == -32768 (0x8000) + v2 = vconst.i16x8 [0 1 1 3 42 19 -1 0x8000] v3 = avg_round v0, v1 v4 = icmp eq v2, v3