gcc/testsuite/gcc.target/arm/20131120.c
raw| 1 | /* Check that CONST_INT is not forced into REG before PLUS. */ |
| 2 | /* { dg-do compile { target { arm_arm_ok || arm_thumb2_ok} } } */ |
| 3 | /* { dg-options "-O2 -fdump-rtl-expand" } */ |
| 4 | |
| 5 | typedef int Arr2[50][50]; |
| 6 | |
| 7 | void |
| 8 | foo (Arr2 a2, int i) |
| 9 | { |
| 10 | a2[i+20][i] = 1; |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-rtl-dump-not "\\\(set \\\(reg:SI \[0-9\]*\\\)\[\n\r\]+\[ \t]*\\\(const_int 4000" "expand" } } */ |