You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.4 KiB
59 lines
1.4 KiB
;;! target = "x86_64"
|
|
;;! test = "compile"
|
|
;;! flags = [ "-Oopt-level=2", "-Cpcc=y", "-Ccranelift-has-avx=false" ]
|
|
|
|
(module
|
|
(memory 1 1)
|
|
(func (export "load_f32") (param i32) (result f32)
|
|
local.get 0
|
|
f32.load)
|
|
(func (export "load_f64") (param i32) (result f64)
|
|
local.get 0
|
|
f64.load)
|
|
(func (export "store_f32") (param i32 f32)
|
|
local.get 0
|
|
local.get 1
|
|
f32.store)
|
|
(func (export "store_f64") (param i32 f64)
|
|
local.get 0
|
|
local.get 1
|
|
f64.store))
|
|
;; wasm[0]::function[0]:
|
|
;; pushq %rbp
|
|
;; movq %rsp, %rbp
|
|
;; movq 0x60(%rdi), %r8
|
|
;; movl %edx, %r9d
|
|
;; movss (%r8, %r9), %xmm0
|
|
;; movq %rbp, %rsp
|
|
;; popq %rbp
|
|
;; retq
|
|
;;
|
|
;; wasm[0]::function[1]:
|
|
;; pushq %rbp
|
|
;; movq %rsp, %rbp
|
|
;; movq 0x60(%rdi), %r8
|
|
;; movl %edx, %r9d
|
|
;; movsd (%r8, %r9), %xmm0
|
|
;; movq %rbp, %rsp
|
|
;; popq %rbp
|
|
;; retq
|
|
;;
|
|
;; wasm[0]::function[2]:
|
|
;; pushq %rbp
|
|
;; movq %rsp, %rbp
|
|
;; movq 0x60(%rdi), %r8
|
|
;; movl %edx, %r9d
|
|
;; movss %xmm0, (%r8, %r9)
|
|
;; movq %rbp, %rsp
|
|
;; popq %rbp
|
|
;; retq
|
|
;;
|
|
;; wasm[0]::function[3]:
|
|
;; pushq %rbp
|
|
;; movq %rsp, %rbp
|
|
;; movq 0x60(%rdi), %r8
|
|
;; movl %edx, %r9d
|
|
;; movsd %xmm0, (%r8, %r9)
|
|
;; movq %rbp, %rsp
|
|
;; popq %rbp
|
|
;; retq
|
|
|