You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.5 KiB
54 lines
1.5 KiB
4 months ago
|
Blort.switchTest1:(I)I:
|
||
|
regs: 0005; ins: 0002; outs: 0000
|
||
|
0000: move-object v0, v3
|
||
|
0001: move v1, v4
|
||
|
0002: move v2, v1
|
||
|
0003: packed-switch v2, 0016 // +0013
|
||
|
0006: const/4 v2, #int 6 // #6
|
||
|
0007: move v0, v2
|
||
|
0008: return v0
|
||
|
0009: const/4 v2, #int 2 // #2
|
||
|
000a: move v0, v2
|
||
|
000b: goto 0008 // -0003
|
||
|
000c: const/4 v2, #int 3 // #3
|
||
|
000d: move v0, v2
|
||
|
000e: goto 0008 // -0006
|
||
|
000f: const/4 v2, #int 4 // #4
|
||
|
0010: move v0, v2
|
||
|
0011: goto 0008 // -0009
|
||
|
0012: const/4 v2, #int 5 // #5
|
||
|
0013: move v0, v2
|
||
|
0014: goto 0008 // -000c
|
||
|
0015: nop // spacer
|
||
|
0016: packed-switch-payload // for switch @ 0003
|
||
|
1: 00000009 // +00000006
|
||
|
2: 0000000c // +00000009
|
||
|
3: 0000000f // +0000000c
|
||
|
4: 00000012 // +0000000f
|
||
|
Blort.switchTest2:(I)I:
|
||
|
regs: 0005; ins: 0002; outs: 0000
|
||
|
0000: move-object v0, v3
|
||
|
0001: move v1, v4
|
||
|
0002: move v2, v1
|
||
|
0003: sparse-switch v2, 0016 // +0013
|
||
|
0006: const/4 v2, #int 6 // #6
|
||
|
0007: move v0, v2
|
||
|
0008: return v0
|
||
|
0009: const/4 v2, #int 2 // #2
|
||
|
000a: move v0, v2
|
||
|
000b: goto 0008 // -0003
|
||
|
000c: const/4 v2, #int 3 // #3
|
||
|
000d: move v0, v2
|
||
|
000e: goto 0008 // -0006
|
||
|
000f: const/4 v2, #int 4 // #4
|
||
|
0010: move v0, v2
|
||
|
0011: goto 0008 // -0009
|
||
|
0012: const/16 v2, #int 50 // #0032
|
||
|
0014: move v0, v2
|
||
|
0015: goto 0008 // -000d
|
||
|
0016: sparse-switch-payload // for switch @ 0003
|
||
|
1: 00000009 // +00000006
|
||
|
10: 0000000c // +00000009
|
||
|
100: 0000000f // +0000000c
|
||
|
1000: 00000012 // +0000000f
|