[PATCH] D117757: [AArch64] Modeling NZCV read/write for MOPS instructions

Son Tuan Vu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 20 01:51:29 PST 2022


tyb0807 created this revision.
Herald added subscribers: hiraditya, kristof.beyls.
tyb0807 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

According to the specification, MOPS instructions define NZCV flags as
part of their semantics (see discussion in
https://reviews.llvm.org/D116157)

This is part 2/4 of a series of patches split from
https://reviews.llvm.org/D117405 to facilitate reviewing.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117757

Files:
  llvm/lib/Target/AArch64/AArch64InstrFormats.td


Index: llvm/lib/Target/AArch64/AArch64InstrFormats.td
===================================================================
--- llvm/lib/Target/AArch64/AArch64InstrFormats.td
+++ llvm/lib/Target/AArch64/AArch64InstrFormats.td
@@ -11455,6 +11455,7 @@
   let DecoderMethod = "DecodeCPYMemOpInstruction";
   let mayLoad = 1;
   let mayStore = 1;
+  let Defs = [NZCV];
 }
 
 class MOPSMemoryCopy<bits<2> opcode, bits<2> op1, bits<2> op2, string asm>
@@ -11487,6 +11488,7 @@
   let DecoderMethod = "DecodeSETMemOpInstruction";
   let mayLoad = 0;
   let mayStore = 1;
+  let Defs = [NZCV];
 }
 
 class MOPSMemorySet<bits<2> opcode, bit op1, bit op2, string asm>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117757.401553.patch
Type: text/x-patch
Size: 655 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220120/d269d2b1/attachment.bin>


More information about the llvm-commits mailing list