Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
gcc.target
/
or1k
/
ror-1.c
blob: df55a6adfefbfe84fc6605c3e0b2df1e39cba4f9 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-mror -O2" } */
unsigned
int
rotate
(
unsigned
int
a
,
int
b
)
{
return
(
a
>>
b
)
|
(
a
<<
(
32
-
b
)
);
}
/* { dg-final { scan-assembler "l.ror" } } */