Adjust scan string for PIE
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / propalign-1.c
blob4997c994fa42a827a428ffb701be722c586bb12a
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-early-inlining -fdump-ipa-cp -fdump-tree-optimized" } */
4 #include <stdint.h>
6 extern int fail_the_test(void *);
7 extern int pass_the_test(void *);
8 extern int diversion (void *);
10 static int __attribute__((noinline))
11 foo (void *p)
13 uintptr_t a = (uintptr_t) p;
15 if (a % 4)
16 return fail_the_test (p);
17 else
18 return pass_the_test (p);
21 int
22 bar (void)
24 double buf[8] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
25 return foo (&buf);
29 /* { dg-final { scan-ipa-dump "Adjusting alignment of param" "cp" } } */
30 /* { dg-final { scan-tree-dump-not "fail_the_test" "optimized" } } */
31 /* { dg-final { cleanup-ipa-dump "cp" } } */
32 /* { dg-final { cleanup-tree-dump "optimized" } } */