aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/prefix-di-constant.c
blob: aca7897cd9207050cfcf3c4374abc7623f476624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-require-effective-target powerpc_prefixed_addr } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-O2 -mdejagnu-cpu=power10" } */

/* Test that PLI (PADDI) is generated to load a large constant.  */
unsigned long long
large (void)
{
  return 0x12345678ULL;
}

/* { dg-final { scan-assembler {\mpli\M} } } */