[PATCH] D134177: Add MC support of RISCV Zcd Extension

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 21 18:12:29 PDT 2022


craig.topper added a comment.

Need to add Zcd command lines to compress-rv32d.s



================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoC.td:881
 
 let Predicates = [HasStdExtC, HasStdExtD] in {
 def : CompressPat<(FLD FPR64:$rd, SP:$rs1, uimm9_lsb000:$imm),
----------------
CompressPats need their predicates updated too. They are used by the assembler so they are MC layer.


================
Comment at: llvm/test/MC/RISCV/rv32dc-valid.s:1
 # RUN: llvm-mc %s -triple=riscv32 -mattr=+c,+d -riscv-no-aliases -show-encoding \
 # RUN:     | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
----------------
Need to add Zcd command lines


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134177/new/

https://reviews.llvm.org/D134177



More information about the llvm-commits mailing list