diff options
Diffstat (limited to 'sim/testsuite/frv/call.pcgs')
-rw-r--r-- | sim/testsuite/frv/call.pcgs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sim/testsuite/frv/call.pcgs b/sim/testsuite/frv/call.pcgs new file mode 100644 index 0000000..7f452c6 --- /dev/null +++ b/sim/testsuite/frv/call.pcgs @@ -0,0 +1,30 @@ +# frv parallel testcase for call $label24 +# mach: fr500 fr550 frv + + .include "testutils.inc" + + start + + .global call +call: + set_spr_immed 0,lr + call ok1 +bad1: + fail +ok1: + test_spr_addr bad1,lr + + set_spr_immed 0,lr + setlos.p 0,gr5 + call.p ok2 + bra bad3 +bad2: + setlos 5,gr5 + fail +bad3: + fail +ok2: + test_spr_addr bad2,lr + test_gr_immed 0,gr5 + + pass |