llvm-project/polly/www/experiments/matmul/matmul.normalopt.s

204 lines
5.9 KiB
ArmAsm

.file "matmul.normalopt.ll"
.section .rodata.cst8,"aM",@progbits,8
.align 8
.LCPI0_0:
.quad 4602678819172646912 # double 5.000000e-01
.text
.globl init_array
.align 16, 0x90
.type init_array,@function
init_array: # @init_array
# BB#0:
xorl %eax, %eax
movsd .LCPI0_0(%rip), %xmm0
movq %rax, %rcx
.align 16, 0x90
.LBB0_1: # %.preheader
# =>This Loop Header: Depth=1
# Child Loop BB0_2 Depth 2
movq $-1536, %rdx # imm = 0xFFFFFFFFFFFFFA00
xorl %esi, %esi
.align 16, 0x90
.LBB0_2: # Parent Loop BB0_1 Depth=1
# => This Inner Loop Header: Depth=2
movl %esi, %edi
sarl $31, %edi
shrl $22, %edi
addl %esi, %edi
andl $-1024, %edi # imm = 0xFFFFFFFFFFFFFC00
negl %edi
leal 1(%rsi,%rdi), %edi
cvtsi2sd %edi, %xmm1
mulsd %xmm0, %xmm1
cvtsd2ss %xmm1, %xmm1
movss %xmm1, A+6144(%rax,%rdx,4)
movss %xmm1, B+6144(%rax,%rdx,4)
addl %ecx, %esi
incq %rdx
jne .LBB0_2
# BB#3: # in Loop: Header=BB0_1 Depth=1
addq $6144, %rax # imm = 0x1800
incq %rcx
cmpq $1536, %rcx # imm = 0x600
jne .LBB0_1
# BB#4:
ret
.Ltmp0:
.size init_array, .Ltmp0-init_array
.globl print_array
.align 16, 0x90
.type print_array,@function
print_array: # @print_array
# BB#0:
pushq %r14
pushq %rbx
pushq %rax
movq $-9437184, %rbx # imm = 0xFFFFFFFFFF700000
.align 16, 0x90
.LBB1_1: # %.preheader
# =>This Loop Header: Depth=1
# Child Loop BB1_2 Depth 2
xorl %r14d, %r14d
movq stdout(%rip), %rdi
.align 16, 0x90
.LBB1_2: # Parent Loop BB1_1 Depth=1
# => This Inner Loop Header: Depth=2
movss C+9437184(%rbx,%r14,4), %xmm0
cvtss2sd %xmm0, %xmm0
movl $.L.str, %esi
movb $1, %al
callq fprintf
movslq %r14d, %rax
imulq $1717986919, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $63, %rdx
sarq $37, %rcx
addl %edx, %ecx
imull $80, %ecx, %ecx
subl %ecx, %eax
cmpl $79, %eax
jne .LBB1_4
# BB#3: # in Loop: Header=BB1_2 Depth=2
movq stdout(%rip), %rsi
movl $10, %edi
callq fputc
.LBB1_4: # in Loop: Header=BB1_2 Depth=2
incq %r14
movq stdout(%rip), %rsi
cmpq $1536, %r14 # imm = 0x600
movq %rsi, %rdi
jne .LBB1_2
# BB#5: # in Loop: Header=BB1_1 Depth=1
movl $10, %edi
callq fputc
addq $6144, %rbx # imm = 0x1800
jne .LBB1_1
# BB#6:
addq $8, %rsp
popq %rbx
popq %r14
ret
.Ltmp1:
.size print_array, .Ltmp1-print_array
.section .rodata.cst8,"aM",@progbits,8
.align 8
.LCPI2_0:
.quad 4602678819172646912 # double 5.000000e-01
.text
.globl main
.align 16, 0x90
.type main,@function
main: # @main
# BB#0:
xorl %eax, %eax
movsd .LCPI2_0(%rip), %xmm0
movq %rax, %rcx
.align 16, 0x90
.LBB2_1: # %.preheader.i
# =>This Loop Header: Depth=1
# Child Loop BB2_2 Depth 2
movq $-1536, %rdx # imm = 0xFFFFFFFFFFFFFA00
xorl %esi, %esi
.align 16, 0x90
.LBB2_2: # Parent Loop BB2_1 Depth=1
# => This Inner Loop Header: Depth=2
movl %esi, %edi
sarl $31, %edi
shrl $22, %edi
addl %esi, %edi
andl $-1024, %edi # imm = 0xFFFFFFFFFFFFFC00
negl %edi
leal 1(%rsi,%rdi), %edi
cvtsi2sd %edi, %xmm1
mulsd %xmm0, %xmm1
cvtsd2ss %xmm1, %xmm1
movss %xmm1, A+6144(%rax,%rdx,4)
movss %xmm1, B+6144(%rax,%rdx,4)
addl %ecx, %esi
incq %rdx
jne .LBB2_2
# BB#3: # in Loop: Header=BB2_1 Depth=1
addq $6144, %rax # imm = 0x1800
incq %rcx
xorl %edx, %edx
cmpq $1536, %rcx # imm = 0x600
jne .LBB2_1
.align 16, 0x90
.LBB2_4: # %.preheader
# =>This Loop Header: Depth=1
# Child Loop BB2_5 Depth 2
# Child Loop BB2_6 Depth 3
xorl %eax, %eax
xorl %ecx, %ecx
.align 16, 0x90
.LBB2_5: # Parent Loop BB2_4 Depth=1
# => This Loop Header: Depth=2
# Child Loop BB2_6 Depth 3
movl $0, C(%rcx,%rdx)
leaq B(%rcx), %rsi
pxor %xmm0, %xmm0
movq %rax, %rdi
.align 16, 0x90
.LBB2_6: # Parent Loop BB2_4 Depth=1
# Parent Loop BB2_5 Depth=2
# => This Inner Loop Header: Depth=3
movss A(%rdx,%rdi,4), %xmm1
mulss (%rsi), %xmm1
addss %xmm1, %xmm0
addq $6144, %rsi # imm = 0x1800
incq %rdi
cmpq $1536, %rdi # imm = 0x600
jne .LBB2_6
# BB#7: # in Loop: Header=BB2_5 Depth=2
movss %xmm0, C(%rcx,%rdx)
addq $4, %rcx
cmpq $6144, %rcx # imm = 0x1800
jne .LBB2_5
# BB#8: # %init_array.exit
# in Loop: Header=BB2_4 Depth=1
addq $6144, %rdx # imm = 0x1800
cmpq $9437184, %rdx # imm = 0x900000
jne .LBB2_4
# BB#9:
xorl %eax, %eax
ret
.Ltmp2:
.size main, .Ltmp2-main
.type A,@object # @A
.comm A,9437184,16
.type B,@object # @B
.comm B,9437184,16
.type .L.str,@object # @.str
.section .rodata.str1.1,"aMS",@progbits,1
.L.str:
.asciz "%lf "
.size .L.str, 5
.type C,@object # @C
.comm C,9437184,16
.section ".note.GNU-stack","",@progbits