☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gcc.target
/
aarch64
/
cmp_shifted_reg_1.c
☽
☼
gcc/testsuite/gcc.target/aarch64/cmp_shifted_reg_1.c
code
plain
raw
1
/* { dg-do compile } */
2
/* { dg-options "-O2 " } */
3
4
int f3 (int x, int y)
5
{
6
int res = x << 3;
7
return res != 0;
8
}
9
10
/* We should combine the shift and compare */
11
/* { dg-final { scan-assembler "cmp\.*\twzr, w\[0-9\]+, lsl 3" } } */