stores.wast 1.0 KB

123456789101112131415161718192021222324
  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 "v128_store4") (param i32 i32 i32 i32 i32) (local v128)
  8. (set_local 5 (v128.load offset=0 (i32.const 16)))
  9. (v128.store offset=0 (get_local 0) (get_local 5))
  10. )
  11. (func (export "v128_store4_offset") (param i32 i32 i32 i32 i32) (local v128)
  12. (set_local 5 (v128.load offset=0 (i32.const 16)))
  13. (v128.store offset=16 (get_local 0) (get_local 5))
  14. )
  15. (func
  16. (export "v128_store_i32x4")
  17. (param $index i32)
  18. (param $value i32)
  19. (v128.store align=4 (get_local $index) (i32x4.splat (get_local $value)))
  20. )
  21. )