llvm-project/llvm/test/CodeGen/Mips/strict-fp-func.ll
Erik Enikeev a910b2e28b
[Mips] Mark function calls as possibly changing FCSR (FCR31) (#170314)
This patch does the same changes as D143001 for AArch64 and #160699 for
ARM.
2025-12-26 16:32:03 +08:00

12 lines
470 B
LLVM

; RUN: llc -mtriple=mips -stop-after=finalize-isel %s -o - | FileCheck %s
define float @func_02(float %x, float %y) strictfp nounwind {
; CHECK-LABEL: name: func_02
; CHECK: JAL @func_01, {{.*}}, implicit-def $fcr31
%call = call float @func_01(float %x) strictfp
%res = call float @llvm.experimental.constrained.fadd.f32(float %call, float %y, metadata !"round.dynamic", metadata !"fpexcept.ignore") strictfp
ret float %res
}
declare float @func_01(float)