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 ff9f96c..f8366b4 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.020026 seconds and 4 git commands to generate.