From: Ilya Enkovich Date: Tue, 17 May 2016 09:28:15 +0000 (+0000) Subject: re PR target/71114 (Several test suite failures on x86_64-apple-darwin* after revisio... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b28eb195007c4a766dc7b6d1d79013e5db1f5e90;p=gcc.git re PR target/71114 (Several test suite failures on x86_64-apple-darwin* after revision r236090) gcc/ PR target/71114 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix insertion point for instructions generated by validize_mem. gcc/testsuite/ PR target/71114 * gcc.target/i386/pr70799-1.c: Fix scan for Darwin. From-SVN: r236315 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4876a734bba..9aae0ffeaa6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-05-17 Ilya Enkovich + + PR target/71114 + * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix + insertion point for instructions generated by validize_mem. + 2016-05-17 James Greenhalgh * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 7f9004f79b3..e65f3120b6c 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -3688,7 +3688,13 @@ dimode_scalar_chain::convert_op (rtx *op, rtx_insn *insn) gen_rtvec (2, *op, const0_rtx)); if (!standard_sse_constant_p (vec_cst, V2DImode)) - vec_cst = validize_mem (force_const_mem (V2DImode, vec_cst)); + { + start_sequence (); + vec_cst = validize_mem (force_const_mem (V2DImode, vec_cst)); + rtx_insn *seq = get_insns (); + end_sequence (); + emit_insn_before (seq, insn); + } emit_insn_before (gen_move_insn (tmp, vec_cst), insn); *op = tmp; diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c5f151f7fe4..d14bcf1926a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2016-05-17 Dominique d'Humieres + Ilya Enkovich + + PR target/71114 + * gcc.target/i386/pr70799-1.c: Fix scan for Darwin. + 2016-05-16 Jan Hubicka * g++.dg/ipa/ivinline-7.C: Do not xfail. diff --git a/gcc/testsuite/gcc.target/i386/pr70799-1.c b/gcc/testsuite/gcc.target/i386/pr70799-1.c index 0abbfb9fe79..f4e42fac5a0 100644 --- a/gcc/testsuite/gcc.target/i386/pr70799-1.c +++ b/gcc/testsuite/gcc.target/i386/pr70799-1.c @@ -3,7 +3,7 @@ /* { dg-options "-O2 -march=slm" } */ /* { dg-final { scan-assembler "pxor" } } */ /* { dg-final { scan-assembler "pcmpeqd" } } */ -/* { dg-final { scan-assembler "movdqa\[ \\t\]+.LC0" } } */ +/* { dg-final { scan-assembler "movdqa\[ \\t\]+.?LC0" } } */ long long a, b, c;