&& ix86_pre_reload_split ()"
"#"
"&& 1"
- [(set (match_dup 0)
+ [(set (match_dup 4)
(ashift:V2DI (match_dup 1) (match_dup 2)))
(set (match_dup 0)
- (ashiftrt:V2DI (match_dup 0) (match_dup 2)))])
+ (ashiftrt:V2DI (match_dup 4) (match_dup 2)))]
+{
+ if (!TARGET_XOP)
+ {
+ rtx op0 = operands[0];
+ rtx op2 = operands[2];
+ rtx tmp1 = gen_reg_rtx (V4SImode);
+ rtx tmp2 = gen_reg_rtx (V4SImode);
+ rtx tmp3 = gen_reg_rtx (V4SImode);
+ rtx tmp4 = gen_reg_rtx (V4SImode);
+ emit_move_insn (tmp1, lowpart_subreg (V4SImode, operands[1], V2DImode));
+ emit_insn (gen_ashlv4si3 (tmp2, tmp1, op2));
+ emit_insn (gen_ashrv4si3 (tmp3, tmp2, op2));
+ vec_perm_builder sel (4, 4, 1);
+ sel.quick_grow (4);
+ sel[0] = 0;
+ sel[1] = 5;
+ sel[2] = 2;
+ sel[3] = 7;
+ vec_perm_indices indices(sel, 2, 4);
+ bool ok = targetm.vectorize.vec_perm_const (V4SImode, V4SImode, tmp4,
+ tmp1, tmp3, indices);
+ gcc_assert (ok);
+ emit_move_insn (op0, lowpart_subreg (V2DImode, tmp4, V4SImode));
+ DONE;
+ }
+ else
+ operands[4] = gen_reg_rtx (V2DImode);
+})
\f
;; Rotate instructions
--- /dev/null
+/* { dg-do compile { target ia32 } } */
+/* { dg-options "-O2 -mavx -mno-avx512vl -std=c++11" } */
+
+struct SymbolDesc push_back(SymbolDesc);
+struct SymbolDesc {
+ long long ELFLocalSymIdx;
+};
+struct Expected {
+ long long &operator*();
+};
+void SymbolizableObjectFileaddSymbol() {
+ Expected SymbolAddressOrErr;
+ long long SymbolAddress = *SymbolAddressOrErr << 8 >> 8;
+ push_back({SymbolAddress});
+}
+
+/* { dg-final { scan-assembler "vpslld" } } */
+/* { dg-final { scan-assembler-not "vpsllq" } } */
+/* { dg-final { scan-assembler-not "vpsrlq" } } */