[llvm] 16dc557 - [MSP430] Add missed mayStore flag for MSP430 PUSH instructions (#73377)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 24 23:51:07 PST 2023


Author: Yida Zhang
Date: 2023-11-24T23:51:02-08:00
New Revision: 16dc5572fa7a1eca35fa1a41f8c69425a38a0fa0

URL: https://github.com/llvm/llvm-project/commit/16dc5572fa7a1eca35fa1a41f8c69425a38a0fa0
DIFF: https://github.com/llvm/llvm-project/commit/16dc5572fa7a1eca35fa1a41f8c69425a38a0fa0.diff

LOG: [MSP430] Add missed mayStore flag for MSP430 PUSH instructions (#73377)

Added: 
    

Modified: 
    llvm/lib/Target/MSP430/MSP430InstrInfo.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/MSP430/MSP430InstrInfo.td b/llvm/lib/Target/MSP430/MSP430InstrInfo.td
index 0ff9763e4c93e18..714a5d4f5116554 100644
--- a/llvm/lib/Target/MSP430/MSP430InstrInfo.td
+++ b/llvm/lib/Target/MSP430/MSP430InstrInfo.td
@@ -305,12 +305,13 @@ def POP16r   : IForm16<0b0100, DstReg, SrcPostInc, 2,
   let rs = 1;
 }
 
-let mayStore = 1 in
+let mayStore = 1 in {
 def PUSH8r :  II8r<0b100, (outs), (ins GR8:$rs), "push.b\t$rs", []>;
 def PUSH16r : II16r<0b100, (outs), (ins GR16:$rs), "push\t$rs", []>;
 def PUSH16c : II16c<0b100, (outs), (ins cg16imm:$imm), "push\t$imm", []>;
 def PUSH16i : II16i<0b100, (outs), (ins i16imm:$imm), "push\t$imm", []>;
 }
+}
 
 //===----------------------------------------------------------------------===//
 // Move Instructions


        


More information about the llvm-commits mailing list