Hi,
This patch cleans up some warnings when building due to missing operand
modes.
"trampoline_init" in rl78.md still produces warnings but I'm not
entirely sure about how best to fix that insn and I didn't want to break
anything.
Regards,
Richard
2014-04-15 Richard Hulme <pepe...@yahoo.com>
* config/rl78/rl78.md (addsi3, addsi3_internal_virt,
addsi3_internal_real, subsi3, subsi3_internal_virt,
subsi3_internal_real): Add missing modes to operands.
* config/rl78/rl78-real.md (*movqi_real, *xorqi3_real): Likewise.
* config/rl78/rl78-virt.md (*movqi_virt, *xorqi3_vidr): Likewise.
---
gcc/config/rl78/rl78-real.md | 4 ++--
gcc/config/rl78/rl78-virt.md | 4 ++--
gcc/config/rl78/rl78.md | 12 ++++++------
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/gcc/config/rl78/rl78-real.md b/gcc/config/rl78/rl78-real.md
index 5d5c598..847a82d 100644
--- a/gcc/config/rl78/rl78-real.md
+++ b/gcc/config/rl78/rl78-real.md
@@ -45,7 +45,7 @@
(define_insn "*movqi_real"
[(set (match_operand:QI 0 "nonimmediate_operand"
"=g,RaxbcWab,RaxbcWab,a, bcx,R,
WabWd2WhlWh1WhbWbcWs1v, bcx")
- (match_operand 1 "general_operand" "0,K, M,
RInt8sJvWabWdeWd2WhlWh1WhbWbcWs1,Wab,aInt8J,a, R"))]
+ (match_operand:QI 1 "general_operand" "0,K, M,
RInt8sJvWabWdeWd2WhlWh1WhbWbcWs1,Wab,aInt8J,a, R"))]
"rl78_real_insns_ok ()"
"@
; mov\t%0, %1
@@ -194,7 +194,7 @@
(define_insn "*xorqi3_real"
[(set (match_operand:QI 0 "nonimmediate_operand" "=A,R,v")
(xor:QI (match_operand:QI 1 "general_operand" "%0,0,0")
- (match_operand 2 "general_operand"
"iRvWabWhbWh1Whl,A,i")))
+ (match_operand:QI 2 "general_operand"
"iRvWabWhbWh1Whl,A,i")))
]
"rl78_real_insns_ok ()"
"xor\t%0, %2"
diff --git a/gcc/config/rl78/rl78-virt.md b/gcc/config/rl78/rl78-virt.md
index 1db3751..189cf79 100644
--- a/gcc/config/rl78/rl78-virt.md
+++ b/gcc/config/rl78/rl78-virt.md
@@ -35,7 +35,7 @@
(define_insn "*movqi_virt"
[(set (match_operand:QI 0 "nonimmediate_operand" "=vY,v,Wfr")
- (match_operand 1 "general_operand" "vInt8JY,Wfr,vInt8J"))]
+ (match_operand:QI 1 "general_operand" "vInt8JY,Wfr,vInt8J"))]
"rl78_virt_insns_ok ()"
"v.mov %0, %1"
[(set_attr "valloc" "op1")]
@@ -126,7 +126,7 @@
(define_insn "*xor3_virt"
[(set (match_operand:QI 0 "rl78_nonfar_nonimm_operand"
"=v,vm,m")
(xor:QI (match_operand:QI 1 "rl78_nonfar_operand" "%0,vm,vm")
- (match_operand 2 "general_operand" "i,vm,vim")))
+ (match_operand:QI 2 "general_operand" "i,vm,vim")))
]
"rl78_virt_insns_ok ()"
"v.xor\t%0, %1, %2"
diff --git a/gcc/config/rl78/rl78.md b/gcc/config/rl78/rl78.md
index eb4c468..ede4eac 100644
--- a/gcc/config/rl78/rl78.md
+++ b/gcc/config/rl78/rl78.md
@@ -208,7 +208,7 @@
(define_expand "addsi3"
[(set (match_operand:SI 0 "nonimmediate_operand" "=&vm")
(plus:SI (match_operand:SI 1 "general_operand" "vim")
- (match_operand 2 "general_operand" "vim")))
+ (match_operand:SI 2 "general_operand" "vim")))
]
""
"emit_insn (gen_addsi3_internal_virt (operands[0], operands[1],
operands[2]));
@@ -218,7 +218,7 @@
(define_insn "addsi3_internal_virt"
[(set (match_operand:SI 0 "nonimmediate_operand" "=v,&vm, vm")
(plus:SI (match_operand:SI 1 "general_operand" "0, vim, vim")
- (match_operand 2 "general_operand" "vim,vim,vim")))
+ (match_operand:SI 2 "general_operand" "vim,vim,vim")))
(clobber (reg:HI AX_REG))
(clobber (reg:HI BC_REG))
]
@@ -230,7 +230,7 @@
(define_insn "addsi3_internal_real"
[(set (match_operand:SI 0 "nonimmediate_operand" "=v,&vU, vU")
(plus:SI (match_operand:SI 1 "general_operand" "+0, viU, viU")
- (match_operand 2 "general_operand"
"viWabWhlWh1,viWabWhlWh1,viWabWhlWh1")))
+ (match_operand:SI 2 "general_operand"
"viWabWhlWh1,viWabWhlWh1,viWabWhlWh1")))
(clobber (reg:HI AX_REG))
(clobber (reg:HI BC_REG))
]
@@ -245,7 +245,7 @@
(define_expand "subsi3"
[(set (match_operand:SI 0 "nonimmediate_operand" "=&vm")
(minus:SI (match_operand:SI 1 "general_operand" "vim")
- (match_operand 2 "general_operand" "vim")))
+ (match_operand:SI 2 "general_operand" "vim")))
]
""
"emit_insn (gen_subsi3_internal_virt (operands[0], operands[1],
operands[2]));
@@ -255,7 +255,7 @@
(define_insn "subsi3_internal_virt"
[(set (match_operand:SI 0 "nonimmediate_operand" "=v,&vm, vm")
(minus:SI (match_operand:SI 1 "general_operand" "0, vim, vim")
- (match_operand 2 "general_operand" "vim,vim,vim")))
+ (match_operand:SI 2 "general_operand" "vim,vim,vim")))
(clobber (reg:HI AX_REG))
(clobber (reg:HI BC_REG))
]
@@ -267,7 +267,7 @@
(define_insn "subsi3_internal_real"
[(set (match_operand:SI 0 "nonimmediate_operand" "=v,&vU, vU")
(minus:SI (match_operand:SI 1 "general_operand" "+0, viU, viU")
- (match_operand 2 "general_operand"
"viWabWhlWh1,viWabWhlWh1,viWabWhlWh1")))
+ (match_operand:SI 2 "general_operand"
"viWabWhlWh1,viWabWhlWh1,viWabWhlWh1")))
(clobber (reg:HI AX_REG))
(clobber (reg:HI BC_REG))
]
--
1.7.9.5