diff options
author | caiyinyu <caiyinyu@loongson.cn> | 2022-08-22 16:00:51 +0800 |
---|---|---|
committer | caiyinyu <caiyinyu@loongson.cn> | 2022-09-01 09:10:08 +0800 |
commit | 930993921f2f381b545ea1b1f2d9c534b2b72b08 (patch) | |
tree | 1015c0f98c4232af277f7dc56286c5dbc1b652b6 /sysdeps/loongarch/__longjmp.S | |
parent | 1e903124cec4492463d075c6c061a2a772db77bf (diff) | |
download | glibc-930993921f2f381b545ea1b1f2d9c534b2b72b08.tar glibc-930993921f2f381b545ea1b1f2d9c534b2b72b08.tar.gz glibc-930993921f2f381b545ea1b1f2d9c534b2b72b08.tar.bz2 glibc-930993921f2f381b545ea1b1f2d9c534b2b72b08.zip |
LoongArch: Add soft float support.
Diffstat (limited to 'sysdeps/loongarch/__longjmp.S')
-rw-r--r-- | sysdeps/loongarch/__longjmp.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/loongarch/__longjmp.S b/sysdeps/loongarch/__longjmp.S index 4207376f5e..d6a99fcbc8 100644 --- a/sysdeps/loongarch/__longjmp.S +++ b/sysdeps/loongarch/__longjmp.S @@ -41,6 +41,7 @@ ENTRY (__longjmp) REG_L s7, a0, 11*SZREG REG_L s8, a0, 12*SZREG +#ifndef __loongarch_soft_float FREG_L $f24, a0, 13*SZREG + 0*SZFREG FREG_L $f25, a0, 13*SZREG + 1*SZFREG FREG_L $f26, a0, 13*SZREG + 2*SZFREG @@ -49,6 +50,7 @@ ENTRY (__longjmp) FREG_L $f29, a0, 13*SZREG + 5*SZFREG FREG_L $f30, a0, 13*SZREG + 6*SZFREG FREG_L $f31, a0, 13*SZREG + 7*SZFREG +#endif sltui a0,a1,1 ADD a0, a0, a1 # a0 = (a1 == 0) ? 1 : a1 |