PPC/CodeGen: fix lwa instruction generation
authorPeter Trommler <ptrommler@acm.org>
Sat, 1 Oct 2016 21:56:31 +0000 (17:56 -0400)
committerClint Adams <clint@debian.org>
Sat, 17 Dec 2016 02:44:45 +0000 (02:44 +0000)
commitbb1180b36cfb31c44552d7ce0d2cc2016dbec56f
treebe9e24c921501458d7c9e4f37bd3b0bec0a8e304
parent798b394daa23cde8f3f495acaf4e10be8d43d761
PPC/CodeGen: fix lwa instruction generation

Opcode lwa is a 64-bit opcode and allows a DS-form only.  This patch
generates lwa opcodes only when the offset is a multiple of 4.

Fixes #12621

Test Plan: validate

Reviewers: erikd, hvr, simonmar, austin, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2547

GHC Trac Issues: #12621

Gbp-Pq: Name fix-ppc-lwa-generation
compiler/nativeGen/PPC/CodeGen.hs