summaryrefslogtreecommitdiff
path: root/util/romcc/tests/simple_test26.c
diff options
context:
space:
mode:
authorEric Biederman <ebiederm@xmission.com>2003-06-10 21:22:07 +0000
committerEric Biederman <ebiederm@xmission.com>2003-06-10 21:22:07 +0000
commit6aa31cc754744a83177ea922e71c6bdf02cad5df (patch)
tree00fc8a3cc81f367240eb5ac5a627841d1bb0a1a0 /util/romcc/tests/simple_test26.c
parentdc18ef018d080f050de9e28be913f544d3009cb2 (diff)
downloadcoreboot-6aa31cc754744a83177ea922e71c6bdf02cad5df.tar.xz
- Update romcc to version 0.27 and add more tests.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@865 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/romcc/tests/simple_test26.c')
-rw-r--r--util/romcc/tests/simple_test26.c109
1 files changed, 109 insertions, 0 deletions
diff --git a/util/romcc/tests/simple_test26.c b/util/romcc/tests/simple_test26.c
new file mode 100644
index 0000000000..b26bbb2ed7
--- /dev/null
+++ b/util/romcc/tests/simple_test26.c
@@ -0,0 +1,109 @@
+#define COUNT 23
+static void main(void)
+{
+ unsigned int a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z;
+ a = __builtin_inb(0xab);
+ b = __builtin_inb(0xab);
+ c = __builtin_inb(0xab);
+ d = __builtin_inb(0xab);
+ e = __builtin_inb(0xab);
+ f = __builtin_inb(0xab);
+ g = __builtin_inb(0xab);
+ h = __builtin_inb(0xab);
+ i = __builtin_inb(0xab);
+ j = __builtin_inb(0xab);
+ k = __builtin_inb(0xab);
+ l = __builtin_inb(0xab);
+ m = __builtin_inb(0xab);
+ n = __builtin_inb(0xab);
+ o = __builtin_inb(0xab);
+ p = __builtin_inb(0xab);
+ q = __builtin_inb(0xab);
+ r = __builtin_inb(0xab);
+ s = __builtin_inb(0xab);
+ t = __builtin_inb(0xab);
+ u = __builtin_inb(0xab);
+ v = __builtin_inb(0xab);
+ w = __builtin_inb(0xab);
+ x = __builtin_inb(0xab);
+ y = __builtin_inb(0xab);
+ z = __builtin_inb(0xab);
+#if COUNT >= 26
+ __builtin_outb(z, 0xab);
+#endif
+#if COUNT >= 25
+ __builtin_outb(y, 0xab);
+#endif
+#if COUNT >= 24
+ __builtin_outb(x, 0xab);
+#endif
+#if COUNT >= 23
+ __builtin_outb(w, 0xab);
+#endif
+#if COUNT >= 22
+ __builtin_outb(v, 0xab);
+#endif
+#if COUNT >= 21
+ __builtin_outb(u, 0xab);
+#endif
+#if COUNT >= 20
+ __builtin_outb(t, 0xab);
+#endif
+#if COUNT >= 19
+ __builtin_outb(s, 0xab);
+#endif
+#if COUNT >= 18
+ __builtin_outb(r, 0xab);
+#endif
+#if COUNT >= 17
+ __builtin_outb(q, 0xab);
+#endif
+#if COUNT >= 16
+ __builtin_outb(p, 0xab);
+#endif
+#if COUNT >= 15
+ __builtin_outb(o, 0xab);
+#endif
+#if COUNT >= 14
+ __builtin_outb(n, 0xab);
+#endif
+#if COUNT >= 13
+ __builtin_outb(m, 0xab);
+#endif
+#if COUNT >= 12
+ __builtin_outb(l, 0xab);
+#endif
+#if COUNT >= 11
+ __builtin_outb(k, 0xab);
+#endif
+#if COUNT >= 10
+ __builtin_outb(j, 0xab);
+#endif
+#if COUNT >= 9
+ __builtin_outb(i, 0xab);
+#endif
+#if COUNT >= 8
+ __builtin_outb(h, 0xab);
+#endif
+#if COUNT >= 7
+ __builtin_outb(g, 0xab);
+#endif
+#if COUNT >= 6
+ __builtin_outb(f, 0xab);
+#endif
+#if COUNT >= 5
+ __builtin_outb(e, 0xab);
+#endif
+#if COUNT >= 4
+ __builtin_outb(d, 0xab);
+#endif
+#if COUNT >= 3
+ __builtin_outb(c, 0xab);
+#endif
+#if COUNT >= 2
+ __builtin_outb(b, 0xab);
+#endif
+#if COUNT >= 1
+ __builtin_outb(a, 0xab);
+#endif
+}