summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/adc-1.c
blob: c19920ce500424d50107a2e479c9fd9649f72f7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O2" } */

volatile unsigned int w0, w1, w2, w3, w4;
volatile int result;

void test_si() {
  /* { dg-final { scan-assembler "adc\tw\[0-9\]*, w\[0-9\]*, w\[0-9\]*\n" } } */
  w0 = w1 + w2 + (w3 >= w4);
}

volatile unsigned long long int x0, x1, x2, x3, x4;

void test_di() {
  /* { dg-final { scan-assembler "adc\tx\[0-9\]*, x\[0-9\]*, x\[0-9\]*\n" } } */
  x0 = x1 + x2 + (x3 >= x4);
}