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

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

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

/* Make sure there are no unnecessary additions with carry.  */
/* { dg-final { scan-assembler-not "adcq\[^\n\r\]*%" } } */
/* { dg-final { scan-assembler-not "sbbq\[^\n\r\]*%" } } */