aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bpf/ldxdw.c
blob: 0985ea3e6ac41ee2cf908f6e8d82796c55304520 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Verify that we do not generate a malformed ldxdw instruction
   with a constant instead of register + offset.  */

/* { dg-do compile } */
/* { dg-options "-O2" } */

/* { dg-final { scan-assembler-times "ldxdw\t%r.,\\\[%r.+0\\\]" 1 } } */
/* { dg-final { scan-assembler-not "ldxdw\t%r.,\[0-9\]+" } } */

unsigned long long test () {
  return *((unsigned long long *) 0x4000);
}