const.wast 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  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_const_1") (local $v1 v128)
  8. (set_local $v1
  9. (v128.const i32x4 0x00000000 0xff00abcc 0x00000000 0x00000000)
  10. )
  11. (v128.store offset=0 align=4 (i32.const 0) (get_local $v1))
  12. )
  13. (func (export "m128_const_2") (local $v1 v128)
  14. (set_local $v1
  15. (v128.const i32x4 0xa100bc00 0xffffffff 0x0000ff00 0x00000001)
  16. )
  17. (v128.store offset=0 align=4 (i32.const 0) (get_local $v1))
  18. )
  19. (func (export "m128_const_3") (local $v1 v128)
  20. (set_local $v1
  21. (v128.const i32x4 0xffffffff 0xffffffff 0x00000000 0xffffffff)
  22. )
  23. (v128.store offset=0 align=4 (i32.const 0) (get_local $v1))
  24. )
  25. (func (export "m128_const_4") (local $v1 v128)
  26. (set_local $v1
  27. (v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000)
  28. )
  29. (v128.store offset=0 align=4 (i32.const 0) (get_local $v1))
  30. )
  31. )