summaryrefslogtreecommitdiff
path: root/tests/tcctest.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcctest.c')
-rw-r--r--tests/tcctest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tcctest.c b/tests/tcctest.c
index 57670be..3e0ae8b 100644
--- a/tests/tcctest.c
+++ b/tests/tcctest.c
@@ -3184,6 +3184,7 @@ void override_func2 (void)
printf ("asmc: override2\n");
}
+#ifndef __i386__
/* This checks a construct used by the linux kernel to encode
references to strings by PC relative references. */
extern int bug_table[] __attribute__((section("__bug_table")));
@@ -3205,6 +3206,7 @@ char * get_asm_string (void)
char * str = ((char*)bug_table) + bug_table[1];
return str;
}
+#endif
/* This checks another constructs with local labels. */
extern unsigned char alld_stuff[];
@@ -3460,7 +3462,9 @@ void asm_test(void)
the global one, not the local decl from this function. */
asm volatile(".weak override_func3\n.set override_func3, base_func");
override_func3();
+#ifndef __i386__
printf("asmstr: %s\n", get_asm_string());
+#endif
asm_local_label_diff();
asm_local_statics();
#endif