[PATCH] D76767: [RISCV] Support negative constants in CompressInstEmitter

Simon Cook via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 26 08:39:29 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG1e303962232d: [RISCV] Support negative constants in CompressInstEmitter (authored by simoncook).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D76767

Files:
  llvm/utils/TableGen/RISCVCompressInstEmitter.cpp


Index: llvm/utils/TableGen/RISCVCompressInstEmitter.cpp
===================================================================
--- llvm/utils/TableGen/RISCVCompressInstEmitter.cpp
+++ llvm/utils/TableGen/RISCVCompressInstEmitter.cpp
@@ -85,7 +85,7 @@
     MapKind Kind;
     union {
       unsigned Operand; // Operand number mapped to.
-      uint64_t Imm;     // Integer immediate value.
+      int64_t Imm;      // Integer immediate value.
       Record *Reg;      // Physical register.
     } Data;
     int TiedOpIdx = -1; // Tied operand index within the instruction.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76767.252863.patch
Type: text/x-patch
Size: 571 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200326/27ec262f/attachment.bin>


More information about the llvm-commits mailing list