aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr106680-4.c
blob: 7fee48d39f3a2260e654ed9872544766a679acf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Skip this on aix, otherwise it emits the error message like "64-bit
   computation with 32-bit addressing not yet supported" on aix.  */
/* { dg-skip-if "" { powerpc*-*-aix* } } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-mpowerpc64 -m32 -O2" } */

/* Verify option -m32 doesn't override option -mpowerpc64.
   If option -mpowerpc64 gets overridden, the assembly would
   end up with addc and adde.  */
/* { dg-final { scan-assembler-not {\maddc\M} } } */
/* { dg-final { scan-assembler-not {\madde\M} } } */
/* { dg-final { scan-assembler-times {\madd\M} 1 } } */

long long foo (long long a, long long b)
{
  return a+b;
}