Untitled
unknown
plain_text
a year ago
1.6 kB
3
Indexable
Never
.data len: .dword 16 vec1: .dword 6,1,15,8, 6,10,2,19, 6,6,1,11, 9,19,12,8 vec2: .dword 4,18,8,9, 6,6,3,13, 12,9,3,0, 13,0,8,16 vec3: .dword 8,13,15,9, 6,11,12,10, 8,13,2,15, 11,5,19,0 rslt1: .dword 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0 rslt2: .dword 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0 rslt3: .dword 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0 .text addi x10, x3, 8 ld x30, 0(x3) # STALL loop: ld x11, 0(x10) ld x12, 128(x10) ld x13, 256(x10) ld x21, -8(x10) add x14, x11, x12 ld x22, 128(x10) ld x23, 248(x10) add x14, x14, x13 sub x16, x13, x12 mul x13, x13, x13 addi x10, x10, 16 ###### MOVIDO FUNCIONA add x24, x21, x22 sub x15, x13, x11 # addi x10, x10, 8 addi x30, x30, -2 ### quizá hay que moverlo add x24, x24, x23 sub x26, x23, x22 mul x23, x23, x23 sub x16, x13, x16 ####MOVIDO FUNCIONA sd x14, 368(x10) ######movido FUNCIONA sd x15, 496(x10) ######movido FUNCIONA sd x16, 624(x10) ####movido FUNCIONA # SEGUNAD ITERACIÓN # STALL # STALL # STALL ##sub x26, x23, x22 ##mul x23, x23, x23 # STALL ###### MOVIDO FUNCIONA # STALL sub x25, x23, x21 sub x26, x23, x26 ####MOVIDO FUNCIONA sd x24, 376(x10) ######movido FUNCIONA sd x25, 504(x10) ######movido FUNCIONA sd x26, 632(x10) ####movido FUNCIONA bne x30, x0, loop