is_equilateral:
movsd xmm0, [rdi] ; a
movsd xmm1, [rdi+8] ; b
movsd xmm2, [rdi+16] ; c
ucomisd xmm0, xmm1
sete bl ; bl = 1 if a == b
ucomisd xmm1, xmm2
sete dl ; dl = 1 if b == c
and bl, dl ; bl && dl
movzx rax, bl ; move result to rax
ret ; return it
I am solving triangle in assembly, I don't understand why the equilateral function isn't working and I highly appreciate any help. Tests 1 and 5 are failing, but I presume it is returning false for everything.