mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 17:25:21 +00:00
[MC] Use LShr for constant evaluation of ">>" on ELF/arm64--darwin.
This matches other assemblers and is less unexpected (e.g. PR23227). On ELF, I tried binutils gas v2.24 and nasm 2.10.09, and they both agree on LShr. On COFF, I couldn't get my hands on an assembler yet, so don't change the behavior. For now, don't change it on non-AArch64 Darwin either, as the other assembler is gas v1.38, which does an AShr. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235963 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -93,4 +93,9 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() {
|
||||
|
||||
UseIntegratedAssembler = true;
|
||||
SetDirectiveSuppressesReloc = true;
|
||||
|
||||
// FIXME: For now keep the previous behavior, AShr, matching the previous
|
||||
// behavior of as(1) (both -q and -Q: resp. LLVM and gas v1.38).
|
||||
// If/when this changes, the AArch64 Darwin special case can go away.
|
||||
UseLogicalShr = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user