1 # RUN: split-file %s %t
2 # RUN: llvm-mc -show-encoding -triple=wasm32-unknown-unknown -mattr=+bulk-memory < %t/wasm32.s | FileCheck %s
3 # RUN: llvm-mc -show-encoding -triple=wasm64-unknown-unknown -mattr=+bulk-memory < %t/wasm64.s | FileCheck %s
7 .functype main () -> ()
9 i32.const
2 # dest address
10 i32.const
3 # src offset
12 # CHECK: memory.init 3, 0 # encoding: [0xfc,0x08,0x03,0x00]
15 # CHECK: data.drop 3 # encoding: [0xfc,0x09,0x03]
21 # CHECK: memory.copy 0, 0 # encoding: [0xfc,0x0a,0x00,0x00]
27 # CHECK: memory.fill 0 # encoding: [0xfc,0x0b,0x00]
34 .functype main () -> ()
36 i64.const
2 # dest address
37 i32.const
3 # src offset