Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/sim/testsuite/msp430/rrux.s
2023-03-06 14:48:14 +01:00

14 lines
232 B
ArmAsm

# check that rrux (synthesized as rrc with ZC bit set) works.
# mach: msp430
.include "testutils.inc"
start
setc ; set the carry bit to ensure ZC bit is obeyed
mov.w #16, r10
rrux.w r10
cmp.w #8, r10
jeq 1f
fail
1: pass