1# mach: bfin 2 3#include "test.h" 4.include "testutils.inc" 5 start 6 7 R1 = 0; 8 ASTAT = R1; 9 10 R1.H = -32768; 11 R2 = 0; 12 R2.H = -32768; 13 R3 = R1 +|+ R2; 14 _DBG ASTAT; 15 R7 = ASTAT; 16 CHECKREG R7, (_VS|_V|_V_COPY|_AC1|_AZ); 17 18 R0.L = 32767; 19 R0.H = 32767; 20 R0 = R0 +|- R0; 21 _DBG ASTAT; 22 R7 = ASTAT; 23 CHECKREG R7, (_VS|_V|_V_COPY|_AC0|_AC0_COPY|_AN|_AZ) 24 25 R0 = 0; 26 ASTAT = R0; 27 _DBG ASTAT; 28 R7 = ASTAT; 29 CHECKREG R7, (_UNSET) 30 31 R1.L = -1; 32 R1.H = 0x7fff; 33 R0 = ABS R1; 34 _DBG R0; 35 _DBG ASTAT; 36 R7 = ASTAT; 37 CHECKREG R7, (_UNSET) 38 39 R1=0; 40 R1.H = 0x8000; 41 _DBG R1; 42 R0 = ABS R1; 43 _DBG R0; 44 _DBG ASTAT; 45 R7 = ASTAT; 46 CHECKREG R7, (_VS|_V|_V_COPY) 47 48 R0 = 0; 49 ASTAT = R0; 50 51 R1.L = 32767; 52 R1.H = 32767; 53 R0 = R1 +|+ R1 (CO); 54 _DBG R0; 55 _DBG ASTAT; 56 R7 = ASTAT; 57 CHECKREG R7, (_VS|_V|_V_COPY|_AN) 58 59 R0.L = -1; 60 R0.H = 32766; 61 R1.L = -1; 62 R1.H = -32768; 63 R0 = PACK( R0.H , R1.L ); 64 _DBG R0; 65 R7 = ASTAT; 66 CHECKREG R7, (_VS|_V|_V_COPY|_AN) 67 68 pass 69