Mercurial > hg > CbC > CbC_gcc
annotate 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 |
rev | line source |
---|---|
111 | 1 /* Check that Thumb 16-bit shifts can be if-converted. */ |
2 /* { dg-do compile } */ | |
3 /* { dg-require-effective-target arm_thumb2_ok } */ | |
4 /* { dg-options "-O2 -mthumb -mno-restrict-it" } */ | |
5 | |
6 int | |
7 foo (int a, int b) | |
8 { | |
9 if (a != b) | |
10 { | |
11 a = a << b; | |
12 a = a >> 1; | |
13 } | |
14 | |
15 return a + b; | |
16 } | |
17 | |
18 /* { dg-final { scan-assembler "lslne" } } */ | |
19 /* { dg-final { scan-assembler "asrne" } } */ |