coreboot-libre-fam15h-rdimm/util/romcc/tests/simple_test26.c

110 lines
2.0 KiB
C
Raw Normal View History

2024-03-04 11:14:53 +01:00
#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
}