diff options
Diffstat (limited to 'deps/lightning/check/align.tst')
-rw-r--r-- | deps/lightning/check/align.tst | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/deps/lightning/check/align.tst b/deps/lightning/check/align.tst new file mode 100644 index 0000000..5d5348c --- /dev/null +++ b/deps/lightning/check/align.tst @@ -0,0 +1,28 @@ +.data 32 +fmt: +.c "%d\n" +.code + prolog + movi %r0 1 + jmpi L1 /* should not generate this */ + align $(__WORDSIZE / 8) /* possible nops */ +L1: + bgei L4 %r0 10 + addi %r0 %r0 1 + jmpi L2 + movr %r1 %r0 /* to force jump generation */ + align $(__WORDSIZE / 8) /* possible nops */ +L2: + bgti L4 %r0 10 /* never executed */ + align $(__WORDSIZE / 8) /* possible nops */ +L3: + jmpi L1 + align $(__WORDSIZE / 8) /* possible nops */ +L4: + prepare + pushargi fmt + ellipsis + pushargr %r0 + finishi @printf + ret + epilog |