mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +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:
parent
79980b07da
commit
95af34e33f
@ -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.
|
||||
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user