32
|
1 define regs
|
116
|
2 printf "pc =%08x lr =%08x r0 =%08x r1 =%08x r3= %08x r4= %08x\n",$pc,$lr,$r0,$r1,$r3,$r4
|
111
|
3 printf "r10=%08x r11=%08x r12=%08x r13=%08x r14=%08x r15=%08x\n",$r10,$r11,$r12,$r13,$r14,$r15
|
|
4 end
|
|
5 define fregs
|
|
6 printf "f1=%g f2=%g f3=%g f4=%g f5=%g f6=%g\n",$f1,$f2,$f3,$f4,$f5,$f6
|
|
7 printf "f10=%g f11=%g f12=%g f13=%g f14=%g f15=%g\n",$f10,$f11,$f12,$f13,$f14,$f15
|
32
|
8 end
|
116
|
9 define allreg
|
|
10 printf "pc =%08x lr =%08x r0 =%08x r1 =%08x r3= %08x r4= %08x\n",$pc,$lr,$r0,$r1,$r3,$r4
|
|
11 printf "r5=%08x r6=%08x r7=%08x r8=%08x r9=%08x\n",$r5,$r6,$r7,$r8,$r9
|
|
12 printf "r10=%08x r11=%08x r12=%08x r13=%08x r14=%08x r15=%08x\n",$r10,$r11,$r12,$r13,$r14,$r15
|
|
13 printf "r16=%08x r17=%08x r18=%08x r19=%08x r20=%08x r21=%08x\n",$r10,$r11,$r12,$r13,$r14,$r15
|
|
14 printf "f1=%g f2=%g f3=%g f4=%g f5=%g f6=%g\n",$f1,$f2,$f3,$f4,$f5,$f6
|
|
15 printf "f10=%g f11=%g f12=%g f13=%g f14=%g f15=%g\n",$f10,$f11,$f12,$f13,$f14,$f15
|
|
16 printf "f20=%g f21=%g f22=%g f23=%g f24=%g f25=%g\n",$f20,$f21,$f22,$f23,$f24,$f25
|
|
17 end
|
|
18 define sh
|
|
19 regs
|
|
20 x/20i $pc-36
|
|
21 end
|
32
|
22 define si
|
|
23 stepi
|
|
24 regs
|
110
|
25 x/1i $pc
|
32
|
26 end
|
|
27 define ni
|
|
28 nexti
|
51
|
29 regs
|
110
|
30 x/1i $pc
|
32
|
31 end
|
39
|
32 b errmsg
|
467
|
33 tb main
|
|
34 # run -s test/inline.c
|
489
|
35 # run -s mc-parse.c
|
467
|
36 # run -s mc-codegen.c
|
|
37 # run -s nkf203/nkf.c
|
|
38 # run -s -ob01.s mc-switch.c
|
|
39 # run -s l.c
|
|
40 # run -s test/const.c
|
|
41 # run -s test/basic.c
|
601
|
42 # run -s test/code-gen-all.c
|
467
|
43 # run -s test/tmp7.c
|
529
|
44 # run -s test/inline.c
|
535
|
45 # run -s test/code-gen-inline.c
|
537
|
46 # run -s -DINLINE=inline test/basic.c
|
548
|
47 # run -s test/too-long-argument.c
|
550
|
48 # run -s test/strinit.c
|
553
|
49 # run -DINLINE=inline test/scope.c
|
572
|
50 # run -DINLINE=inline test/code-gen-all.c
|
574
|
51 # run -DINLINE=inline test/bitfield1.c
|
556
|
52 # run -s test/linux_kernel.c.---
|
|
53 # run -s test/stralign.c
|
566
|
54 # run -s test/putenemy.c
|
574
|
55 # run -s test/func_conv_err.c
|
601
|
56 run -DINLINE=inline test/tmp7.c
|
577
|
57 # run -DINLINE=inline test/code-gen-all.c
|
583
|
58 # run -s throw.c
|