Message ID | 5334991A.4090609@yahoo.com |
---|---|
State | New |
Headers | show |
This is OK after 4.9 branches (i.e. stage1). I suspect we could add AX to the first alternative, although I don't know if it will get used. We could add HL to the second alternative to complete the replacement of the 'r' constraint.
diff --git a/gcc/config/rl78/rl78-real.md b/gcc/config/rl78/rl78-real.md index 27ff60f..3503a02 100644 --- a/gcc/config/rl78/rl78-real.md +++ b/gcc/config/rl78/rl78-real.md @@ -77,12 +77,13 @@ ;;---------- Conversions ------------------------ (define_insn "*zero_extendqihi2_real" - [(set (match_operand:HI 0 "nonimmediate_operand" "=rv,A") - (zero_extend:HI (match_operand:QI 1 "general_operand" "0,a")))] + [(set (match_operand:HI 0 "nonimmediate_operand" "=Bv,DT,A") + (zero_extend:HI (match_operand:QI 1 "general_operand" "0,0,a")))] "rl78_real_insns_ok ()" "@ + clrb\t%Q0 mov\t%Q0, #0 - mov\tx, a \;mov\ta, #0" + mov\tx, a \;clrb\ta" )