mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
new note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30285 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -45,6 +45,19 @@ http://gcc.gnu.org/ml/gcc-patches/2004-09/msg01136.html
|
|||||||
|
|
||||||
Another useful one would be ~0ULL >> X and ~0ULL << X.
|
Another useful one would be ~0ULL >> X and ~0ULL << X.
|
||||||
|
|
||||||
|
One better solution for 1LL << x is:
|
||||||
|
xorl %eax, %eax
|
||||||
|
xorl %edx, %edx
|
||||||
|
testb $32, %cl
|
||||||
|
sete %al
|
||||||
|
setne %dl
|
||||||
|
sall %cl, %eax
|
||||||
|
sall %cl, %edx
|
||||||
|
|
||||||
|
But that requires good 8-bit subreg support.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//===---------------------------------------------------------------------===//
|
//===---------------------------------------------------------------------===//
|
||||||
|
|
||||||
Compile this:
|
Compile this:
|
||||||
|
Reference in New Issue
Block a user