diff options
author | David Schleef <ds@ginger.bigkitten.com> | 2008-05-09 18:43:17 -0700 |
---|---|---|
committer | David Schleef <ds@ginger.bigkitten.com> | 2008-05-09 18:43:17 -0700 |
commit | 7db7295a332f4a12307fff586ab374ac8d6a11dc (patch) | |
tree | 3900cea75aff0d27b23532d097c2d89de121538d | |
parent | 7fcab0a153e89678bf69c3dec6ac77b100bfbcae (diff) | |
download | liboil-7db7295a332f4a12307fff586ab374ac8d6a11dc.tar.gz |
use an underscore for architectures that require it
-rw-r--r-- | testsuite/stack_align.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/stack_align.c b/testsuite/stack_align.c index a6f9e78..b2c1a69 100644 --- a/testsuite/stack_align.c +++ b/testsuite/stack_align.c @@ -239,7 +239,11 @@ void realign(int align) #ifdef HAVE_I386 __asm__ __volatile__ ( " sub %%ebx, %%esp\n" +#ifdef HAVE_SYMBOL_UNDERSCORE + " call _check_class_with_alignment\n" +#else " call check_class_with_alignment\n" +#endif " add %%ebx, %%esp\n" :: "b" (align) ); @@ -247,7 +251,11 @@ void realign(int align) #ifdef HAVE_AMD64 __asm__ __volatile__ ( " sub %%rbx, %%rsp\n" +#ifdef HAVE_SYMBOL_UNDERSCORE + " call _check_class_with_alignment\n" +#else " call check_class_with_alignment\n" +#endif " add %%rbx, %%rsp\n" :: "b" (align) ); @@ -266,6 +274,7 @@ void check_class_with_alignment (void) test = oil_test_new(klass); oil_test_set_iterations(test, 1); + test->n = 100; impl = klass->reference_impl; oil_test_check_impl (test, impl); |