Home
last modified time | relevance | path

Searched refs:fcsr (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/loongarch/
H A Dfp_mode.c22 int fcsr; in __fe_getround() local
24 __asm__ __volatile__("movfcsr2gr %0, $fcsr0" : "=r" (fcsr)); in __fe_getround()
26 __asm__ __volatile__("movfcsr2gr %0, $r0" : "=r" (fcsr)); in __fe_getround()
28 fcsr &= LOONGARCH_RMODE_MASK; in __fe_getround()
29 switch (fcsr) { in __fe_getround()
47 int fcsr; in __fe_raise_inexact() local
49 __asm__ __volatile__("movfcsr2gr %0, $fcsr0" : "=r" (fcsr)); in __fe_raise_inexact()
51 "movgr2fcsr $fcsr0, %0" :: "r" (fcsr | LOONGARCH_INEXACT)); in __fe_raise_inexact()
53 __asm__ __volatile__("movfcsr2gr %0, $r0" : "=r" (fcsr)); in __fe_raise_inexact()
55 "movgr2fcsr $r0, %0" :: "r" (fcsr | LOONGARCH_INEXACT)); in __fe_raise_inexact()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Instruction/MIPS64/
H A DEmulateInstructionMIPS64.cpp1984 uint32_t cc, fcsr; in Emulate_FP_branch() local
2002 fcsr = in Emulate_FP_branch()
2008 fcsr = ((fcsr >> 24) & 0xfe) | ((fcsr >> 23) & 0x01); in Emulate_FP_branch()
2012 if ((fcsr & (1 << cc)) == 0) in Emulate_FP_branch()
2018 if ((fcsr & (1 << cc)) != 0) in Emulate_FP_branch()
2111 uint32_t cc, fcsr; in Emulate_3D_branch() local
2122 fcsr = (uint32_t)ReadRegisterUnsigned(eRegisterKindDWARF, dwarf_fcsr_mips64, in Emulate_3D_branch()
2128 fcsr = ((fcsr >> 24) & 0xfe) | ((fcsr >> 23) & 0x01); in Emulate_3D_branch()
2132 if (((fcsr >> cc) & 3) != 3) in Emulate_3D_branch()
2138 if (((fcsr >> cc) & 3) != 0) in Emulate_3D_branch()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Instruction/MIPS/
H A DEmulateInstructionMIPS.cpp2671 uint32_t cc, fcsr; in Emulate_FP_branch() local
2682 fcsr = ReadRegisterUnsigned(eRegisterKindDWARF, dwarf_fcsr_mips, 0, &success); in Emulate_FP_branch()
2687 fcsr = ((fcsr >> 24) & 0xfe) | ((fcsr >> 23) & 0x01); in Emulate_FP_branch()
2691 if ((fcsr & (1 << cc)) == 0) in Emulate_FP_branch()
2697 if ((fcsr & (1 << cc)) != 0) in Emulate_FP_branch()
2789 uint32_t cc, fcsr; in Emulate_3D_branch() local
2800 fcsr = (uint32_t)ReadRegisterUnsigned(eRegisterKindDWARF, dwarf_fcsr_mips, 0, in Emulate_3D_branch()
2806 fcsr = ((fcsr >> 24) & 0xfe) | ((fcsr >> 23) & 0x01); in Emulate_3D_branch()
2810 if (((fcsr >> cc) & 3) != 3) in Emulate_3D_branch()
2816 if (((fcsr >> cc) & 3) != 0) in Emulate_3D_branch()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
H A DRegisterInfoPOSIX_riscv64.h35 uint32_t fcsr; member
H A DRegisterInfoPOSIX_loongarch64.h43 uint32_t fcsr; member
H A DRegisterContext_mips.h319 uint32_t fcsr; member
361 uint32_t fcsr; /* FPU control status register */ member
H A DRegisterContextFreeBSD_mips64.cpp141 uint64_t fcsr; member
H A DRegisterInfos_mips.h211 DEFINE_FPR_INFO(fcsr, nullptr, dwarf_fcsr_mips, dwarf_fcsr_mips,
285 DEFINE_MSA_INFO(fcsr, nullptr, dwarf_fcsr_mips, dwarf_fcsr_mips,
H A DRegisterInfos_loongarch64.h168 DEFINE_FCSR(fcsr, LLDB_INVALID_REGNUM),
H A DRegisterInfos_riscv64.h150 DEFINE_FPR_ALT(fcsr, nullptr, 4, LLDB_INVALID_REGNUM),
H A DRegisterInfos_mips64.h203 DEFINE_FPR_INFO(fcsr, nullptr, dwarf_fcsr_mips64, dwarf_fcsr_mips64,
/freebsd/crypto/openssl/crypto/poly1305/
H A Dpoly1305_ieee754.c105 static const u32 fcsr = 1; variable
156 asm volatile ("ctc1 %0,$31"::"r"(fcsr)); in poly1305_init()
278 asm volatile ("ctc1 %0,$31"::"r"(fcsr)); in poly1305_blocks()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Instruction/RISCV/
H A DEmulateInstructionRISCV.cpp1669 auto fcsr = ReadRegisterUnsigned(eRegisterKindLLDB, fpr_fcsr_riscv, in GetRoundingMode() local
1673 auto frm = (fcsr >> 5) & 0x7; in GetRoundingMode()
1694 auto fcsr = ReadRegisterUnsigned(eRegisterKindLLDB, fpr_fcsr_riscv, in SetAccruedExceptions() local
1700 fcsr |= 1 << 4; in SetAccruedExceptions()
1703 fcsr |= 1 << 3; in SetAccruedExceptions()
1706 fcsr |= 1 << 2; in SetAccruedExceptions()
1709 fcsr |= 1 << 1; in SetAccruedExceptions()
1712 fcsr |= 1 << 0; in SetAccruedExceptions()
1720 return WriteRegisterUnsigned(ctx, eRegisterKindLLDB, fpr_fcsr_riscv, fcsr); in SetAccruedExceptions()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchRegisterInfo.td185 def FCSR#I : LoongArchReg<I, "fcsr"#I>;
H A DLoongArchInstrInfo.td2273 def WRFCSR : Pseudo<(outs), (ins uimm2:$fcsr, GPR:$src),
2274 [(loongarch_movgr2fcsr uimm2:$fcsr, GRLenVT:$src)]>;
2275 def RDFCSR : Pseudo<(outs GPR:$rd), (ins uimm2:$fcsr),
2276 [(set GPR:$rd, (loongarch_movfcsr2gr uimm2:$fcsr))]>;
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVSystemOperands.td80 def SysRegFCSR : SysReg<"fcsr", 0x003>;
/freebsd/sys/riscv/include/
H A Dencoding.h1026 DECLARE_CSR(fcsr, CSR_FCSR)