tinycc/tests/tests2/140_int_sign_extension.expect
Meng Zhuo ff917c09aa riscv64: implement gen_cvt_sxtw with addiw instruction
Replaces the empty stub that relied on 'RV64 registers are always
sign-extended' assumption.  Now emits addiw rd, rs, 0 for proper
32-to-64 bit sign extension, matching arm64's sxtw behavior.

Verified on Spacemit X100: tests2 pass (125_atomic_misc has a
pre-existing intermittent segfault, not caused by this change).
2026-05-06 12:30:34 +08:00

5 lines
55 B
Plaintext

y=ffffffff80000000
y=40000000
uy=ffffffff80000000
PASS