Actually check in the fix
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr64905.c
blobbc87d8549286d283d89a449f87c77171b431b9c2
1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-Os -ffixed-rax -ffixed-rbx -ffixed-rcx -ffixed-rdx -ffixed-rdi -ffixed-rsi -ffixed-r8 -ffixed-r9 -ffixed-r10 -ffixed-r11 -ffixed-r12 -ffixed-r13 -ffixed-r14 -ffixed-r15" } */
3 /* { dg-final { scan-assembler-not "movl\[ \t\]0\\(%.*\\), %.*" } } */
5 typedef unsigned short uint16_t;
6 uint16_t a_global;
8 void __attribute__ ((noinline))
9 function (uint16_t **a_p)
11 // unaligned access by address in %rbp: mov 0x0(%rbp),%ebp
12 a_global = **a_p;
15 int main(int argc, char **argv)
17 uint16_t array [4] = { 1, 2, 3, 4 };
18 uint16_t *array_elem_p = &array [3];
20 function (&array_elem_p);
21 return 0;