]> Joshua Wise's Git repositories - firearm.git/commitdiff
tests/testbench: Allow compilation on x86.
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Thu, 15 Jan 2009 08:35:37 +0000 (03:35 -0500)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Thu, 15 Jan 2009 08:35:37 +0000 (03:35 -0500)
tests/testbench.c

index ff9f96cb05ee84c2595560bf0b3e9fe3e42794e1..f8366b418301790034af872d82df7b9b8defe459 100644 (file)
@@ -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.023989 seconds and 4 git commands to generate.