const.wast 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 m128)
  8. (set_local $v1
  9. (m128.const
  10. (i32.const 0x0)
  11. (i32.const 0x0)
  12. (i32.const 0x0)
  13. (i32.const 0x0)
  14. (i32.const 0xcc)
  15. (i32.const 0xab)
  16. (i32.const 0x0)
  17. (i32.const 0xff)
  18. (i32.const 0x0)
  19. (i32.const 0x0)
  20. (i32.const 0x0)
  21. (i32.const 0x0)
  22. (i32.const 0x0)
  23. (i32.const 0x0)
  24. (i32.const 0x0)
  25. (i32.const 0x0)
  26. )
  27. )
  28. (m128.store offset=0 (i32.const 0) (get_local $v1))
  29. )
  30. (func (export "m128_const_2") (local $v1 m128)
  31. (set_local $v1
  32. (m128.const
  33. (i32.const 0x0)
  34. (i32.const 0xbc)
  35. (i32.const 0x0)
  36. (i32.const 0xa1)
  37. (i32.const 0xff)
  38. (i32.const 0xff)
  39. (i32.const 0xff)
  40. (i32.const 0xff)
  41. (i32.const 0x0)
  42. (i32.const 0xff)
  43. (i32.const 0x0)
  44. (i32.const 0x0)
  45. (i32.const 0x1)
  46. (i32.const 0x0)
  47. (i32.const 0x0)
  48. (i32.const 0x0)
  49. )
  50. )
  51. (m128.store offset=0 (i32.const 0) (get_local $v1))
  52. )
  53. (func (export "m128_const_3") (local $v1 m128)
  54. (set_local $v1
  55. (m128.const
  56. (i32.const 0xff)
  57. (i32.const 0xff)
  58. (i32.const 0xff)
  59. (i32.const 0xff)
  60. (i32.const 0xff)
  61. (i32.const 0xff)
  62. (i32.const 0xff)
  63. (i32.const 0xff)
  64. (i32.const 0x0)
  65. (i32.const 0x0)
  66. (i32.const 0x0)
  67. (i32.const 0x0)
  68. (i32.const 0xff)
  69. (i32.const 0xff)
  70. (i32.const 0xff)
  71. (i32.const 0xff)
  72. )
  73. )
  74. (m128.store offset=0 (i32.const 0) (get_local $v1))
  75. )
  76. (func (export "m128_const_4") (local $v1 m128)
  77. (set_local $v1
  78. (m128.const
  79. (i32.const 0x0)
  80. (i32.const 0x0)
  81. (i32.const 0x0)
  82. (i32.const 0x0)
  83. (i32.const 0x0)
  84. (i32.const 0x0)
  85. (i32.const 0x0)
  86. (i32.const 0x0)
  87. (i32.const 0x0)
  88. (i32.const 0x0)
  89. (i32.const 0x0)
  90. (i32.const 0x0)
  91. (i32.const 0x0)
  92. (i32.const 0x0)
  93. (i32.const 0x0)
  94. (i32.const 0x0)
  95. )
  96. )
  97. (m128.store offset=0 (i32.const 0) (get_local $v1))
  98. )
  99. )