+2018-04-03 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/85169
+ * config/i386/i386.c (ix86_expand_vector_set): Use
+ HOST_WIDE_INT_1U << elt instead of 1 << elt. Formatting fix.
+
2018-04-03 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (emit_i387_cw_initialization): Always use logic
where the mask is clear and second input operand otherwise. */
emit_insn (gen_blendm (target, target, tmp,
force_reg (mmode,
- gen_int_mode (1 << elt, mmode))));
+ gen_int_mode (HOST_WIDE_INT_1U << elt,
+ mmode))));
}
else if (use_vec_merge)
{
tmp = gen_rtx_VEC_DUPLICATE (mode, val);
- tmp = gen_rtx_VEC_MERGE (mode, tmp, target, GEN_INT (1 << elt));
+ tmp = gen_rtx_VEC_MERGE (mode, tmp, target,
+ GEN_INT (HOST_WIDE_INT_1U << elt));
emit_insn (gen_rtx_SET (target, tmp));
}
else
emit_move_insn (mem, target);
- tmp = adjust_address (mem, inner_mode, elt*GET_MODE_SIZE (inner_mode));
+ tmp = adjust_address (mem, inner_mode, elt * GET_MODE_SIZE (inner_mode));
emit_move_insn (tmp, val);
emit_move_insn (target, mem);
+2018-04-03 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/85169
+ * gcc.c-torture/execute/pr85169.c: New test.
+ * gcc.target/i386/avx512f-pr85169.c: New test.
+ * gcc.target/i386/avx512bw-pr85169.c: New test.
+
2018-04-03 Segher Boessenkool <segher@kernel.crashing.org>
PR target/85126
--- /dev/null
+/* PR target/85169 */
+/* { dg-do run { target avx512bw } } */
+/* { dg-options "-O2 -mavx512bw" } */
+
+#include "avx512bw-check.h"
+
+int do_main (void);
+
+static void
+avx512bw_test (void)
+{
+ do_main ();
+}
+
+#undef main
+#define main() do_main ()
+
+#include "../../gcc.c-torture/execute/pr85169.c"
--- /dev/null
+/* PR target/85169 */
+/* { dg-do run { target avx512f } } */
+/* { dg-options "-O2 -mavx512f" } */
+
+#include "avx512f-check.h"
+
+int do_main (void);
+
+static void
+avx512f_test (void)
+{
+ do_main ();
+}
+
+#undef main
+#define main() do_main ()
+
+#include "../../gcc.c-torture/execute/pr85169.c"