diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2017-05-31 22:58:59 +0200 |
---|---|---|
committer | Segher Boessenkool <segher@gcc.gnu.org> | 2017-05-31 22:58:59 +0200 |
commit | ba0ece3922d73beaac7cde3fb7ec9922c7535a3e (patch) | |
tree | 905e94f59fe6b13587b687d58b87854465bf9ffb /gcc/config/rs6000/vector.md | |
parent | 49fe4867264fee03accf55f7dc711a9cf6926627 (diff) | |
download | gcc-ba0ece3922d73beaac7cde3fb7ec9922c7535a3e.tar.gz |
rs6000: Don't write "nor" as (not (ior () ())) (PR80618)
The canonical RTL for "nor" is (and (not ()) (not ())), and that is
indeed what we use in boolccv2df3_internal1. So, the splitter for
*vector_uneq<mode> should use that form, not (not (ior () ())), which
does not match any pattern.
PR target/80618
* config/rs6000/rs6000.md (*vector_uneq<mode>): Write the nor in the
splitter result in the canonical way.
From-SVN: r248763
Diffstat (limited to 'gcc/config/rs6000/vector.md')
-rw-r--r-- | gcc/config/rs6000/vector.md | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/config/rs6000/vector.md b/gcc/config/rs6000/vector.md index e6489a861cd..ea8169fabe0 100644 --- a/gcc/config/rs6000/vector.md +++ b/gcc/config/rs6000/vector.md @@ -582,13 +582,12 @@ (gt:VEC_F (match_dup 2) (match_dup 1))) (set (match_dup 0) - (not:VEC_F (ior:VEC_F (match_dup 3) - (match_dup 4))))] - " + (and:VEC_F (not:VEC_F (match_dup 3)) + (not:VEC_F (match_dup 4))))] { operands[3] = gen_reg_rtx (<MODE>mode); operands[4] = gen_reg_rtx (<MODE>mode); -}") +}) (define_insn_and_split "*vector_ltgt<mode>" [(set (match_operand:VEC_F 0 "vfloat_operand" "") |