--- /dev/null
+/* { dg-do compile } */
+/* { dg-additional-options "-O3" } */
+
+void glFinish();
+struct _Vector_base {
+ struct {
+ unsigned _M_start;
+ } _M_impl;
+};
+class vector : _Vector_base {
+public:
+ vector(long) {}
+ unsigned *data() { return &_M_impl._M_start; }
+};
+void *PutBitsIndexedImpl_color_table;
+int PutBitsIndexedImpl_dstRectHeight;
+char *PutBitsIndexedImpl_src_ptr;
+void PutBitsIndexedImpl() {
+ vector unpacked_buf(PutBitsIndexedImpl_dstRectHeight);
+ unsigned *dst_ptr = unpacked_buf.data();
+ for (int x; x; x++) {
+ char i = *PutBitsIndexedImpl_src_ptr++;
+ dst_ptr[x] = static_cast<int *>(PutBitsIndexedImpl_color_table)[i];
+ }
+ glFinish();
+}
static void
vect_get_gather_scatter_ops (loop_vec_info loop_vinfo,
class loop *loop, stmt_vec_info stmt_info,
- slp_tree slp_node, unsigned int ncopies,
- gather_scatter_info *gs_info,
+ slp_tree slp_node, gather_scatter_info *gs_info,
tree *dataref_ptr, vec<tree> *vec_offset)
{
gimple_seq stmts = NULL;
if (slp_node)
vect_get_slp_defs (SLP_TREE_CHILDREN (slp_node)[0], vec_offset);
else
- vect_get_vec_defs_for_operand (loop_vinfo, stmt_info, ncopies,
- gs_info->offset, vec_offset,
- gs_info->offset_vectype);
+ {
+ unsigned ncopies
+ = vect_get_num_copies (loop_vinfo, gs_info->offset_vectype);
+ vect_get_vec_defs_for_operand (loop_vinfo, stmt_info, ncopies,
+ gs_info->offset, vec_offset,
+ gs_info->offset_vectype);
+ }
}
/* Prepare to implement a grouped or strided load or store using
else if (STMT_VINFO_GATHER_SCATTER_P (stmt_info))
{
vect_get_gather_scatter_ops (loop_vinfo, loop, stmt_info,
- slp_node, ncopies, &gs_info,
- &dataref_ptr, &vec_offsets);
+ slp_node, &gs_info, &dataref_ptr,
+ &vec_offsets);
vec_offset = vec_offsets[0];
}
else
else if (STMT_VINFO_GATHER_SCATTER_P (stmt_info))
{
vect_get_gather_scatter_ops (loop_vinfo, loop, stmt_info,
- slp_node, ncopies, &gs_info,
- &dataref_ptr, &vec_offsets);
+ slp_node, &gs_info, &dataref_ptr,
+ &vec_offsets);
}
else
dataref_ptr