bulk_memory_fill.wat (266B)
1 (module 2 (memory 1) 3 (func (export "test_main") (result i32) 4 ;; memory.fill: dst=8, value=0x2a, len=4 5 i32.const 8 6 i32.const 0x2a 7 i32.const 4 8 memory.fill 9 ;; load the first filled byte (zero-extended to i32) 10 i32.const 8 11 i32.load8_u))