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

25 lines
386 B
ArmAsm

// Test byte-align instructions
# mach: bfin
.include "testutils.inc"
start
R0.L = 0xabcd;
R0.H = 0x1234;
R1.L = 0x4567;
R1.H = 0xdead;
R2 = ALIGN8 ( R1 , R0 );
DBGA ( R2.L , 0x34ab );
DBGA ( R2.H , 0x6712 );
R2 = ALIGN16 ( R1 , R0 );
DBGA ( R2.L , 0x1234 );
DBGA ( R2.H , 0x4567 );
R2 = ALIGN24 ( R1 , R0 );
DBGA ( R2.L , 0x6712 );
DBGA ( R2.H , 0xad45 );
pass