modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/compile/20020715-1.c (about) 1 /* PR optimization/7153 */ 2 /* Verify that GCC doesn't promote a register when its 3 lifetime is not limited to one basic block. */ 4 5 void f(char); 6 void g(void); 7 8 void scale(void) 9 { 10 int width; 11 char bytes; 12 char *src; 13 14 if (width) 15 { 16 bytes = *src; 17 g(); 18 width *= bytes; 19 } 20 21 f(bytes); 22 }