From: dalej Date: Tue, 22 Jun 2004 19:11:43 +0000 (+0000) Subject: Testcases for my rs6000-specific change of this date. X-Git-Tag: upstream/4.9.2~70363 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6f612a134c079b92f1f610c36ff32c497180e96;p=platform%2Fupstream%2Flinaro-gcc.git Testcases for my rs6000-specific change of this date. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83511 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/gcc.dg/20040622-1.c b/gcc/testsuite/gcc.dg/20040622-1.c new file mode 100644 index 0000000..4562fe6 --- /dev/null +++ b/gcc/testsuite/gcc.dg/20040622-1.c @@ -0,0 +1,13 @@ +/* { dg-options "-Os -mlong-double-128" } */ +/* { dg-do compile { target rs6000-*-* powerpc-*-* } } */ +/* Make sure compiler doesn't generate [reg+reg] address mode + for long doubles. */ +union arg { + int intarg; + long double longdoublearg; +}; +long double d; +int va(int n, union arg **argtable) +{ + (*argtable)[n].longdoublearg = d; +} diff --git a/gcc/testsuite/gcc.dg/20040622-2.c b/gcc/testsuite/gcc.dg/20040622-2.c new file mode 100644 index 0000000..3297401 --- /dev/null +++ b/gcc/testsuite/gcc.dg/20040622-2.c @@ -0,0 +1,10 @@ +/* { dg-do link } */ +/* This validates codegen for [r1+32760] on Darwin. */ +void f(char x[32688], double *y, double *z) __attribute__((noinline)); +void f(char x[32688], double *y, double *z) {} +main() { + char x[32688]; + double y, z; + y = z = 3.0; + f(x, &y, &z); +}