[all-commits] [llvm/llvm-project] 82d2df: [LLVM][AArch64]Add assembly/disassembly for compar...

CarolineConcatto via All-commits all-commits at lists.llvm.org
Wed Oct 23 08:17:02 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 82d2df2b4922a158b01ab00f3cac5f552bf0172d
      https://github.com/llvm/llvm-project/commit/82d2df2b4922a158b01ab00f3cac5f552bf0172d
  Author: CarolineConcatto <caroline.concatto at arm.com>
  Date:   2024-10-23 (Wed, 23 Oct 2024)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64InstrFormats.td
    M llvm/lib/Target/AArch64/AArch64InstrInfo.td
    M llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
    M llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64FixupKinds.h
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp
    A llvm/test/MC/AArch64/CMPBR/cmpbr-diagnostics.s
    A llvm/test/MC/AArch64/CMPBR/cmpbr.s
    A llvm/test/MC/AArch64/CMPBR/cmpbr_aliases-diagnostics.s
    A llvm/test/MC/AArch64/CMPBR/cmpbr_aliases.s
    A llvm/test/MC/AArch64/CMPBR/cmpbr_lbl.s
    M llvm/test/MC/AArch64/directive-arch-negative.s
    M llvm/test/MC/AArch64/directive-arch.s
    M llvm/test/MC/AArch64/directive-arch_extension-negative.s

  Log Message:
  -----------
  [LLVM][AArch64]Add assembly/disassembly for compare-and-branch  instr… (#113461)

…uctions (#112726)

This patch adds the assembly/disassembly for the following instructions:

CBB<cc>, CBH<cc>,
CB<cc>(immediate), CB<cc>(register)
CBBLE, CBBLO, CBBLS, CBBLT
CBHLE, CBHLO, CBHLS, CBHLT
CBGE, CBHS, CBLE, CBLS (immediate)
CBLE, CBLO, CBLS, CBLT(register)

According to [1]

[1]https://developer.arm.com/documentation/ddi0602

Co-authored-by: Momchil Velikov momchil.velikov at arm.com
Co-authored-by: Spencer Abson spencer.abson at arm.com

This patch was reverted(git commit 83c6e2f8f4d3) and is being submitted
again with the fix for buildbot failure in:
https://lab.llvm.org/buildbot/#/builders/25/builds/3493
The fix was to replaced a shift left of a possibly negative value with a
multiplication in DecodePCRelLabel9.
Because  int64_t ImmVal  is signed it needed to  replace: 
 (ImmVal << 2)
with :
(ImmVal * 4)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list