Home | History | Annotate | Line # | Download | only in bfin
      1 //  ALU test program.
      2 //  Test instructions:
      3 //	dreg = -dreg (ns);
      4 //	dreg = -dreg (s);
      5 // dspalu32 negate instruction
      6 # mach: bfin
      7 
      8 #include "test.h"
      9 .include "testutils.inc"
     10 	start
     11 
     12 	R0 = 0;
     13 	ASTAT = R0;
     14 
     15 // CHECK MULTI ISSUE
     16 	r1=0x5;
     17 	loadsym i0, data0;
     18 	r2 = -r1 (ns) || r3=[i0++];
     19 	checkreg r2, 0xfffffffb;
     20 	r3 = astat
     21 	checkreg r3, (_AN);
     22 
     23 	r1.h = 0x8000;
     24 	r1.l = 0x0;
     25 	r2 = -r1 (s);
     26 	checkreg r2, 0x7fffffff;
     27 
     28 	r3 = astat;
     29 	_dbg astat;
     30 	checkreg r3, (_VS|_V|_V_COPY);
     31 
     32 	pass
     33 
     34 	.data
     35 data0:
     36 	.space (0x10);
     37