mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
32 lines
330 B
ArmAsm
32 lines
330 B
ArmAsm
|
# mach: bfin
|
||
|
|
||
|
.include "testutils.inc"
|
||
|
start
|
||
|
|
||
|
a0=0;
|
||
|
R0.L = 1;
|
||
|
R0.H = 0;
|
||
|
R0 *= R0;
|
||
|
_DBG R0;
|
||
|
_DBG A0;
|
||
|
|
||
|
R7 = A0.w;
|
||
|
DBGA ( R7.H , 0 ); DBGA ( R7.L , 0 );
|
||
|
|
||
|
R0.L = -1;
|
||
|
R0.H = 32767;
|
||
|
|
||
|
_DBG R0;
|
||
|
|
||
|
a0=0;
|
||
|
R0 *= R0;
|
||
|
|
||
|
_DBG R0;
|
||
|
_DBG A0;
|
||
|
R7 = A0.w;
|
||
|
DBGA ( R7.H , 0 ); DBGA ( R7.L , 0 );
|
||
|
R7 = A0.x;
|
||
|
DBGA ( R7.L , 0x0 );
|
||
|
|
||
|
pass
|