Created
December 24, 2018 19:35
-
-
Save uenoku/728bf1ee09a6be6bd27e4b3cce0ba796 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
.text | |
.file "mandelbrot.7rcbfp3g-cgu.0" | |
.p2align 2 # -- Begin function _ZN10mandelbrot5start17h7d351b8658bbf2baE | |
.type _ZN10mandelbrot5start17h7d351b8658bbf2baE,@function | |
_ZN10mandelbrot5start17h7d351b8658bbf2baE: # @_ZN10mandelbrot5start17h7d351b8658bbf2baE | |
# %bb.0: # %start | |
store %sp, %sp, -5 | |
addi %sp, %sp, -5 | |
store %lr, %sp, 4 # 4-byte Folded Spill | |
li %r3, 0 | |
.LBB0_1: # %bb6.i | |
# =>This Loop Header: Depth=1 | |
# Child Loop BB0_3 Depth 2 | |
# Child Loop BB0_4 Depth 3 | |
store %r3, %sp, 1 # 4-byte Folded Spill | |
itof %r3, %r3 | |
fadd %r3, %r3, %r3 | |
liw %r4, 1120403456 | |
fdiv %r3, %r3, %r4 | |
liw %r4, -1077936128 | |
fadd %r11, %r3, %r4 | |
li %r6, 0 | |
store %r11, %sp, 2 # 4-byte Folded Spill | |
jump .LBB0_3 | |
.LBB0_3: # %bb11.i | |
# Parent Loop BB0_1 Depth=1 | |
# => This Loop Header: Depth=2 | |
# Child Loop BB0_4 Depth 3 | |
itof %r3, %r6 | |
fadd %r3, %r3, %r3 | |
liw %r4, 1120403456 | |
fdiv %r3, %r3, %r4 | |
liw %r4, -1082130432 | |
fadd %r3, %r3, %r4 | |
liw %r5, 0 | |
li %r4, 1000 | |
addi %r6, %r6, 1 | |
store %r6, %sp, 3 # 4-byte Folded Spill | |
liw %r6, 0 | |
liw %r8, 0 | |
liw %r7, 0 | |
liw %r10, 1082130432 | |
.LBB0_4: # %bb19.i | |
# Parent Loop BB0_1 Depth=1 | |
# Parent Loop BB0_3 Depth=2 | |
# => This Inner Loop Header: Depth=3 | |
addi %r4, %r4, -1 | |
cmpdi %r4,0 | |
beq .LBB0_6 | |
jump .LBB0_7 | |
.LBB0_7: # %bb22.i | |
# in Loop: Header=BB0_4 Depth=3 | |
fadd %r8, %r8, %r8 | |
fmul %r7, %r8, %r7 | |
fadd %r7, %r3, %r7 | |
fsub %r5, %r6, %r5 | |
fadd %r8, %r11, %r5 | |
fmul %r6, %r8, %r8 | |
fmul %r5, %r7, %r7 | |
fadd %r9, %r6, %r5 | |
cmpf %r9,%r10 | |
bgt .LBB0_4 | |
jump .LBB0_8 | |
.LBB0_8: # %bb25.i | |
# in Loop: Header=BB0_3 Depth=2 | |
li %r3, 0 | |
bl print_int | |
jump .LBB0_5 | |
.LBB0_6: # %bb21.i | |
# in Loop: Header=BB0_3 Depth=2 | |
li %r3, 1 | |
bl print_int | |
jump .LBB0_5 | |
.LBB0_5: # %bb20.i | |
# in Loop: Header=BB0_3 Depth=2 | |
load %r6, %sp, 3 # 4-byte Folded Reload | |
cmpdi %r6,100 | |
load %r11, %sp, 2 # 4-byte Folded Reload | |
beq .LBB0_2 | |
jump .LBB0_3 | |
.LBB0_2: # %bb10.i | |
# in Loop: Header=BB0_1 Depth=1 | |
load %r3, %sp, 1 # 4-byte Folded Reload | |
addi %r3, %r3, 1 | |
store %r3, %sp, 1 # 4-byte Folded Spill | |
bl print_newline | |
load %r3, %sp, 1 # 4-byte Folded Reload | |
cmpdi %r3,100 | |
beq .LBB0_9 | |
jump .LBB0_1 | |
.LBB0_9: # %_ZN10mandelbrot10mandelbrot17hf8c4ee19f5e67c5dE.exit | |
load %lr, %sp, 4 # 4-byte Folded Reload | |
load %sp, %sp, 0 | |
blr | |
.Lfunc_end0: | |
.size _ZN10mandelbrot5start17h7d351b8658bbf2baE, .Lfunc_end0-_ZN10mandelbrot5start17h7d351b8658bbf2baE | |
# -- End function | |
.hidden rust_eh_personality # -- Begin function rust_eh_personality | |
.globl rust_eh_personality | |
.p2align 2 | |
.type rust_eh_personality,@function | |
rust_eh_personality: # @rust_eh_personality | |
# %bb.0: # %start | |
blr | |
.Lfunc_end1: | |
.size rust_eh_personality, .Lfunc_end1-rust_eh_personality | |
# -- End function | |
.globl main # -- Begin function main | |
.p2align 2 | |
.type main,@function | |
main: # @main | |
# %bb.0: # %top | |
store %sp, %sp, -2 | |
addi %sp, %sp, -2 | |
store %lr, %sp, 1 # 4-byte Folded Spill | |
bl _ZN10mandelbrot5start17h7d351b8658bbf2baE | |
li %r3, 0 | |
load %lr, %sp, 1 # 4-byte Folded Reload | |
load %sp, %sp, 0 | |
blr | |
.Lfunc_end2: | |
.size main, .Lfunc_end2-main | |
# -- End function | |
.section ".note.GNU-stack","",@progbits |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment