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.
14 lines
570 B
LLVM
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)
|