Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.target/arm/thumb2-replicated-constant4.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Ensure replicated constants don't make things worse. */ /* { dg-options "-mthumb -O2" } */ /* { dg-require-effective-target arm_thumb2_ok } */ int foo1 (int a) { /* It might be tempting to use 0x01000100, but it wouldn't help. */ return a + 0x01f001e0; } /* { dg-final { scan-assembler "add.*#32505856" } } */ /* { dg-final { scan-assembler "add.*#480" } } */ int foo2 (int a) { return a + 0x0f100e10; } /* { dg-final { scan-assembler "add.*#252706816" } } */ /* { dg-final { scan-assembler "add.*#3600" } } */