Skip to content

Commit 107563a

Browse files
committed
fixup: use FPSCR_RM instead of FPSCR and correct test target
1 parent f26ecda commit 107563a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/lib/Target/ARM/ARMISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22005,7 +22005,7 @@ bool ARMTargetLowering::isComplexDeinterleavingOperationSupported(
2200522005
}
2200622006

2200722007
ArrayRef<MCPhysReg> ARMTargetLowering::getRoundingControlRegisters() const {
22008-
static const MCPhysReg RCRegs[] = {ARM::FPSCR};
22008+
static const MCPhysReg RCRegs[] = {ARM::FPSCR_RM};
2200922009
return RCRegs;
2201022010
}
2201122011

llvm/test/CodeGen/ARM/strict-fp-func.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
; RUN: llc -mtriple aarch64-none-linux-gnu -stop-after=finalize-isel %s -o - | FileCheck %s
1+
; RUN: llc -mtriple arm-none-eabi -stop-after=finalize-isel %s -o - | FileCheck %s
22

33
define float @func_02(float %x, float %y) strictfp nounwind {
44
%call = call float @func_01(float %x) strictfp
55
%res = call float @llvm.experimental.constrained.fadd.f32(float %call, float %y, metadata !"round.dynamic", metadata !"fpexcept.ignore") strictfp
66
ret float %res
77
}
88
; CHECK-LABEL: name: func_02
9-
; CHECK: BL @func_01, {{.*}}, implicit-def $fpcr
9+
; CHECK: BL @func_01, {{.*}}, implicit-def $fpscr_rm
1010

1111

1212
declare float @func_01(float)

0 commit comments

Comments
 (0)