aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCAsmInfo.cpp
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2015-04-28 01:37:11 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2015-04-28 01:37:11 +0000
commit190528703f8362c530c7867a44dac6cde938b5ac (patch)
tree98881d10b5b86f276329d3d39b0cc14d9a6ac4e0 /llvm/lib/MC/MCAsmInfo.cpp
parent09bff88fc4de030f3881674f23a865fa4da374e4 (diff)
downloadllvm-190528703f8362c530c7867a44dac6cde938b5ac.zip
llvm-190528703f8362c530c7867a44dac6cde938b5ac.tar.gz
llvm-190528703f8362c530c7867a44dac6cde938b5ac.tar.bz2
[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. llvm-svn: 235963
Diffstat (limited to 'llvm/lib/MC/MCAsmInfo.cpp')
-rw-r--r--llvm/lib/MC/MCAsmInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCAsmInfo.cpp b/llvm/lib/MC/MCAsmInfo.cpp
index 22de8bd..1a45b5a 100644
--- a/llvm/lib/MC/MCAsmInfo.cpp
+++ b/llvm/lib/MC/MCAsmInfo.cpp
@@ -90,7 +90,7 @@ MCAsmInfo::MCAsmInfo() {
DwarfRegNumForCFI = false;
NeedsDwarfSectionOffsetDirective = false;
UseParensForSymbolVariant = false;
- UseLogicalShr = false;
+ UseLogicalShr = true;
// FIXME: Clang's logic should be synced with the logic used to initialize
// this member and the two implementations should be merged.