An assembly program to divide floating-point numbersΒΆ
.intel_syntax noprefix
.text
.global main
main: push rbp
mov rbp, rsp
movq xmm0, [rip + a]
divsd xmm0, [rip + .Ltwo]
movq [rip + c], xmm0
mov rax, 0
pop rbp
ret
.data
a: .double 12.3
.bss
c: .zero 8
.section .rodata
.Ltwo: .double 2.0
You have attempted of activities on this page