old-cross-binutils/sim/testsuite/d10v-elf/t-rac.s
Andrew Cagney aa49c64f3e * d10v_sim.h (SEXT56): Define.
* simops.c (OP_4201): For "rac", sign extend 56 bit value before
it is shifted.
* d10v_sim.h (MAX32, MIN32, MASK32, MASK40): Re-define using
SIGNED64 macro.
1997-12-03 08:03:33 +00:00

16 lines
246 B
ArmAsm

.include "t-macros.i"
start
;; clear FX
loadpsw2 0x8004
loadacc2 a0 0x80 0x0000 0x0000
loadacc2 a1 0x00 0x0000 0x5000
load r10 0x0123
load r11 0x4567
test_rac1:
RAC r10, a0, #-2
checkpsw2 1 0x8008
check2w2 2 r10 0x8000 0x0000
exit0