[llvm-branch-commits] [llvm] 3bfc9bb - [VE][NFC] Update comments to match the generated instructions

Kazushi Marukawa via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jan 6 22:18:49 PST 2021


Author: Kazushi (Jam) Marukawa
Date: 2021-01-07T15:13:24+09:00
New Revision: 3bfc9bb8ef223dd28c885fcb1a5fa553c8be3645

URL: https://github.com/llvm/llvm-project/commit/3bfc9bb8ef223dd28c885fcb1a5fa553c8be3645
DIFF: https://github.com/llvm/llvm-project/commit/3bfc9bb8ef223dd28c885fcb1a5fa553c8be3645.diff

LOG: [VE][NFC] Update comments to match the generated instructions

Added: 
    

Modified: 
    llvm/lib/Target/VE/VEAsmPrinter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/VE/VEAsmPrinter.cpp b/llvm/lib/Target/VE/VEAsmPrinter.cpp
index 0ebf0a87de74..08a75b6b8c55 100644
--- a/llvm/lib/Target/VE/VEAsmPrinter.cpp
+++ b/llvm/lib/Target/VE/VEAsmPrinter.cpp
@@ -206,7 +206,7 @@ void VEAsmPrinter::lowerGETGOTAndEmitMCInsts(const MachineInstr *MI,
   // lea %got, _GLOBAL_OFFSET_TABLE_ at PC_LO(-24)
   // and %got, %got, (32)0
   // sic %plt
-  // lea.sl %got, _GLOBAL_OFFSET_TABLE_ at PC_HI(%got, %plt)
+  // lea.sl %got, _GLOBAL_OFFSET_TABLE_ at PC_HI(%plt, %got)
   MCOperand cim24 = MCOperand::createImm(-24);
   MCOperand loImm =
       createGOTRelExprOp(VEMCExpr::VK_VE_PC_LO32, GOTLabel, OutContext);
@@ -251,10 +251,10 @@ void VEAsmPrinter::lowerGETFunPLTAndEmitMCInsts(const MachineInstr *MI,
 
   MCOperand RegPLT = MCOperand::createReg(VE::SX16); // PLT
 
-  // lea %dst, %plt_lo(func)(-24)
+  // lea %dst, func at plt_lo(-24)
   // and %dst, %dst, (32)0
   // sic %plt                            ; FIXME: is it safe to use %plt here?
-  // lea.sl %dst, %plt_hi(func)(%dst, %plt)
+  // lea.sl %dst, func at plt_hi(%plt, %dst)
   MCOperand cim24 = MCOperand::createImm(-24);
   MCOperand loImm =
       createGOTRelExprOp(VEMCExpr::VK_VE_PLT_LO32, AddrSym, OutContext);
@@ -298,7 +298,7 @@ void VEAsmPrinter::lowerGETTLSAddrAndEmitMCInsts(const MachineInstr *MI,
   // lea %s0, sym at tls_gd_lo(-24)
   // and %s0, %s0, (32)0
   // sic %lr
-  // lea.sl %s0, sym at tls_gd_hi(%s0, %lr)
+  // lea.sl %s0, sym at tls_gd_hi(%lr, %s0)
   // lea %s12, __tls_get_addr at plt_lo(8)
   // and %s12, %s12, (32)0
   // lea.sl %s12, __tls_get_addr at plt_hi(%s12, %lr)


        


More information about the llvm-branch-commits mailing list