aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa/general/branchzu.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/mppa/general/branchzu.c')
-rw-r--r--test/mppa/general/branchzu.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/test/mppa/general/branchzu.c b/test/mppa/general/branchzu.c
index 16bbc4c1..97adb605 100644
--- a/test/mppa/general/branchzu.c
+++ b/test/mppa/general/branchzu.c
@@ -1,13 +1,11 @@
-int main(void){
- int a=1;
- int b;
+#include "framework.h"
- if(!a){
- b = a+4;
- } else {
- b = a+2;
- }
-
- return b;
+BEGIN_TEST(int)
+{
+ b = !(a & 0x01);
+ if (!b)
+ c = 0;
+ else
+ c = 1;
}
-/* RETURN VALUE: 3 */
+END_TEST()