not able to get correct matmul output

29 views
Skip to first unread message

Ian Moon

unread,
Oct 28, 2020, 2:49:17 PM10/28/20
to cmpt-295-sfu

SFU ID: 301333360
Github username: 1anmoon
Line and file: matmul.s 
Expected behavior: correct values for new matrix
Observed behavior: incorrect values
Question: not sure what is wrong with my matmul
input : 1,2,3,4,5,6,7,8,9 / 2,3,4
expected 20,47,74 but get 20,71,257
size of matrix is correct

ali sedaghati

unread,
Oct 28, 2020, 2:58:18 PM10/28/20
to cmpt-295-sfu
You're not following the calling conventions. In matmul.s, you have to change the value of a1 and a2 to pass it to dot, but in test_matmul, you're using the a1 and a2( which do not have the number of col and row in them anymore) again for printing.
Reply all
Reply to author
Forward
0 new messages