From 78c11ae4a19491ff453109fc7711b15721ef3bb9 Mon Sep 17 00:00:00 2001 From: Masanori Ogino <167209+omasanori@users.noreply.github.com> Date: Fri, 29 May 2026 22:53:31 +0900 Subject: [PATCH] Prevent li from being compressed .option rvc makes li -> c.lui+c.addiw (4 bytes) instead of lui+addiw (8 bytes) which results in the difference of offset and the test fails. Signed-off-by: Masanori Ogino <167209+omasanori@users.noreply.github.com> Assisted-by: Claude:claude-4.8-opus --- smart_run/tests/cases/ISA/ISA_INT/C906_INT_SMOKE.s | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/smart_run/tests/cases/ISA/ISA_INT/C906_INT_SMOKE.s b/smart_run/tests/cases/ISA/ISA_INT/C906_INT_SMOKE.s index b7ef70d..9065e5f 100644 --- a/smart_run/tests/cases/ISA/ISA_INT/C906_INT_SMOKE.s +++ b/smart_run/tests/cases/ISA/ISA_INT/C906_INT_SMOKE.s @@ -243,12 +243,18 @@ LUI: .global AUIPC AUIPC: auipc x2, 0x0 + .option push + .option norvc li x3, 0xa00e + .option pop c.add x2, x3 auipc x4, 0xa bne x2, x4, TEST_FAIL auipc x2, 0x0 + .option push + .option norvc li x3, 0x80000014 + .option pop addw x2, x3, x2 auipc x4, 0x80000 bne x2, x4, TEST_FAIL