summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/pr53447-5.c
blob: da91811710af1e3960a2fc808040cacab9415136 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do compile } */
/* { dg-options "-Os -mthumb" } */
/* { dg-require-effective-target arm_thumb2_ok } */

void foo(long long* p)
{
  p[1] |= 0x100000001;
  p[2] &= 0x100000001;
  p[3] ^= 0x100000001;
  p[4] += 0x100000001;
  p[5] -= 0x100000001;
  p[6] = ~p[6];
  p[7] <<= 5;
  p[8] >>= 5;
  p[9] -= p[10];
}

/* We accept neon instructions vldr.64 and vstr.64 as well.
   Note: DejaGnu counts patterns with alternatives twice,
   so actually there are only 10 loads and 9 stores.  */
/* { dg-final { scan-assembler-times "(ldrd|vldr\\.64)" 20 } } */
/* { dg-final { scan-assembler-times "(strd|vstr\\.64)" 18 } } */