possible Altivec inconsistency

Mike Stump mrs@apple.com
Wed Feb 1 00:25:00 GMT 2006


I was looking through the altivec.md file and found the below.  Seems  
like either they should all be "", or "i"; my guess, they should all  
be "i".


(define_insn "altivec_vspltb"
   [(set (match_operand:V16QI 0 "register_operand" "=v")
         (vec_duplicate:V16QI
          (vec_select:QI (match_operand:V16QI 1 "register_operand" "v")
                         (parallel
                          [(match_operand:QI 2 "u5bit_cint_operand"  
"")]))))]
   "TARGET_ALTIVEC"
   "vspltb %0,%1,%2"
   [(set_attr "type" "vecperm")])

(define_insn "altivec_vsplth"
   [(set (match_operand:V8HI 0 "register_operand" "=v")
         (vec_duplicate:V8HI
          (vec_select:HI (match_operand:V8HI 1 "register_operand" "v")
                         (parallel
                          [(match_operand:QI 2 "u5bit_cint_operand"  
"")]))))]
   "TARGET_ALTIVEC"
   "vsplth %0,%1,%2"
   [(set_attr "type" "vecperm")])

(define_insn "altivec_vspltw"
   [(set (match_operand:V4SI 0 "register_operand" "=v")
         (vec_duplicate:V4SI
          (vec_select:SI (match_operand:V4SI 1 "register_operand" "v")
                         (parallel
                          [(match_operand:QI 2 "u5bit_cint_operand"  
"i")]))))]



More information about the Gcc mailing list