diff options
author | Jiufu Guo <guojiufu@linux.ibm.com> | 2022-08-11 20:01:28 +0800 |
---|---|---|
committer | Jiufu Guo <guojiufu@linux.ibm.com> | 2022-09-07 13:21:56 +0800 |
commit | 34ea461fdb471b4d9afa555da69dbc6d02713c54 (patch) | |
tree | 615bf5403787a7bc1a2704ac953b18c84d8d7a82 /gcc | |
parent | c0852b51b7a68ada822955eb7ef83d933cc33e47 (diff) | |
download | gcc-34ea461fdb471b4d9afa555da69dbc6d02713c54.zip gcc-34ea461fdb471b4d9afa555da69dbc6d02713c54.tar.gz gcc-34ea461fdb471b4d9afa555da69dbc6d02713c54.tar.bz2 |
rs6000: fix misleading new patterns of splitters
As a comment in
https://gcc.gnu.org/pipermail/gcc-patches/2022-August/599556.html
Those splitters call rs6000_emit_set_const directly, and the replacements
are never used. Using (pc) would be less misleading.
gcc/ChangeLog:
* config/rs6000/rs6000.md: (constant splitters): Use "(pc)" as the
replacements.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/rs6000/rs6000.md | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index e9e5cd1..85b9738 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -7773,11 +7773,7 @@ [(set (match_operand:SI 0 "gpc_reg_operand") (match_operand:SI 1 "const_int_operand"))] "num_insns_constant (operands[1], SImode) > 1" - [(set (match_dup 0) - (match_dup 2)) - (set (match_dup 0) - (ior:SI (match_dup 0) - (match_dup 3)))] + [(pc)] { if (rs6000_emit_set_const (operands[0], operands[1])) DONE; @@ -9708,8 +9704,7 @@ [(set (match_operand:DI 0 "int_reg_operand_not_pseudo") (match_operand:DI 1 "const_int_operand"))] "TARGET_POWERPC64 && num_insns_constant (operands[1], DImode) > 1" - [(set (match_dup 0) (match_dup 2)) - (set (match_dup 0) (plus:DI (match_dup 0) (match_dup 3)))] + [(pc)] { if (rs6000_emit_set_const (operands[0], operands[1])) DONE; @@ -9721,8 +9716,7 @@ [(set (match_operand:DI 0 "int_reg_operand_not_pseudo") (match_operand:DI 1 "const_scalar_int_operand"))] "TARGET_POWERPC64 && num_insns_constant (operands[1], DImode) > 1" - [(set (match_dup 0) (match_dup 2)) - (set (match_dup 0) (plus:DI (match_dup 0) (match_dup 3)))] + [(pc)] { if (rs6000_emit_set_const (operands[0], operands[1])) DONE; |