[MC] Use LShr for constant evaluation of ">>" on ELF/arm64--darwin.
[oota-llvm.git] / lib / Target / AArch64 / MCTargetDesc / AArch64MCAsmInfo.cpp
index f048474fd4a9999da0d6a2968184c3a41b5ccfc7..c41220400410290a0e4f47056b3bb2785a27f319 100644 (file)
@@ -48,6 +48,10 @@ AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin() {
   UseDataRegionDirectives = true;
 
   ExceptionsType = ExceptionHandling::DwarfCFI;
+
+  // AArch64 Darwin doesn't have the baggage of X86/ARM, so it's fine to use
+  // LShr instead of AShr.
+  UseLogicalShr = true;
 }
 
 const MCExpr *AArch64MCAsmInfoDarwin::getExprForPersonalitySymbol(