Skip to content

Commit 953013a

Browse files
authored
[AArch64][GlobalISel] Prevented llvm.aarch64.sisd.fcvtxn fallback (#159811)
Added extra check in AArch64RegisterBankInfo.cpp to mark llvm.aarch64.sisd.fcvtxn as having floating point operands
1 parent 66c35eb commit 953013a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ static bool isFPIntrinsic(const MachineRegisterInfo &MRI,
486486
case Intrinsic::aarch64_crypto_sha1c:
487487
case Intrinsic::aarch64_crypto_sha1p:
488488
case Intrinsic::aarch64_crypto_sha1m:
489+
case Intrinsic::aarch64_sisd_fcvtxn:
489490
return true;
490491
case Intrinsic::aarch64_neon_saddlv: {
491492
const LLT SrcTy = MRI.getType(MI.getOperand(2).getReg());

llvm/test/CodeGen/AArch64/arm64-vcvtxd_f32_f64.ll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
22
; RUN: llc < %s -mtriple=arm64-eabi | FileCheck %s
3-
; RUN: llc < %s -mtriple=arm64-eabi -global-isel -global-isel-abort=2 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-GI
4-
5-
; CHECK-GI: warning: Instruction selection used fallback path for fcvtxn
3+
; RUN: llc < %s -mtriple=arm64-eabi -global-isel | FileCheck %s --check-prefixes=CHECK
64

75
define float @fcvtxn(double %a) {
86
; CHECK-LABEL: fcvtxn:

0 commit comments

Comments
 (0)