summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr70467-4.c
blob: 91f9b6f43c93a253d947c863aa1b59bea5a058fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR rtl-optimization/70467 */
/* { dg-do compile { target int128 } } */
/* { dg-options "-O2" } */

__uint128_t
foo (__uint128_t x)
{
  return x + ((__uint128_t) 123456 << 64) + 0x1234567;
}

__uint128_t
bar (__uint128_t x)
{
  return x - ((__uint128_t) 123456 << 64) + 0x1234567;
}

/* Make sure the immediates are not loaded into registers first.  */
/* { dg-final { scan-assembler-not "mov\[lq\]\[ \t\]*.\[0-9-\]" } } */