X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=sid%2Fcomponent%2Ftestsuite%2Fsidcomp.cgen-cpu.mep%2Fadd.cgs;fp=sid%2Fcomponent%2Ftestsuite%2Fsidcomp.cgen-cpu.mep%2Fadd.cgs;h=db90833d8d3845fdbe82e7575ce38a531fda6404;hb=ae4bf010374a9320497af260fa90af3fe8e2c5a5;hp=0000000000000000000000000000000000000000;hpb=3cc729069938336ea54d399c4bbbe7d197295f9a;p=pf3gnuchains%2Fpf3gnuchains3x.git diff --git a/sid/component/testsuite/sidcomp.cgen-cpu.mep/add.cgs b/sid/component/testsuite/sidcomp.cgen-cpu.mep/add.cgs new file mode 100644 index 0000000000..db90833d8d --- /dev/null +++ b/sid/component/testsuite/sidcomp.cgen-cpu.mep/add.cgs @@ -0,0 +1,26 @@ +# mep testcase for add $rn,$imm6 -*- Asm -*- +# mach: all + + .include "testutils.inc" + start + .global add +add: + # 5 + 1 = 6. + mov $0, 5 + add $0, 1 + assert $0, 6 + + # 5 + -1 = 4. + mov $0, 5 + add $0, -1 + assert $0, 4 + + # 3 + 0 = 3. + mov $0, 3 + add $0, 0 + assert $0, 3 + +okay: + pass +wrong: + fail