1 /* PR tree-optimization/80591 */
2 /* { dg-do compile } */
3 /* { dg-skip-if "" { *-*-* } "-flto" } */
4 /* { dg-additional-options "-fdump-tree-optimized" } */
5 
6 static inline __attribute__((always_inline)) int *
foo(void)7 foo (void)
8 {
9   __UINTPTR_TYPE__ sp;
10   asm ("" : "=r" (sp));
11   return (int *) sp;
12 }
13 
14 void
bar(void)15 bar (void)
16 {
17   foo ()[0] += 26;
18 }
19 
20 /* { dg-final { scan-tree-dump "\\+ 26;" "optimized" } } */
21