mailing list of musl libc
 help / color / mirror / code / Atom feed
049234be831361fc995cdea51fd74f93157d52b0 blob 1426 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
 
#ifndef __loongarch_soft_float

.global	feclearexcept
.type	feclearexcept,@function
feclearexcept:
	li.w    $a1, 0x1f0000  //flags in 16-20 bit of fcsr0.
	and     $a0, $a0, $a1
	movfcsr2gr $a1, $r0
	or	$a1, $a1, $a0
	xor	$a1, $a1, $a0
	movgr2fcsr $r0, $a1
	li.w    $v0, 0
	jirl    $zero, $ra, 0

.global	feraiseexcept
.type	feraiseexcept,@function
feraiseexcept:
	li.w    $a1, 0x1f0000
	and     $a0, $a0, $a1
	movfcsr2gr $a1, $r0
	or	$a1, $a1, $a0
	movgr2fcsr $r0, $a1
        li.w    $v0, 0
	jirl    $zero, $ra, 0

.global	fetestexcept
.type	fetestexcept,@function
fetestexcept:
        li.w    $a1, 0x1f0000
        and     $a0, $a0, $a1
	movfcsr2gr $a1, $r0
        and     $v0, $a1, $a0
	jirl    $zero, $ra, 0

.global	fegetround
.type	fegetround,@function
fegetround:
	movfcsr2gr $v0, $r0
        andi    $v0, $v0, 0x300  //fcsr0.RM
	jirl    $zero, $ra, 0

.global	__fesetround
.hidden __fesetround
.type	__fesetround,@function
__fesetround:
	movfcsr2gr $a1, $r0
	li.w	$a2, -769  //0xfffffcff
	and	$a1, $a1, $a2
	or	$a1, $a1, $a0
	movgr2fcsr $r0, $a1
        li.w    $v0, 0
	jirl    $zero, $ra, 0

.global	fegetenv
.type	fegetenv,@function
fegetenv:
	movfcsr2gr $a1, $r0
	st.w	$a1, $a0, 0
        li.w    $v0, 0
	jirl    $zero, $ra, 0

.global	fesetenv
.type	fesetenv,@function
fesetenv:
	addi.d	$a1, $a0, 1
	beq	$a1, $r0, 1f
	ld.w	$a1, $a0, 0
1:	movgr2fcsr $r0, $a1
        li.w    $v0, 0
	jirl    $zero, $ra, 0

#endif
debug log:

solving 049234be ...
found 049234be in https://inbox.vuxu.org/musl/b8869794-0624-6a5f-df15-1840609306a1@loongson.cn/ ||
	https://inbox.vuxu.org/musl/61ffb0ce-85fc-49d9-8599-22c2fa2a6ed5@loongson.cn/ ||
	https://inbox.vuxu.org/musl/6d1b87b7-25da-8707-791d-40c4d44e90d2@loongson.cn/ ||
	https://inbox.vuxu.org/musl/86910db7-be22-b09f-991b-cd8b242325a0@loongson.cn/ ||
	https://inbox.vuxu.org/musl/c6c18c0d-7244-2cb2-a99c-a520a88bc704@loongson.cn/

applying [1/5] https://inbox.vuxu.org/musl/b8869794-0624-6a5f-df15-1840609306a1@loongson.cn/
diff --git a/src/fenv/loongarch64/fenv.S b/src/fenv/loongarch64/fenv.S
new file mode 100644
index 00000000..049234be

warning: core.fsyncObjectFiles is deprecated; use core.fsync instead
Checking patch src/fenv/loongarch64/fenv.S...
Applied patch src/fenv/loongarch64/fenv.S cleanly.

skipping https://inbox.vuxu.org/musl/61ffb0ce-85fc-49d9-8599-22c2fa2a6ed5@loongson.cn/ for 049234be
skipping https://inbox.vuxu.org/musl/6d1b87b7-25da-8707-791d-40c4d44e90d2@loongson.cn/ for 049234be
skipping https://inbox.vuxu.org/musl/86910db7-be22-b09f-991b-cd8b242325a0@loongson.cn/ for 049234be
skipping https://inbox.vuxu.org/musl/c6c18c0d-7244-2cb2-a99c-a520a88bc704@loongson.cn/ for 049234be
index at:
100644 049234be831361fc995cdea51fd74f93157d52b0	src/fenv/loongarch64/fenv.S

Code repositories for project(s) associated with this inbox:

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).