Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.target/arm/thumb2-replicated-constant4.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +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" } } */