Sign in
gnu
/
gcc
/
fba228e259dd5112851527f2dbb62c5601100985
/
.
/
gcc
/
testsuite
/
gcc.target
/
aarch64
/
cmp-1.c
blob: 4c082b484ab81e3a9d4f4bdeae6d1d075f29bb98 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O2" } */
int
f
(
int
a
,
int
b
)
{
if
(
a
<
b
)
return
1
;
if
(
a
>
b
)
return
-
1
;
return
0
;
}
/* We should optimize away the second cmp. */
/* { dg-final { scan-assembler-times "cmp\tw" 1 } } */