From 4291ebc25ee5921ac64d0fd09653d7f5e645430a Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Sat, 28 Sep 2024 15:14:17 +0200 Subject: [PATCH] forgot --- hblang/tests/son_tests_pointer_opts.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/hblang/tests/son_tests_pointer_opts.txt b/hblang/tests/son_tests_pointer_opts.txt index e69de29..fb6ad34 100644 --- a/hblang/tests/son_tests_pointer_opts.txt +++ b/hblang/tests/son_tests_pointer_opts.txt @@ -0,0 +1,23 @@ +clobber: + ADDI64 r254, r254, -16d + ST r31, r254, 0a, 16h + LI64 r32, 4d + ST r32, r2, 0a, 8h + LD r31, r254, 0a, 16h + ADDI64 r254, r254, 16d + JALA r0, r31, 0a +main: + ADDI64 r254, r254, -32d + ST r31, r254, 8a, 24h + LI64 r32, 2d + ADDI64 r2, r254, 0d + ST r32, r254, 0a, 8h + JAL r31, r0, :clobber + LD r33, r254, 0a, 8h + ADDI64 r1, r33, -4d + LD r31, r254, 8a, 24h + ADDI64 r254, r254, 32d + JALA r0, r31, 0a +code size: 214 +ret: 0 +status: Ok(())