From 48ae4b65fb6ebfed7f07e7521125fb811722ebea Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Tue, 12 May 2015 18:51:01 -0700 Subject: [PATCH] Fixing CountLeadingZeros constant prop. --- src/xenia/cpu/hir/value.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xenia/cpu/hir/value.cc b/src/xenia/cpu/hir/value.cc index 7a70f1201..907e685cc 100644 --- a/src/xenia/cpu/hir/value.cc +++ b/src/xenia/cpu/hir/value.cc @@ -609,16 +609,16 @@ void Value::ByteSwap() { void Value::CountLeadingZeros(const Value* other) { switch (other->type) { case INT8_TYPE: - constant.i8 = xe::lzcnt(constant.i8); + constant.i8 = xe::lzcnt(other->constant.i8); break; case INT16_TYPE: - constant.i8 = xe::lzcnt(constant.i16); + constant.i8 = xe::lzcnt(other->constant.i16); break; case INT32_TYPE: - constant.i8 = xe::lzcnt(constant.i32); + constant.i8 = xe::lzcnt(other->constant.i32); break; case INT64_TYPE: - constant.i8 = xe::lzcnt(constant.i64); + constant.i8 = xe::lzcnt(other->constant.i64); break; default: assert_unhandled_case(type);