From daac4a2d50582e39fe2e2c88a13bb4a3a3d26bb6 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Tue, 10 Feb 2015 12:01:05 -0800 Subject: [PATCH] Fixing Rc=1 CR update to be 32-bit. --- src/alloy/frontend/ppc/ppc_hir_builder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alloy/frontend/ppc/ppc_hir_builder.cc b/src/alloy/frontend/ppc/ppc_hir_builder.cc index ad4e8bc6d..5a8d0cc56 100644 --- a/src/alloy/frontend/ppc/ppc_hir_builder.cc +++ b/src/alloy/frontend/ppc/ppc_hir_builder.cc @@ -301,7 +301,7 @@ void PPCHIRBuilder::StoreCRField(uint32_t n, uint32_t bit, Value* value) { } void PPCHIRBuilder::UpdateCR(uint32_t n, Value* lhs, bool is_signed) { - UpdateCR(n, lhs, LoadZero(lhs->type), is_signed); + UpdateCR(n, Truncate(lhs, INT32_TYPE), LoadZero(INT32_TYPE), is_signed); } void PPCHIRBuilder::UpdateCR(uint32_t n, Value* lhs, Value* rhs,