~maelkum/viuavm

41a056aafe291d19f27aefc304c898c220782541 — Marek Marecki 9 months ago bcd55d6
Add test for IF with a prepared target
2 files changed, 23 insertions(+), 0 deletions(-)

A new/tests/asm/if_indirect.asm
A new/tests/asm/if_indirect.ebreak
A new/tests/asm/if_indirect.asm => new/tests/asm/if_indirect.asm +22 -0
@@ 0,0 1,22 @@
.section ".text"

.symbol [[entry_point]] main
.label main
    atom $1, equal
    atom $2, not_equal

    atxtp $4.l, @if_true

    eq $3, $1, $2

    if $3, $4.l

    move $3, $2
    if void, epilogue

.label if_true
    move $3, $1

.label epilogue
    ebreak
    return

A new/tests/asm/if_indirect.ebreak => new/tests/asm/if_indirect.ebreak +1 -0
@@ 0,0 1,1 @@
[3.l] atom not_equal