* g++.dg/other/i386-2.C (dg-options): Add -mavx512pf.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr56564-3.c
blobd45bffb06990a047ead6f02b5eee4c3c9c1cdf1a
1 /* PR target/56564 */
2 /* { dg-do compile { target { fpic && lp64 } } } */
3 /* { dg-skip-if "No symbol interposition for PIC" { *-*-mingw* *-*-cygwin* *-*-darwin* } } */
4 /* { dg-options "-O3 -fpic -fdump-tree-optimized" } */
6 __thread struct S { long a, b; } s = { 5, 6 };
7 __thread char t[16] = { 7 };
9 int
10 foo (void)
12 return ((__UINTPTR_TYPE__) &s) & 15;
15 /* For backwards compatibility we don't assume that t must
16 be aligned to 16 bytes, but align it anyway. */
18 int
19 bar (void)
21 return ((__UINTPTR_TYPE__) &t[0]) & 15;
24 /* { dg-final { scan-tree-dump-times "&s" 1 "optimized" } } */
25 /* { dg-final { scan-tree-dump-times "&t" 1 "optimized" } } */
26 /* { dg-final { scan-tree-dump-times "return 0" 0 "optimized" } } */
27 /* { dg-final { scan-assembler-not ".align\[ \t]*16\[^:]*\[\n\r]s:" { target { *-*-linux* } } } } */
28 /* { dg-final { scan-assembler ".align\[ \t]*16\[^:]*\[\n\r]t:" { target { *-*-linux* } } } } */
29 /* { dg-final { cleanup-tree-dump "optimized" } } */