mirror of
https://github.com/danog/ir.git
synced 2025-01-22 05:31:32 +01:00
Fix test
This commit is contained in:
parent
7164bc30e4
commit
5bed3d73a5
@ -38,33 +38,32 @@ Windows-x86_64
|
||||
int32_t c_6 = 10000;
|
||||
uintptr_t c_7 = func(printf, 4);
|
||||
uintptr_t c_8 = "%d\n";
|
||||
l_1 = START(l_15);
|
||||
l_1 = START(l_14);
|
||||
l_2 = END(l_1);
|
||||
l_3 = LOOP_BEGIN(l_2, l_13);
|
||||
int32_t d_4 = PHI(l_3, c_4, d_10);
|
||||
l_3 = LOOP_BEGIN(l_2, l_12);
|
||||
int32_t d_4 = PHI(l_3, c_4, d_5);
|
||||
int32_t d_5 = PHI(l_3, c_5, d_9);
|
||||
bool d_6 = LT(d_5, c_6);
|
||||
l_7 = IF(l_3, d_6);
|
||||
l_8 = IF_TRUE(l_7);
|
||||
int32_t d_9 = ADD(d_5, d_4);
|
||||
int32_t d_10 = SUB(d_9, d_4);
|
||||
l_11 = CALL/2(l_8, c_7, c_8, d_10);
|
||||
l_13 = LOOP_END(l_11);
|
||||
l_14 = IF_FALSE(l_7);
|
||||
l_15 = RETURN(l_14, c_4);
|
||||
l_10 = CALL/2(l_8, c_7, c_8, d_5);
|
||||
l_12 = LOOP_END(l_10);
|
||||
l_13 = IF_FALSE(l_7);
|
||||
l_14 = RETURN(l_13, c_4);
|
||||
}
|
||||
{ # LIVE-RANGES (vregs_count=3)
|
||||
TMP
|
||||
[%eax]: [2.2-2.3)
|
||||
[%rax]: [11.0-11.1)
|
||||
[%eax]: [13.2-13.3)
|
||||
R1 (d_4) [%eax]: [3.0-10.1), DEF(4.2), USE(9.1/2)!, USE(10.1/2)
|
||||
R2 (d_5, d_9) [%ebx]: [3.0-9.1), [9.2-14.0), DEF(5.2), USE(6.1/1), USE(9.1/1)!, DEF(9.2)!, USE(10.0/1, hint=%edx, hint=R3)!, PHI_USE(13.2, phi=d_5/3)
|
||||
R3 (d_10) [%ebp]: [10.0-14.0), DEF(10.0, hint=R2)!, DEF(10.2)!, USE(11.0/4, hint=%edx), PHI_USE(13.2, phi=d_4/3)
|
||||
[%rax] : [15.0-15.1)
|
||||
[%rcx] : [11.0-11.1)
|
||||
[%rdx] : [11.0-11.1)
|
||||
[%SCRATCH] : [11.1-11.2)
|
||||
[%rax]: [10.0-10.1)
|
||||
[%eax]: [12.2-12.3)
|
||||
R1 (d_4) [%eax]: [3.0-9.1), DEF(4.2), USE(9.1/2)!
|
||||
R2 (d_5) [%ebx]: [3.0-13.0), DEF(5.2), USE(6.1/1), USE(9.1/1)!, USE(10.0/4, hint=%edx), PHI_USE(12.2, phi=d_4/3)
|
||||
R3 (d_9) [%ebp]: [9.2-13.0), DEF(9.2)!, PHI_USE(12.2, phi=d_5/3)
|
||||
[%rax] : [14.0-14.1)
|
||||
[%rcx] : [10.0-10.1)
|
||||
[%rdx] : [10.0-10.1)
|
||||
[%SCRATCH] : [10.1-10.2)
|
||||
}
|
||||
test:
|
||||
subq $0x38, %rsp
|
||||
@ -75,14 +74,13 @@ test:
|
||||
.L1:
|
||||
cmpl $0x2710, %ebx
|
||||
jge .L2
|
||||
addl %eax, %ebx
|
||||
movl %ebx, %ebp
|
||||
subl %eax, %ebp
|
||||
movl %ebp, %edx
|
||||
leal (%rbx, %rax), %ebp
|
||||
movl %ebx, %edx
|
||||
leaq .L3(%rip), %rcx
|
||||
movabsq $printf, %rax
|
||||
callq *%rax
|
||||
movl %ebp, %eax
|
||||
movl %ebx, %eax
|
||||
movl %ebp, %ebx
|
||||
jmp .L1
|
||||
.L2:
|
||||
xorl %eax, %eax
|
||||
@ -91,7 +89,7 @@ test:
|
||||
addq $0x38, %rsp
|
||||
retq
|
||||
.rodata
|
||||
.db 0x90, 0x90, 0x90
|
||||
.db 0x90, 0x90, 0x90, 0x90
|
||||
.L3:
|
||||
.db 0x25, 0x64, 0x0a, 0x00
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user