diff options
author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2019-12-30 22:14:43 +0100 |
---|---|---|
committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2020-01-02 13:21:04 -0800 |
commit | 982695c0693fe576fb9daa34ecbf81808efdaa2f (patch) | |
tree | 94e94bbb623a8e7ab7cc959c4a3eb93ca4a0a6c7 /llvm/lib/Target | |
parent | 1fcc9b6ff8558efed0c1241c72f69d079baeecf8 (diff) | |
download | bcm5719-llvm-982695c0693fe576fb9daa34ecbf81808efdaa2f.tar.gz bcm5719-llvm-982695c0693fe576fb9daa34ecbf81808efdaa2f.zip |
[SystemZ] Create brcl 0,0 instead of brcl 0,3 in EmitNop for 6 bytes.
For consistency with GCC, the target label is moved to the brcl itself
instead of the next instruction.
Review: Ulrich Weigand
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp b/llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp index 45a8a878305..f3c038446ed 100644 --- a/llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp +++ b/llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp @@ -545,9 +545,9 @@ static unsigned EmitNop(MCContext &OutContext, MCStreamer &OutStreamer, else { MCSymbol *DotSym = OutContext.createTempSymbol(); const MCSymbolRefExpr *Dot = MCSymbolRefExpr::create(DotSym, OutContext); + OutStreamer.EmitLabel(DotSym); OutStreamer.EmitInstruction(MCInstBuilder(SystemZ::BRCLAsm) .addImm(0).addExpr(Dot), STI); - OutStreamer.EmitLabel(DotSym); return 6; } } |