diff options
Diffstat (limited to 'sim/testsuite/frv/andcr.cgs')
-rw-r--r-- | sim/testsuite/frv/andcr.cgs | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/sim/testsuite/frv/andcr.cgs b/sim/testsuite/frv/andcr.cgs new file mode 100644 index 0000000..9fbbaff --- /dev/null +++ b/sim/testsuite/frv/andcr.cgs @@ -0,0 +1,59 @@ +# frv testcase for andcr $CCi,$CCj,$CCk +# mach: all + + .include "testutils.inc" + + start + + .global andcr +andcr: + set_spr_immed 0x1b1b,cccr + andcr cc7,cc7,cc3 + test_spr_immed 0x1b1b,cccr + + andcr cc7,cc6,cc3 + test_spr_immed 0x1b1b,cccr + + andcr cc7,cc5,cc3 + test_spr_immed 0x1b1b,cccr + + andcr cc7,cc4,cc3 + test_spr_immed 0x1b1b,cccr + + andcr cc6,cc7,cc3 + test_spr_immed 0x1b1b,cccr + + andcr cc6,cc6,cc3 + test_spr_immed 0x1b1b,cccr + + andcr cc6,cc5,cc3 + test_spr_immed 0x1b1b,cccr + + andcr cc6,cc4,cc3 + test_spr_immed 0x1b1b,cccr + + andcr cc5,cc7,cc3 + test_spr_immed 0x1b1b,cccr + + andcr cc5,cc6,cc3 + test_spr_immed 0x1b1b,cccr + + andcr cc5,cc5,cc3 + test_spr_immed 0x1b1b,cccr + + andcr cc5,cc4,cc3 + test_spr_immed 0x1b1b,cccr + + andcr cc4,cc7,cc3 + test_spr_immed 0x1b1b,cccr + + andcr cc4,cc6,cc3 + test_spr_immed 0x1b1b,cccr + + andcr cc4,cc5,cc3 + test_spr_immed 0x1b9b,cccr + + andcr cc4,cc4,cc3 + test_spr_immed 0x1bdb,cccr + + pass |