1 # frv testcase for addcc $GRi,$GRj,$GRk,$ICCi_1
4 .include "testutils.inc"
12 set_icc 0x0f,0 ; Set mask opposite of expected
13 addcc gr7,gr8,gr8,icc0
17 set_gr_limmed 0x7fff,0xffff,gr7
19 set_icc 0x05,0 ; Set mask opposite of expected
20 addcc gr7,gr8,gr8,icc0
22 test_gr_limmed 0x8000,0x0000,gr8
24 set_icc 0x08,0 ; Set mask opposite of expected
25 addcc gr8,gr8,gr8,icc0
29 set_gr_limmed 0x8000,0x0000,gr8
30 set_icc 0x08,0 ; Set mask opposite of expected
31 addcc gr8,gr8,gr8,icc0; test zero, carry and overflow bits