Search
lxdream.org :: lxdream/src/test/testsh4xir.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/test/testsh4xir.c
changeset 1011:fdd58619b760
prev1006:3a169c224c12
author nkeynes
date Sun Apr 12 07:24:45 2009 +0000 (13 years ago)
branchxlat-refactor
permissions -rw-r--r--
last change Restructure operand types -
rename to forms to avoid conflict for actual data types
temporary operands are now a first class form
remove explicit types for immediates - now implied by opcode
Initial work on promote-source-reg pass
file annotate diff log raw
1.1 --- a/src/test/testsh4xir.c Tue Apr 07 10:55:03 2009 +0000
1.2 +++ b/src/test/testsh4xir.c Sun Apr 12 07:24:45 2009 +0000
1.3 @@ -135,16 +135,19 @@
1.4
1.5 struct xir_basic_block xbb;
1.6 xbb.source = &sh4_source_machine;
1.7 + xbb.target = &x86_target_machine;
1.8 xbb.ir_alloc_begin = &xir[0];
1.9 xbb.ir_alloc_end = &xir[MAX_XIR_OPS];
1.10 xbb.ir_begin = xbb.ir_ptr = xbb.ir_end = xbb.ir_alloc_begin;
1.11 xbb.pc_begin = start_addr;
1.12 xbb.pc_end = start_addr+4096;
1.13 + xir_clear_basic_block(&xbb);
1.14 xbb.source->decode_basic_block( &xbb );
1.15
1.16 - x86_target_machine.lower( &xbb, xbb.ir_begin, xbb.ir_end );
1.17 - xir_set_register_names( sh4_source_machine.reg_names, x86_target_machine.reg_names );
1.18 + //x86_target_machine.lower( &xbb, xbb.ir_begin, xbb.ir_end );
1.19 + xir_promote_source_registers( &xbb, xbb.ir_begin, xbb.ir_end );
1.20 xir_set_symbol_table( debug_symbols );
1.21 - xir_dump_block( &xir[0], NULL );
1.22 + xir_dump_block( &xbb );
1.23 + xir_verify_block( &xbb, xbb.ir_begin, xbb.ir_end );
1.24 return 0;
1.25 }
.