ix86_fixup_binary_operands_no_copy (PLUS, <MODE>mode, operands);
})
+(define_insn "uavgv4qi3_ceil"
+ [(set (match_operand:V4QI 0 "register_operand" "=x,Yw")
+ (truncate:V4QI
+ (lshiftrt:V4HI
+ (plus:V4HI
+ (plus:V4HI
+ (zero_extend:V4HI
+ (match_operand:V4QI 1 "register_operand" "%0,Yw"))
+ (zero_extend:V4HI
+ (match_operand:V4QI 2 "register_operand" "x,Yw")))
+ (const_vector:V4HI [(const_int 1) (const_int 1)
+ (const_int 1) (const_int 1)]))
+ (const_int 1))))]
+ "TARGET_SSE2"
+ "@
+ pavgb\t{%2, %0|%0, %2}
+ vpavgb\t{%2, %1, %0|%0, %1, %2}"
+ [(set_attr "isa" "noavx,avx")
+ (set_attr "type" "sseiadd")
+ (set_attr "mode" "TI")])
+
+(define_insn "uavgv2hi3_ceil"
+ [(set (match_operand:V2HI 0 "register_operand" "=x,Yw")
+ (truncate:V2HI
+ (lshiftrt:V2SI
+ (plus:V2SI
+ (plus:V2SI
+ (zero_extend:V2SI
+ (match_operand:V2HI 1 "register_operand" "%0,Yw"))
+ (zero_extend:V2SI
+ (match_operand:V2HI 2 "register_operand" "x,Yw")))
+ (const_vector:V2SI [(const_int 1) (const_int 1)]))
+ (const_int 1))))]
+ "TARGET_SSE2"
+ "@
+ pavgw\t{%2, %0|%0, %2}
+ vpavgw\t{%2, %1, %0|%0, %1, %2}"
+ [(set_attr "isa" "noavx,avx")
+ (set_attr "type" "sseiadd")
+ (set_attr "mode" "TI")])
+
(define_insn "mmx_psadbw"
[(set (match_operand:V1DI 0 "register_operand" "=y,x,Yw")
(unspec:V1DI [(match_operand:V8QI 1 "register_operand" "0,0,Yw")