[LLVMdev] rol/ror llvm instruction set
Mike Stump
mrs at apple.com
Tue Feb 3 14:35:53 PST 2009
On Feb 3, 2009, at 2:28 PM, Kasra wrote:
> I was looking around the LLVM instruction set and I failed to find
> ROL and ROR instructions. Is there any plans on adding these
> instructions to LLVM?
Not sure what you mean:
$ cat t.c
unsigned int rol(unsigned int i) {
return i << 1 | i >> 31;
}
mrs $ clang -S t.c -O2
mrs $ cat t.s
.text
.align 4,0x90
.globl _rol
_rol:
movl 4(%esp), %eax
roll %eax
ret
?
More information about the llvm-dev
mailing list