Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0be0c6a
commit 7ca8aa8
Showing
12 changed files
with
500 additions
and
528 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,73 @@ | ||
.text | ||
.def @feat.00; | ||
.scl 3; | ||
.type 0; | ||
.endef | ||
.globl @feat.00 | ||
.set @feat.00, 0 | ||
.file "source.spice" | ||
.def .L_Z3ackii; | ||
.scl 3; | ||
.type 32; | ||
.endef | ||
.p2align 4, 0x90 # -- Begin function _Z3ackii | ||
.type .L_Z3ackii,@function | ||
.L_Z3ackii: # @_Z3ackii | ||
# %bb.0: | ||
pushq %rsi | ||
subq $32, %rsp | ||
movl %edx, %eax | ||
testl %ecx, %ecx | ||
je .LBB0_5 | ||
movl %esi, %eax | ||
testl %edi, %edi | ||
je .LBB0_6 | ||
# %bb.1: | ||
movl %ecx, %esi | ||
pushq %rbx | ||
movl %edi, %ebx | ||
jmp .LBB0_2 | ||
.p2align 4, 0x90 | ||
.LBB0_3: # in Loop: Header=BB0_2 Depth=1 | ||
movl $1, %eax | ||
decl %esi | ||
decl %ebx | ||
je .LBB0_5 | ||
.LBB0_2: # %if.exit.L2 | ||
# =>This Inner Loop Header: Depth=1 | ||
testl %eax, %eax | ||
je .LBB0_3 | ||
# %bb.6: # %if.exit.L3 | ||
# %bb.7: # %if.exit.L3 | ||
# in Loop: Header=BB0_2 Depth=1 | ||
decl %eax | ||
movl %esi, %ecx | ||
movl %eax, %edx | ||
movl %ebx, %edi | ||
movl %eax, %esi | ||
callq .L_Z3ackii | ||
decl %esi | ||
decl %ebx | ||
jne .LBB0_2 | ||
.LBB0_5: # %if.then.L2 | ||
.LBB0_5: | ||
popq %rbx | ||
.LBB0_6: # %if.then.L2 | ||
incl %eax | ||
addq $32, %rsp | ||
popq %rsi | ||
retq | ||
.Lfunc_end0: | ||
.size .L_Z3ackii, .Lfunc_end0-.L_Z3ackii | ||
# -- End function | ||
.def main; | ||
.scl 2; | ||
.type 32; | ||
.endef | ||
.globl main # -- Begin function main | ||
.p2align 4, 0x90 | ||
.type main,@function | ||
main: # @main | ||
.seh_proc main | ||
.Lmain$local: | ||
.type .Lmain$local,@function | ||
.cfi_startproc | ||
# %bb.0: | ||
pushq %rbp | ||
.seh_pushreg %rbp | ||
subq $32, %rsp | ||
.seh_stackalloc 32 | ||
leaq 32(%rsp), %rbp | ||
.seh_setframe %rbp, 32 | ||
.seh_endprologue | ||
callq __main | ||
movl $3, %ecx | ||
movl $10, %edx | ||
pushq %rax | ||
.cfi_def_cfa_offset 16 | ||
movl $3, %edi | ||
movl $10, %esi | ||
callq .L_Z3ackii | ||
leaq .Lprintf.str.0(%rip), %rcx | ||
movl $3, %edx | ||
movl $10, %r8d | ||
movl %eax, %r9d | ||
callq printf | ||
leaq .Lprintf.str.0(%rip), %rdi | ||
movl $3, %esi | ||
movl $10, %edx | ||
movl %eax, %ecx | ||
movb $0, %al | ||
callq printf@PLT | ||
xorl %eax, %eax | ||
addq $32, %rsp | ||
popq %rbp | ||
popq %rcx | ||
.cfi_def_cfa_offset 8 | ||
retq | ||
.seh_endproc | ||
.Lfunc_end1: | ||
.size main, .Lfunc_end1-main | ||
.size .Lmain$local, .Lfunc_end1-main | ||
.cfi_endproc | ||
# -- End function | ||
.section .rdata,"dr" | ||
.Lprintf.str.0: # @printf.str.0 | ||
.type .Lprintf.str.0,@object # @printf.str.0 | ||
.section .rodata.str1.1,"aMS",@progbits,1 | ||
.Lprintf.str.0: | ||
.asciz "Ackermann of base m=%d and n=%d: %d" | ||
.size .Lprintf.str.0, 36 | ||
|
||
.section ".note.GNU-stack","",@progbits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.