* Reorganize the global value kinds. This: - renames "deref" global values to "load" and gives it a offset that works like the "load" instructions' does - adds an explicit "iadd_imm" global value kind, which replaces the builtin iadd in "vmctx" and "deref" global values. - also renames "globalsym" to "symbol"
17 lines
293 B
Plaintext
17 lines
293 B
Plaintext
test verifier
|
|
|
|
function %cycle() {
|
|
gv0 = load.i32 notrap aligned gv1 ; error: global value cycle: [gv0, gv1]
|
|
gv1 = load.i32 notrap aligned gv0-32
|
|
|
|
ebb1:
|
|
return
|
|
}
|
|
|
|
function %self_cycle() {
|
|
gv0 = load.i32 notrap aligned gv0 ; error: global value cycle: [gv0]
|
|
|
|
ebb1:
|
|
return
|
|
}
|