mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-18 02:14:31 +08:00
Testcases for my rs6000-specific change of this date.
From-SVN: r83511
This commit is contained in:
parent
6bb1041efd
commit
a91b003357
13
gcc/testsuite/gcc.dg/20040622-1.c
Normal file
13
gcc/testsuite/gcc.dg/20040622-1.c
Normal file
@ -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;
|
||||
}
|
10
gcc/testsuite/gcc.dg/20040622-2.c
Normal file
10
gcc/testsuite/gcc.dg/20040622-2.c
Normal file
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user