Fixing SHR constant prop and new cntlz tests.

This commit is contained in:
Ben Vanik
2015-05-12 18:59:45 -07:00
parent 48ae4b65fb
commit cbdfd09e0f
9 changed files with 80 additions and 369 deletions

View File

@@ -552,7 +552,7 @@ void Value::Shr(Value* other) {
constant.i32 = (uint32_t)constant.i32 >> other->constant.i8;
break;
case INT64_TYPE:
constant.i64 = (uint16_t)constant.i64 >> other->constant.i8;
constant.i64 = (uint64_t)constant.i64 >> other->constant.i8;
break;
default:
assert_unhandled_case(type);