llvm-project/llvm/test/CodeGen/ARM/strict-fp-func.ll
Erik Enikeev 1523332fbd
[ARM] Mark function calls as possibly changing FPSCR (#160699)
This patch does the same changes as D143001 for AArch64.

This PR is part of the work on adding strict FP support in ARM, which
was previously discussed in #137101.
2025-10-30 16:36:55 +00:00

14 lines
570 B
LLVM

; RUN: llc -mtriple arm-none-eabi -stop-after=finalize-isel %s -o - | FileCheck %s
define float @func_02(float %x, float %y) strictfp nounwind {
%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
}
; CHECK-LABEL: name: func_02
; CHECK: BL @func_01, {{.*}}, implicit-def $fpscr_rm
declare float @func_01(float)
declare float @llvm.experimental.constrained.fadd.f32(float, float, metadata, metadata)