Patchwork [committed] Fix PR 57615, power8 generates an error for -mquad-memory -mno-vsx

mail settings
Submitter Michael Meissner
Date June 14, 2013, 9 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/251534/
State New
Headers show


Michael Meissner - June 14, 2013, 9 p.m.
I'm committing this as an obvious fix to a thinko on my part.  The problem was
I didn't think about the case where quad memory instructions were available,
but not VSX instructions.  The quad memory support was added to the VSX
implementation of movti for 64-bit, but it wasn't added to the non-VSX

I bootstraped it and did a make check comparison with no regressions.

2013-06-14  Michael Meissner  <>

	PR target/57615
	* config/rs6000/ (mov<mode>_ppc64): Call
	rs6000_output_move_128bit to handle emitting quad memory
	operations.  Set attribute length to 8 bytes.


Index: gcc/config/rs6000/
--- gcc/config/rs6000/	(revision 200105)
+++ gcc/config/rs6000/	(working copy)
@@ -10020,8 +10020,11 @@  (define_insn "*mov<mode>_ppc64"
    && (gpc_reg_operand (operands[0], <MODE>mode)
        || gpc_reg_operand (operands[1], <MODE>mode)))"
-  "#"
-  [(set_attr "type" "store,load,*,*")])
+  return rs6000_output_move_128bit (operands);
+  [(set_attr "type" "store,load,*,*")
+   (set_attr "length" "8")])
   [(set (match_operand:TI2 0 "int_reg_operand" "")