x64: Port func_addr and symbol_value to ISLE (#4485)

https://github.com/bytecodealliance/wasmtime/pull/4485
This commit is contained in:
Trevor Elliott
2022-07-25 11:11:16 -07:00
committed by GitHub
parent 446efd3e11
commit ee7e4f4c6b
8 changed files with 86 additions and 74 deletions

View File

@@ -0,0 +1,35 @@
test compile precise-output
target x86_64
function %func_addr() -> i64 {
fn0 = %func0(i64) -> i64
block0:
v0 = func_addr.i64 fn0
return v0
}
; pushq %rbp
; movq %rsp, %rbp
; block0:
; load_ext_name %func0+0, %rax
; movq %rbp, %rsp
; popq %rbp
; ret
function %symbol_value() -> i64 {
gv0 = symbol %global0
block0:
v0 = symbol_value.i64 gv0
return v0
}
; pushq %rbp
; movq %rsp, %rbp
; block0:
; load_ext_name %global0+0, %rax
; movq %rbp, %rsp
; popq %rbp
; ret