Message ID | 1382494004.6275.174.camel@gnopaine |
---|---|
State | New |
Headers | show |
Index: gcc/config/rs6000/altivec.md =================================================================== --- gcc/config/rs6000/altivec.md (revision 203923) +++ gcc/config/rs6000/altivec.md (working copy) @@ -681,7 +681,10 @@ emit_insn (gen_altivec_vmrghw (high, even, odd)); emit_insn (gen_altivec_vmrglw (low, even, odd)); - emit_insn (gen_altivec_vpkuwum (operands[0], high, low)); + if (BYTES_BIG_ENDIAN) + emit_insn (gen_altivec_vpkuwum (operands[0], high, low)); + else + emit_insn (gen_altivec_vpkuwum (operands[0], low, high)); DONE; }")