1 # frv testcase for addxicc $GRi,$s10,$GRk,$ICCi_1
4 .include "testutils.inc"
11 set_icc 0x0e,0 ; Make sure carry bit is off
12 addxicc gr8,1,gr8,icc0
16 set_gr_limmed 0x7fff,0xffff,gr8
17 set_icc 0x04,0 ; Make sure carry bit is off
18 addxicc gr8,1,gr8,icc0
20 test_gr_limmed 0x8000,0x0000,gr8
22 set_gr_limmed 0xffff,0xff00,gr8
23 set_icc 0x08,0 ; Make sure carry bit is off
24 addxicc gr8,0x100,gr8,icc0
29 set_icc 0x0f,0 ; Make sure carry bit is on
30 addxicc gr8,1,gr8,icc0
34 set_gr_limmed 0x7fff,0xffff,gr8
35 set_icc 0x05,0 ; Make sure carry bit is on
36 addxicc gr8,0,gr8,icc0
38 test_gr_limmed 0x8000,0x0000,gr8
40 set_gr_limmed 0xffff,0xfeff,gr8
41 set_icc 0x0b,0 ; Make sure carry bit is on
42 addxicc gr8,0x100,gr8,icc0