test.wast 549 B

12345678910111213141516171819202122232425262728
  1. (module
  2. (type $0 (func))
  3. (type $1 (func (result i32)))
  4. (type $2 (func (param i32 i32) (result i32 i32)))
  5. (export "_start" (func $3))
  6. (export "to_test" (func $3))
  7. (func $3 (type $1)
  8. (result i32)
  9. f32.const -0x1.0bb6d6p+2
  10. f32.const -0x1.2a640ap+2
  11. f32.ge
  12. i32.const 353
  13. call $4
  14. i32.const 1
  15. if $if (param i32 i32) (result i32 i32)
  16. end ;; $if
  17. i32.gt_u
  18. return
  19. )
  20. (func $4 (type $2)
  21. (param $0 i32)
  22. (param $1 i32)
  23. (result i32 i32)
  24. i32.const -1
  25. i32.const 2147483647
  26. ))