stores.wast 882 B

123456789101112131415161718
  1. ;;-------------------------------------------------------------------------------------------------------
  2. ;; Copyright (C) Microsoft Corporation and contributors. All rights reserved.
  3. ;; Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. ;;-------------------------------------------------------------------------------------------------------
  5. (module
  6. (import "dummy" "memory" (memory 1))
  7. (func (export "m128_store4") (param i32 i32 i32 i32 i32) (local m128)
  8. (set_local 5 (m128.load offset=0 align=4 (i32.const 16)))
  9. (m128.store offset=0 align=4 (get_local 0) (get_local 5))
  10. )
  11. (func (export "m128_store4_offset") (param i32 i32 i32 i32 i32) (local m128)
  12. (set_local 5 (m128.load offset=0 align=4 (i32.const 16)))
  13. (m128.store offset=16 align=4 (get_local 0) (get_local 5))
  14. )
  15. )