From: Bernhard Urban Date: Wed, 30 Mar 2011 01:58:10 +0000 (+0000) Subject: arm: codeb cases added X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=testub10.git;a=commitdiff_plain;h=refs%2Fheads%2Farm arm: codeb cases added --- diff --git a/gesamt_arm/codeb_abgabe_ba.0 b/gesamt_arm/codeb_abgabe_ba.0 new file mode 100644 index 0000000..de7d90c --- /dev/null +++ b/gesamt_arm/codeb_abgabe_ba.0 @@ -0,0 +1,4 @@ +method m(x) + x := this-x; + return x*2; +end; diff --git a/gesamt_arm/codeb_abgabe_ba.call b/gesamt_arm/codeb_abgabe_ba.call new file mode 100644 index 0000000..e3f3c99 --- /dev/null +++ b/gesamt_arm/codeb_abgabe_ba.call @@ -0,0 +1,5 @@ +extern long m(long,long); +int r1 = m(7,4); +int r2 = m(18,22); +printf("r1: %d\nr2: %d\n", r1, r2); +RET(r1==6 && r2==-8); diff --git a/gesamt_arm/codeb_abgabe_ba.instr b/gesamt_arm/codeb_abgabe_ba.instr new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/gesamt_arm/codeb_abgabe_ba.instr @@ -0,0 +1 @@ +8 diff --git a/gesamt_arm/codeb_abgabe_bb.0 b/gesamt_arm/codeb_abgabe_bb.0 new file mode 100644 index 0000000..27ee1de --- /dev/null +++ b/gesamt_arm/codeb_abgabe_bb.0 @@ -0,0 +1,4 @@ +method m() + var that:=3*this; + return this or that; +end; diff --git a/gesamt_arm/codeb_abgabe_bb.call b/gesamt_arm/codeb_abgabe_bb.call new file mode 100644 index 0000000..24d9f34 --- /dev/null +++ b/gesamt_arm/codeb_abgabe_bb.call @@ -0,0 +1,2 @@ +extern long m(long); +RET(m(7)==23 && m(13)==47); diff --git a/gesamt_arm/codeb_abgabe_bb.instr b/gesamt_arm/codeb_abgabe_bb.instr new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/gesamt_arm/codeb_abgabe_bb.instr @@ -0,0 +1 @@ +8 diff --git a/gesamt_arm/codeb_abgabe_bc.0 b/gesamt_arm/codeb_abgabe_bc.0 new file mode 100644 index 0000000..6b69b2e --- /dev/null +++ b/gesamt_arm/codeb_abgabe_bc.0 @@ -0,0 +1,7 @@ +method mymax(that) + if this