1/* PR rtl-optimization/57518 */
2
3/* { dg-do compile } */
4/* { dg-options "-O2 -fdump-rtl-ira" } */
5
6char ip[10];
7int total;
8
9void 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" } } */
17/* { dg-final { cleanup-rtl-dump "ira" } } */
18