2 # Copyright (C) 2001-2008, Parrot Foundation.
7 use lib qw( . lib ../lib ../../lib );
9 use Parrot::Test tests => 14;
14 t/op/jitn.t - JIT register allocation
22 Tests JIT register allocation. These tests are written for four mappable
29 pasm_output_is( <<'CODE', <<'OUTPUT', "sub_n_n_n 1,2,3 mapped" );
47 pasm_output_is( <<'CODE', <<'OUTPUT', "sub_n_n_i 1,2,3 mapped" );
62 pasm_output_is( <<'CODE', <<'OUTPUT', "sub_n_n_n 1,2 mapped" );
86 pasm_output_is( <<'CODE', <<'OUTPUT', "sub_n_n_n 1,3 mapped" );
110 pasm_output_is( <<'CODE', <<'OUTPUT', "sub_n_n_i 1,3 mapped" );
132 pasm_output_is( <<'CODE', <<'OUTPUT', "sub_n_n_n 2,3 mapped" );
156 pasm_output_is( <<'CODE', <<'OUTPUT', "sub_n_n_i 2,3 mapped" );
181 pasm_output_is( <<'CODE', <<'OUTPUT', "sub_n_n_n 1 mapped" );
206 pasm_output_is( <<'CODE', <<'OUTPUT', "sub_n_n_n 2 mapped" );
230 pasm_output_is( <<'CODE', <<'OUTPUT', "sub_n_n_n 3 mapped" );
254 pasm_output_is( <<'CODE', <<'OUTPUT', "sub_n_n_n 0 mapped" );
279 pasm_output_is( <<'CODE', <<'OUTPUT', "sub_n_n_n mapped same" );
281 add N2, N2, N2 # reserve first reg
301 pir_output_is( <<'CODE', <<'OUT', "set_i_n testing" );
326 $output = $PConfig{numvalsize} < 16 ? "zero\n" : "not zero\n";
327 pasm_output_is( <<'CODE', $output, "rounding due to mapped" );
340 # cperl-indent-level: 4
343 # vim: expandtab shiftwidth=4: