• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-mc -show-encoding -triple=wasm32-unknown-unknown -mattr=+bulk-memory < %s | FileCheck %s
2# RUN: llvm-mc -show-encoding -triple=wasm64-unknown-unknown -mattr=+bulk-memory < %s | FileCheck %s
3
4main:
5    .functype main () -> ()
6
7    # CHECK: memory.init 3, 0 # encoding: [0xfc,0x08,0x03,0x00]
8    memory.init 3, 0
9
10    # CHECK: data.drop 3 # encoding: [0xfc,0x09,0x03]
11    data.drop 3
12
13    # CHECK: memory.copy 0, 0 # encoding: [0xfc,0x0a,0x00,0x00]
14    memory.copy 0, 0
15
16    # CHECK: memory.fill 0 # encoding: [0xfc,0x0b,0x00]
17    memory.fill 0
18
19    end_function
20