1 Star 1 Fork 1

life/RISC-V-math-library

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nint.S 852 Bytes
一键复制 编辑 原始数据 按行查看 历史
life 提交于 2022-07-06 09:26 . function
.section .text, "ax", "progbits"
.align 4
.section .text
.align 4
.globl _rv_round
_rv_round:
addi gp,gp,0
fmv.x.d t1,fa0
addi t2,zero,2047
slli t2,t2,0x34
li t3,0x1
addi t4,zero,537
slli t3,t3,0x34
slli t4,t4,0x35
addi s7,zero,1022
addi s8,zero,1075
slli s7,s7,52
slli s8,s8,52
fmv.d.x fa7,s7
fmv.d.x fs1,s8
and t1,t1,t2
sub t3,t1,t3
sltu t3,t3,t4
beqz t3,L$70
fsgnj.d ft0,fa7,fa0
fsgnj.d fs2,fs1,fa0
fadd.d ft0,ft0,fa0,rtz
fadd.d fs3,fs2,ft0,rtz
fsub.d fa7,fs3,fs2
fmv.x.d a1,fa7
beqz a1,life_3
fmv.d fa0,fa7
j life_4
life_3: fmv.x.d a1,fa0
bgtz a1,life_5
li a1,0x8000000000000000
fmv.d.x fa0,a1
j life_4
life_5: fmv.d fa0,fa7
life_4: ret
L$70:
bnez t1,L$78
fmv.x.d a3,fa0
bgtz a3,life_1
li a3,0x8000000000000000
j life_2
life_1: li a3,0x0
life_2: fmv.d.x fa0,a3
L$78:
ret
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Assembly
1
https://gitee.com/li-fei-abc/risc-v-math-library.git
git@gitee.com:li-fei-abc/risc-v-math-library.git
li-fei-abc
risc-v-math-library
RISC-V-math-library
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385