Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.target/arm/thumb-ifcvt.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Check that Thumb 16-bit shifts can be if-converted. */ /* { dg-do compile } */ /* { dg-require-effective-target arm_thumb2_ok } */ /* { dg-options "-O2 -mthumb -mno-restrict-it" } */ int foo (int a, int b) { if (a != b) { a = a << b; a = a >> 1; } return a + b; } /* { dg-final { scan-assembler "lslne" } } */ /* { dg-final { scan-assembler "asrne" } } */