search for: _rol

Displaying 3 results from an estimated 3 matches for "_rol".

Did you mean: _rob
2009 Feb 03
2
[LLVMdev] rol/ror llvm instruction set
Hi, 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? The reason that I am asking is for cryptographical algorithms which are becoming ever more important rotation is a major operation. Thus including such instruction could reduce 3 instructions {shl, shr, or} into {rol | ror} which could gain
2009 Feb 03
0
[LLVMdev] rol/ror llvm instruction set
...d 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 ?
2009 Feb 03
2
[LLVMdev] rol/ror llvm instruction set
...smart about recognizing the usual ways to express rotate with shift/ and/or, as below. > $ 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 > > ? > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev