Date: 2024-11-10 19:28 (UTC)
vak: (Default)
From: [personal profile] vak
Хитрость в том, что тут FLD разворачивается в две машинные инструкции. Регистр a5 используется для базового адреса. К данным нельзя обращаться относительно счётчика команд, как PC+offset. Только относительно обычного регистра. Если дизассемблировать, можно видеть, как регистр a5 инициализируется командой AUIPC.
$ objdump -d cubic_root
...
0000000000000762 <cubic_root>:
 762:	22a506d3          	fmv.d	fa3,fa0
 766:	00000797          	auipc	a5,0x0
 76a:	0387b607          	fld	fa2,56(a5) # 79e <three>
 76e:	00000797          	auipc	a5,0x0
 772:	0287b507          	fld	fa0,40(a5) # 796 <one>
...
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org