OSDN Git Service

Enable to track git://github.com/monaka/binutils.git
[pf3gnuchains/pf3gnuchains3x.git] / sid / component / testsuite / sidcomp.cgen-cpu.mep / beq.cgs
diff --git a/sid/component/testsuite/sidcomp.cgen-cpu.mep/beq.cgs b/sid/component/testsuite/sidcomp.cgen-cpu.mep/beq.cgs
new file mode 100644 (file)
index 0000000..e8679f7
--- /dev/null
@@ -0,0 +1,21 @@
+# mep testcase for beq $rn,$rm,$disp17a2 -*- Asm -*-
+# mach: all
+
+       .include "testutils.inc"
+       start
+       .global beq
+beq:
+       mov $1, 5
+       mov $2, 3
+       beq $1, $2, wrong
+       mov $1, -1
+       mov $2, -1
+       beq $1, $2, okay
+       fail
+
+.org 0x4000
+wrong:
+       fail
+
+okay:
+       pass