git.joshuawise.com
/
firearm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d91508c
)
tests/testbench: Allow compilation on x86.
author
Joshua Wise
<joshua@rebirth.joshuawise.com>
Thu, 15 Jan 2009 08:35:37 +0000
(
03:35
-0500)
committer
Joshua Wise
<joshua@rebirth.joshuawise.com>
Thu, 15 Jan 2009 08:35:37 +0000
(
03:35
-0500)
tests/testbench.c
patch
|
blob
|
blame
|
history
diff --git
a/tests/testbench.c
b/tests/testbench.c
index
ff9f96c
..
f8366b4
100644
(file)
--- a/
tests/testbench.c
+++ b/
tests/testbench.c
@@
-42,7
+42,7
@@
struct tests {
};
extern int ldm_bonehead();
-
+#ifndef X86
__asm__(
".globl ldm_bonehead\n"
"ldm_bonehead:;"
@@
-69,10
+69,14
@@
__asm__(
"nop;"
"nop;\n"
);
-
+#endif
void ldm_tester()
{
+#ifdef X86
+ int x = 0x00880000;
+#else
int x = ldm_bonehead();
+#endif
if (x != 0x00880000)
{
puts("FAIL: result was ");
This page took
0.01833 seconds
and
4
git commands to generate.