gcc/testsuite/gcc.dg/pr57518.c
raw| 1 | /* PR rtl-optimization/57518 */ |
| 2 | |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-options "-O2 -fdump-rtl-ira" } */ |
| 5 | |
| 6 | char ip[10]; |
| 7 | int total; |
| 8 | |
| 9 | void foo() { |
| 10 | int t; |
| 11 | |
| 12 | t = ip[2]; |
| 13 | total = t & 0x3; |
| 14 | } |
| 15 | |
| 16 | /* { dg-final { scan-rtl-dump-not "REG_EQUIV\[^\n\]*mem\[^\n\]*\"ip\".*subreg" "ira" } } */ |