Ok for trunk? --
With the changes in r15-1579-g792f97b44ff, the constants have been updated. This patch aligns the constants in the test cases with the updated implementation. gcc/testsuite/ChangeLog: * gcc.target/arm/pure-code/no-literal-pool-m0.c: Update expected asm. Signed-off-by: Torbjörn SVENSSON <torbjorn.svens...@foss.st.com> --- .../arm/pure-code/no-literal-pool-m0.c | 29 ++++++++++++++----- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/pure-code/no-literal-pool-m0.c b/gcc/testsuite/gcc.target/arm/pure-code/no-literal-pool-m0.c index bd6f4af183b..effaf8b60b6 100644 --- a/gcc/testsuite/gcc.target/arm/pure-code/no-literal-pool-m0.c +++ b/gcc/testsuite/gcc.target/arm/pure-code/no-literal-pool-m0.c @@ -95,8 +95,13 @@ test_65536 () /* ** test_0x123456: ** ... +** ( ** movs r[0-3], #18 ** lsls r[0-3], r[0-3], #8 +** | +** movs r[0-3], #144 +** lsls r[0-3], r[0-3], #5 +** ) ** adds r[0-3], r[0-3], #52 ** lsls r[0-3], r[0-3], #8 ** adds r[0-3], r[0-3], #86 @@ -125,18 +130,16 @@ test_0x1123456 () return 0x1123456; } -/* With -Os, we generate: - movs r0, #16 - lsls r0, r0, r0 - With the other optimization levels, we generate: - movs r0, #16 - lsls r0, r0, #16 - hence the two alternatives. */ /* ** test_0x1000010: ** ... +** ( ** movs r[0-3], #16 -** lsls r[0-3], r[0-3], (#16|r[0-3]) +** lsls r[0-3], r[0-3], #16 +** | +** movs r[0-3], #128 +** lsls r[0-3], r[0-3], #13 +** ) ** adds r[0-3], r[0-3], #1 ** lsls r[0-3], r[0-3], #4 ** ... @@ -150,8 +153,13 @@ test_0x1000010 () /* ** test_0x1000011: ** ... +** ( ** movs r[0-3], #1 ** lsls r[0-3], r[0-3], #24 +** | +** movs r[0-3], #128 +** lsls r[0-3], r[0-3], #17 +** ) ** adds r[0-3], r[0-3], #17 ** ... */ @@ -164,8 +172,13 @@ test_0x1000011 () /* ** test_m8192: ** ... +** ( ** movs r[0-3], #1 ** lsls r[0-3], r[0-3], #13 +** | +** movs r[0-3], #128 +** lsls r[0-3], r[0-3], #6 +** ) ** rsbs r[0-3], r[0-3], #0 ** ... */ -- 2.25.1