From 20dfc797dc631bf8d655dcf123f46f13332d3074 Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Mon, 16 Jun 2014 20:44:29 -0700 Subject: Add some more instruction support to optimizing compiler. This adds a few more DEX instructions to the optimizing compiler's builder (constants, moves, if_xx, etc). Also: * Changes the codegen for IF_XX instructions to use a condition rather than comparing a value against 0. * Fixes some instructions in the ARM disassembler. * Fixes PushList and PopList in the thumb2 assembler. * Switches the assembler for the optimizing compiler to thumb2 rather than ARM. Change-Id: Iaafcd02243ccc5b03a054ef7a15285b84c06740f --- compiler/optimizing/graph_test.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'compiler/optimizing/graph_test.cc') diff --git a/compiler/optimizing/graph_test.cc b/compiler/optimizing/graph_test.cc index 371478c9e7..c59f8366fa 100644 --- a/compiler/optimizing/graph_test.cc +++ b/compiler/optimizing/graph_test.cc @@ -30,7 +30,9 @@ static HBasicBlock* createIfBlock(HGraph* graph, ArenaAllocator* allocator) { graph->AddBlock(if_block); HInstruction* instr = new (allocator) HIntConstant(4); if_block->AddInstruction(instr); - instr = new (allocator) HIf(instr); + HInstruction* equal = new (allocator) HEqual(instr, instr); + if_block->AddInstruction(equal); + instr = new (allocator) HIf(equal); if_block->AddInstruction(instr); return if_block; } -- cgit v1.2.3-59-g8ed1b