From 4c967431edb0e061d5dfdf6b2d2f2c4e049736ef Mon Sep 17 00:00:00 2001 From: Albin Chaboissier Date: Tue, 11 Nov 2025 11:05:05 +0100 Subject: [PATCH] Adds a test for load immediate (li) pseudo instruction This makes sure the other tests can build upon a sane base --- bench/tests/op/li.s | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 bench/tests/op/li.s diff --git a/bench/tests/op/li.s b/bench/tests/op/li.s new file mode 100644 index 0000000..a29f314 --- /dev/null +++ b/bench/tests/op/li.s @@ -0,0 +1,9 @@ +# exepected: 1234567890ABCDEF, 00000000FFFFFFFF + +# li is a PSEUDO-INSTRUCTION. +# This test makes sure we can reliably load 64bit words +# into the processor as it is essential for all other tests + .text +_start: + li x31, 0x1234567890ABCDEF + li x31, 0x00000000FFFFFFFF