re PR target/71114 (Several test suite failures on x86_64-apple-darwin* after revisio...
authorIlya Enkovich <ienkovich@gcc.gnu.org>
Tue, 17 May 2016 09:28:15 +0000 (09:28 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Tue, 17 May 2016 09:28:15 +0000 (09:28 +0000)
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

gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr70799-1.c

index 4876a734bbac5db98c1738908ce218742862901f..9aae0ffeaa624ebec023752755cbd0f698d5df4b 100644 (file)
@@ -1,3 +1,9 @@
+2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
+
+       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  <james.greenhalgh@arm.com>
 
        * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
index 7f9004f79b3ccb0c3843a540dc24c52d78c3eaa0..e65f3120b6c84d9cbe33043c5244cfc584237bcc 100644 (file)
@@ -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;
index c5f151f7fe4dd447e295554bf216138b98c75e99..d14bcf1926ace309d3c66863d12b68c60f101685 100644 (file)
@@ -1,3 +1,9 @@
+2016-05-17  Dominique d'Humieres  <dominiq@lps.ens.fr>
+           Ilya Enkovich  <ilya.enkovich@intel.com>
+
+       PR target/71114
+       * gcc.target/i386/pr70799-1.c: Fix scan for Darwin.
+
 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
 
        * g++.dg/ipa/ivinline-7.C: Do not xfail.
index 0abbfb9fe797c8be83fe8ab1854bdce973818f1f..f4e42fac5a0bfd6a83b3f9a27f5191b15830b1c6 100644 (file)
@@ -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;