more checks
[libfirm] / ir / be / test / mul.c
index 0dc8744..55a4398 100644 (file)
@@ -1,16 +1,22 @@
+#include <stdio.h>
+
 /*
  * Multiplication test for mul register constraints
  */
-
-int a, b, c, d, e, f, g, h, i, j, k;
+int a = -2, b = 3, c = -4, d = 6, e = -6;
+unsigned ua = 2, ub = 3;
 
 int main()
 {
   int A, B, C;
+  unsigned D;
 
   A = b * c;
   B = A * d;
   C = A * e;
+  D = ua * ub;
+
+  printf("Result: %d %u\n", A+B+C, D);
 
-  return A+B+C;
+  return 0;
 }