diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr57518.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr57518.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr57518.c b/gcc/testsuite/gcc.dg/pr57518.c new file mode 100644 index 00000000000..4c84a856b5d --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr57518.c @@ -0,0 +1,15 @@ +/* PR rtl-optimization/57130 */ + +/* { dg-do compile } */ +/* { dg-options "-O2 -fdump-rtl-ira" } */ +/* { dg-final { scan-rtl-dump-not "REG_EQUIV.*mem.*\"ip\"" "ira" } } */ + +char ip[10]; +int total; + +void foo() { + int t; + + t = ip[2]; + total = t & 0x3; +} |