summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/20040622-1.c
blob: c699296d4642cc2e33c272192f32017b28523ed5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-options "-Os -mlong-double-128" } */
/* { dg-do compile { target { { rs6000-*-* } || { powerpc*-*-* && lp64 } } } } */
/* 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;
}