aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/msp430/msp430.md
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/msp430/msp430.md')
-rw-r--r--gcc/config/msp430/msp430.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/config/msp430/msp430.md b/gcc/config/msp430/msp430.md
index b6602fb..99299bd 100644
--- a/gcc/config/msp430/msp430.md
+++ b/gcc/config/msp430/msp430.md
@@ -553,6 +553,15 @@
SXT%X0\t%0"
)
+(define_insn "extendqipsi2"
+ [(set (match_operand:PSI 0 "msp430_general_dst_operand" "=r,m")
+ (sign_extend:PSI (match_operand:QI 1 "msp430_general_operand" "0,0")))]
+ ""
+ "@
+ SXT\t%0
+ SXTX.A\t%0"
+)
+
;; ------------------------
;; ZERO EXTEND INSTRUCTIONS
;; Byte-writes to registers clear bits 19:8