operands[5] = GEN_INT ((HOST_WIDE_INT_1U << <bits>) - 1);
})
+; rldimi with UNSPEC_SI_FROM_SF.
+(define_insn_and_split "*rotldi3_insert_sf"
+ [(set (match_operand:DI 0 "gpc_reg_operand")
+ (ior:DI
+ (ashift:DI (match_operand:DI 1 "gpc_reg_operand")
+ (match_operand:SI 2 "const_int_operand"))
+ (zero_extend:DI
+ (unspec:QHSI
+ [(match_operand:SF 3 "memory_operand")]
+ UNSPEC_SI_FROM_SF))))
+ (clobber (match_scratch:V4SF 4))]
+ "INTVAL (operands[2]) == <bits>"
+ "#"
+ ""
+ [(parallel [(set (match_dup 5)
+ (zero_extend:DI (unspec:QHSI [(match_dup 3)] UNSPEC_SI_FROM_SF)))
+ (clobber (match_dup 4))])
+ (set (match_dup 0)
+ (ior:DI
+ (and:DI (match_dup 5) (match_dup 6))
+ (ashift:DI (match_dup 1) (match_dup 2))))]
+{
+ operands[5] = gen_reg_rtx (DImode);
+ operands[6] = GEN_INT ((HOST_WIDE_INT_1U << <bits>) - 1);
+})
+
; rlwimi, too.
(define_split
[(set (match_operand:SI 0 "gpc_reg_operand")
--- /dev/null
+/* { dg-do compile } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
+/* { dg-options "-O2 -mdejagnu-cpu=power9" } */
+
+vector float
+test (float *a, float *b, float *c, float *d)
+{
+ return (vector float){*a, *b, *c, *d};
+}
+
+/* { dg-final { scan-assembler-not {\mlxssp} } } */
+/* { dg-final { scan-assembler-not {\mlfs} } } */
+/* { dg-final { scan-assembler-times {\mlwz\M} 4 } } */
+/* { dg-final { scan-assembler-times {\mrldimi\M} 2 } } */
+/* { dg-final { scan-assembler-times {\mmtvsrdd\M} 1 } } */