tests update
This commit is contained in:
@ -2,30 +2,31 @@
|
||||
entry:
|
||||
pushq %rbp
|
||||
movq %rsp, %rbp
|
||||
subq $128, %rsp
|
||||
subq $416, %rsp
|
||||
movl %edi, -8(%rbp) #FunctionStart1param end
|
||||
movl $1, -12(%rbp) #constant assign
|
||||
.L1:
|
||||
movl -12(%rbp), %eax #assign start
|
||||
movl %eax, -16(%rbp) #assign end
|
||||
movl $2, -20(%rbp) #constant assign
|
||||
.L2:
|
||||
movl -20(%rbp), %eax #assign start
|
||||
movl %eax, -24(%rbp) #assign end
|
||||
movl -16(%rbp), %eax #equal to start
|
||||
cmpl -24(%rbp), %eax
|
||||
sete %al
|
||||
movb $0, -25(%rbp)
|
||||
movb %al, -25(%rbp) #equal to end
|
||||
.L3:
|
||||
cmpb $0, -25(%rbp) #if true start
|
||||
jne .L1 #if true end
|
||||
jmp .L1
|
||||
.L1:
|
||||
movl -25(%rbp), %eax #assign start
|
||||
movl %eax, -26(%rbp) #assign end
|
||||
movl -26(%rbp), %edi #adding param start
|
||||
call printBoolean
|
||||
movl %eax, -30(%rbp) #store return from call
|
||||
.L4:
|
||||
movl -30(%rbp), %eax #assign start
|
||||
movl %eax, -34(%rbp) #assign end
|
||||
movl $1, -38(%rbp) #constant assign
|
||||
movl -38(%rbp), %eax #return $t4
|
||||
movl %eax, -32(%rbp) #store return from call
|
||||
movl -32(%rbp), %eax #assign start
|
||||
movl %eax, -36(%rbp) #assign end
|
||||
movl $1, -40(%rbp) #constant assign
|
||||
movl -40(%rbp), %eax #return $t4
|
||||
leave
|
||||
ret
|
||||
|
Reference in New Issue
Block a user