summaryrefslogtreecommitdiff
path: root/test/dump/simd-splat.txt
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2018-11-19 17:32:43 -0800
committerGitHub <noreply@github.com>2018-11-19 17:32:43 -0800
commita3ec8554b5c62e2f973992054904f30e99910384 (patch)
tree6dcf15309a0062c4f9df355f5bd27085b1223e79 /test/dump/simd-splat.txt
parent690948b22cc3e1213820f3e4b33009ebdef66e2d (diff)
downloadwabt-a3ec8554b5c62e2f973992054904f30e99910384.tar.gz
wabt-a3ec8554b5c62e2f973992054904f30e99910384.tar.bz2
wabt-a3ec8554b5c62e2f973992054904f30e99910384.zip
Fix wasm-objdump binary opcode output (#958)
Some instructions have very long encodings (longer than 9 bytes). For those instructions, it is nice to write out all the bytes for that instruction and their immediates. This used to be truncated, and misaligned: ``` 0002f1: fd 02 01 00 00 00 02 00 00 00 03 | v128.const 0x00000001 0x00000002 0x00000003 0x00000004 ``` Now it is wrapped: ``` 0002f0: fd 02 01 00 00 00 02 00 00 | v128.const 0x00000001 0x00000002 0x00000003 0x00000004 0002f9: 00 03 00 00 00 04 00 00 00 | ``` The instruction offset was also incorrect before for instructions with a prefix, and is now fixed.
Diffstat (limited to 'test/dump/simd-splat.txt')
-rw-r--r--test/dump/simd-splat.txt15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/dump/simd-splat.txt b/test/dump/simd-splat.txt
index 23aac8f2..7b66426c 100644
--- a/test/dump/simd-splat.txt
+++ b/test/dump/simd-splat.txt
@@ -41,26 +41,27 @@ Code Disassembly:
00009c <func_i8x16_splat_0>:
00009e: 41 ff 00 | i32.const 127
- 0000a2: fd 04 | i8x16.splat
+ 0000a1: fd 04 | i8x16.splat
0000a3: 0b | end
0000a4 <func_i16x8_splat_0>:
0000a6: 41 b4 24 | i32.const 4660
- 0000aa: fd 08 | i16x8.splat
+ 0000a9: fd 08 | i16x8.splat
0000ab: 0b | end
0000ac <func_i32x4_splat_0>:
0000ae: 41 f8 ac d1 91 01 | i32.const 305419896
- 0000b5: fd 0c | i32x4.splat
+ 0000b4: fd 0c | i32x4.splat
0000b6: 0b | end
0000b7 <func_i64x2_splat_0>:
- 0000b9: 42 80 80 80 80 80 cf 95 9a 12 | i64.const 1311768464867721216
- 0000c4: fd 0f | i64x2.splat
+ 0000b9: 42 80 80 80 80 80 cf 95 9a | i64.const 1311768464867721216
+ 0000c2: 12 |
+ 0000c3: fd 0f | i64x2.splat
0000c5: 0b | end
0000c6 <func_f32x4_splat_0>:
0000c8: 43 00 00 80 3f | f32.const 0x1p+0
- 0000ce: fd 12 | f32x4.splat
+ 0000cd: fd 12 | f32x4.splat
0000cf: 0b | end
0000d0 <func_f64x2_splat_0>:
0000d2: 44 00 00 00 00 00 00 f0 3f | f64.const 0x1p+0
- 0000dc: fd 15 | f64x2.splat
+ 0000db: fd 15 | f64x2.splat
0000dd: 0b | end
;;; STDOUT ;;)