1 1.1 christos # frv testcase for cmp $GRi,$GRj,$ICCi_1 2 1.1 christos # mach: all 3 1.1 christos 4 1.1 christos .include "testutils.inc" 5 1.1 christos 6 1.1 christos start 7 1.1 christos 8 1.1 christos .global cmp 9 1.1 christos cmp: 10 1.1 christos set_gr_immed 1,gr7 11 1.1 christos set_gr_immed 2,gr8 12 1.1 christos set_icc 0x0f,0 ; Set mask opposite of expected 13 1.1 christos cmp gr8,gr7,icc0 14 1.1 christos test_icc 0 0 0 0 icc0 15 1.1 christos 16 1.1 christos set_gr_immed 1,gr7 17 1.1 christos set_gr_limmed 0x8000,0x0000,gr8 18 1.1 christos set_icc 0x0d,0 ; Set mask opposite of expected 19 1.1 christos cmp gr8,gr7,icc0 20 1.1 christos test_icc 0 0 1 0 icc0 21 1.1 christos 22 1.1 christos set_icc 0x0b,0 ; Set mask opposite of expected 23 1.1 christos cmp gr8,gr8,icc0 24 1.1 christos test_icc 0 1 0 0 icc0 25 1.1 christos 26 1.1 christos set_gr_immed 0,gr8 27 1.1 christos set_icc 0x06,0 ; Set mask opposite of expected 28 1.1 christos cmp gr8,gr7,icc0 29 1.1 christos test_icc 1 0 0 1 icc0 30 1.1 christos 31 1.1 christos pass 32