b32x4.wast 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. (func
  7. (export "func_b32x4_0")
  8. (result i32)
  9. (local b32x4)
  10. (set_local
  11. 0
  12. (b32x4.build
  13. (i32.const 0)
  14. (i32.const 1)
  15. (i32.const -2147483648)
  16. (i32.const 2147483647)
  17. )
  18. )
  19. (b32x4.extractLane
  20. (get_local 0)
  21. (i32.const 0)
  22. )
  23. )
  24. (func
  25. (export "func_b32x4_1")
  26. (result i32)
  27. (local b32x4)
  28. (set_local
  29. 0
  30. (b32x4.build
  31. (i32.const 0)
  32. (i32.const 1)
  33. (i32.const -2147483648)
  34. (i32.const 2147483647)
  35. )
  36. )
  37. (b32x4.extractLane
  38. (get_local 0)
  39. (i32.const 1)
  40. )
  41. )
  42. (func
  43. (export "func_b32x4_2")
  44. (result i32)
  45. (local b32x4)
  46. (set_local
  47. 0
  48. (b32x4.build
  49. (i32.const 0)
  50. (i32.const 1)
  51. (i32.const -2147483648)
  52. (i32.const 2147483647)
  53. )
  54. )
  55. (b32x4.extractLane
  56. (get_local 0)
  57. (i32.const 2)
  58. )
  59. )
  60. (func
  61. (export "func_b32x4_3")
  62. (result i32)
  63. (local b32x4)
  64. (set_local
  65. 0
  66. (b32x4.build
  67. (i32.const 0)
  68. (i32.const 1)
  69. (i32.const -2147483648)
  70. (i32.const 2147483647)
  71. )
  72. )
  73. (b32x4.extractLane
  74. (get_local 0)
  75. (i32.const 3)
  76. )
  77. )
  78. )