X-Git-Url: http://git.joshuawise.com/firearm.git/blobdiff_plain/392d1bec43dcfb806fbdf77380c334f2cdc84778..ad18b18ac07db57954dc102383993fba0b6b2af4:/tests/testbench.c?ds=inline diff --git a/tests/testbench.c b/tests/testbench.c index ff9f96c..f8366b4 100644 --- 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 ");