This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/31334] Bad codegen for vector initializer with constants prop'd into a vector initializer



------- Comment #7 from pinskia at gcc dot gnu dot org  2007-03-25 23:36 -------
Something like:
(define_insn_and_split "altivec_dup<mode>"
  [(set (match_operand:V 0 "register_operand" "v")
        (vec_duplicate: (match_operand: 0 "r")))
   (clobber (match_operand:V 3 "memory_operand" "=Z"))]
  "TARGET_ALTIVEC"
  "#"
  "&& reload_completed"
  ....


Which then will be generated from rs6000_expand_vector_init.  I can write this
if you want, it is just I cannot test this until Monday.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31334


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]