58 lines
669 B
ArmAsm
58 lines
669 B
ArmAsm
# mach: bfin
|
|
|
|
.include "testutils.inc"
|
|
start
|
|
|
|
|
|
R6.L = 32767;
|
|
R6.H = 2768;
|
|
R1.L = 2767;
|
|
R1.H = 2768;
|
|
|
|
r7=0;
|
|
astat = r7;
|
|
r3 = r6 -|- r1;
|
|
_DBG r3;
|
|
_DBG ASTAT;
|
|
r7=ASTAT;
|
|
_DBG R7;
|
|
DBGA (R7.H, 0x0);
|
|
DBGA (R7.L, 0x3005);
|
|
|
|
r7=0;
|
|
astat=r7;
|
|
r2 = r6 +|+ r1;
|
|
_DBG r2;
|
|
_DBG ASTAT;
|
|
r7=ASTAT;
|
|
_DBG R7;
|
|
DBGA (R7.H, 0x0300);
|
|
DBGA (R7.L, 0x000a);
|
|
|
|
r7=0;
|
|
astat=r7;
|
|
r2 = r6 +|+ r1, r3 = r6 -|- r1;
|
|
|
|
_DBG r2;
|
|
_DBG r3;
|
|
_DBG ASTAT;
|
|
|
|
R7 = ASTAT;
|
|
_DBG R7;
|
|
DBGA (R7.H, 0x0300);
|
|
DBGA (R7.L, 0x000b);
|
|
|
|
r7=0;
|
|
astat=r7;
|
|
r2 = r6 +|- r1, r3 = r6 -|+ r1;
|
|
|
|
_DBG r2;
|
|
_DBG r3;
|
|
_DBG ASTAT;
|
|
|
|
R7 = ASTAT;
|
|
_DBG R7;
|
|
DBGA (R7.H, 0x0300);
|
|
DBGA (R7.L, 0x000b);
|
|
|
|
pass
|