1 /* Verify that we do not generate a malformed ldxdw instruction
2 with a constant instead of register + offset. */
3
4 /* { dg-do compile } */
5 /* { dg-options "-O2" } */
6
7 /* { dg-final { scan-assembler-times "ldxdw\t%r.,\\\[%r.+0\\\]" 1 } } */
8 /* { dg-final { scan-assembler-not "ldxdw\t%r.,\[0-9\]+" } } */
9
10 unsigned long long test () {
11 return *((unsigned long long *) 0x4000);
12 }