Skip to content

Commit a314050

Browse files
committed
[ARM][MVE] VFMA and VFMS validForTailPredication
Add four instructions to the whitelist. Differential Revision: https://reviews.llvm.org/D75902
1 parent 62ff996 commit a314050

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

llvm/lib/Target/ARM/ARMInstrMVE.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3417,6 +3417,7 @@ class MVE_VADDSUBFMA_fp<string iname, string suffix, bit size, bit bit_4,
34173417
let Inst{8} = bit_8;
34183418
let Inst{7} = Qn{3};
34193419
let Inst{4} = bit_4;
3420+
let validForTailPredication = 1;
34203421
}
34213422

34223423
def MVE_VFMAf32 : MVE_VADDSUBFMA_fp<"vfma", "f32", 0b0, 0b1, 0b0, 0b0,

llvm/unittests/Target/ARM/MachineInstrTest.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ TEST(MachineInstrValidTailPredication, IsCorrect) {
145145
case MVE_VFMA_qr_Sf32:
146146
case MVE_VFMA_qr_f16:
147147
case MVE_VFMA_qr_f32:
148+
case MVE_VFMAf16:
149+
case MVE_VFMAf32:
150+
case MVE_VFMSf16:
151+
case MVE_VFMSf32:
148152
case MVE_VMAXAs16:
149153
case MVE_VMAXAs32:
150154
case MVE_VMAXAs8:

0 commit comments

Comments
 (0)