test.wast 674 B

123456789101112131415161718192021222324252627
  1. (module
  2. (type (;0;) (func))
  3. (type (;1;) (func (result i32)))
  4. (type (;2;) (func (param f32) (result f32)))
  5. (func (;0;) (result i64)
  6. i32.const -1518330408
  7. i64.const 1022
  8. i64.const 904
  9. i64.add
  10. global.get 0
  11. i64.add
  12. global.set 0
  13. f32.const 0x1.01499cp+1 (;=2.01006;)
  14. call 1
  15. i32.const 0
  16. if (param f32) (result f32) ;; label = @1
  17. end
  18. i64.trunc_f32_u
  19. return
  20. )
  21. (func (;1;) (type 2) (param f32) (result f32)
  22. f32.const inf (;=inf;))
  23. (global (;0;) (mut i64) (i64.const 858))
  24. (global (;1;) (mut f64) (f64.const 0x1.0370499c98398p+3 (;=8.10746;)))
  25. (export "_start" (func 0))
  26. (export "to_test" (func 0))
  27. )