Misc fixes.

This commit is contained in:
Ben Vanik
2013-12-08 16:00:55 -08:00
parent 7c4b2c6d23
commit 60015afdc4
3 changed files with 34 additions and 7 deletions

View File

@@ -592,7 +592,7 @@ int Translate_CALL_TRUE(TranslationContext& ctx, Instr* i) {
}
uint32_t IntCode_CALL_INDIRECT_XX(IntCodeState& ics, const IntCode* i, uint32_t reg) {
uint64_t target = ics.rf[reg].u64;
uint64_t target = ics.rf[reg].u32;
// Check if return address - if so, return.
if (target == ics.return_address) {

View File

@@ -1455,8 +1455,6 @@ Value* FunctionBuilder::Splat(Value* value, TypeName target_type) {
Value* FunctionBuilder::Permute(
Value* control, Value* value1, Value* value2, TypeName part_type) {
ASSERT_TYPES_EQUAL(value1, value2);
// For now.
XEASSERT(part_type == INT32_TYPE || part_type == FLOAT32_TYPE);
// TODO(benvanik): could do some of this as constants.