[Beignet] [PATCH] Fix the long bitcast post schedule bug.
Yang, Rong R
rong.r.yang at intel.com
Tue Jan 27 17:37:08 PST 2015
LGTM, thanks.
> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> junyan.he at inbox.com
> Sent: Monday, January 26, 2015 18:18
> To: beignet at lists.freedesktop.org
> Cc: Junyan He
> Subject: [Beignet] [PATCH] Fix the long bitcast post schedule bug.
>
> From: Junyan He <junyan.he at linux.intel.com>
>
> The tmp registers are in wrong type of float, which will cause the post
> schedule error.
>
> Signed-off-by: Junyan He <junyan.he at linux.intel.com>
> ---
> backend/src/backend/gen_insn_selection.cpp | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/backend/src/backend/gen_insn_selection.cpp
> b/backend/src/backend/gen_insn_selection.cpp
> index 628fa2f..6aa7e0e 100644
> --- a/backend/src/backend/gen_insn_selection.cpp
> +++ b/backend/src/backend/gen_insn_selection.cpp
> @@ -3623,12 +3623,12 @@ namespace gbe
> GBE_ASSERT(isInt64); // Must relate to long and char conversion.
> if (narrowDst) {
> for (int i = 0; i < wideNum; i++) {
> - tmp[i] = sel.selReg(sel.reg(FAMILY_QWORD));
> + tmp[i] = sel.selReg(sel.reg(FAMILY_QWORD), ir::TYPE_U64);
> sel.UNPACK_LONG(tmp[i], sel.selReg(insn.getSrc(i), srcType));
> }
> } else {
> for (int i = 0; i < wideNum; i++) {
> - tmp[i] = sel.selReg(sel.reg(FAMILY_QWORD));
> + tmp[i] = sel.selReg(sel.reg(FAMILY_QWORD), ir::TYPE_U64);
> }
> }
> }
> --
> 1.9.1
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list