Created
July 14, 2017 20:31
-
-
Save pftbest/5cd5784fb6cb56dbc4f887c102a6c645 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/Target/MSP430/MSP430InstrInfo.td b/lib/Target/MSP430/MSP430InstrInfo.td | |
index cec43040f60..44869e78649 100644 | |
--- a/lib/Target/MSP430/MSP430InstrInfo.td | |
+++ b/lib/Target/MSP430/MSP430InstrInfo.td | |
@@ -1178,6 +1178,8 @@ def : Pat<(store (addc (load addr:$dst), GR16:$src), addr:$dst), | |
(ADD16mr addr:$dst, GR16:$src)>; | |
def : Pat<(store (addc (load addr:$dst), (i16 (load addr:$src))), addr:$dst), | |
(ADD16mm addr:$dst, addr:$src)>; | |
+def : Pat<(store (addc (load addr:$dst), (i16 imm:$src)), addr:$dst), | |
+ (ADD16mi addr:$dst, imm:$src)>; | |
def : Pat<(addc GR8:$src, GR8:$src2), | |
(ADD8rr GR8:$src, GR8:$src2)>; | |
@@ -1189,6 +1191,8 @@ def : Pat<(store (addc (load addr:$dst), GR8:$src), addr:$dst), | |
(ADD8mr addr:$dst, GR8:$src)>; | |
def : Pat<(store (addc (load addr:$dst), (i8 (load addr:$src))), addr:$dst), | |
(ADD8mm addr:$dst, addr:$src)>; | |
+def : Pat<(store (addc (load addr:$dst), (i8 imm:$src)), addr:$dst), | |
+ (ADD8mi addr:$dst, imm:$src)>; | |
def : Pat<(subc GR16:$src, GR16:$src2), | |
(SUB16rr GR16:$src, GR16:$src2)>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment