[llvm] 665bebb - [SystemZ] Add isCommutable flag on VFA and VFM.
Jonas Paulsson via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 31 08:22:20 PDT 2020
Author: Jonas Paulsson
Date: 2020-03-31T17:17:52+02:00
New Revision: 665bebb46f54c3fb08247d10bbd8d21609c0fcde
URL: https://github.com/llvm/llvm-project/commit/665bebb46f54c3fb08247d10bbd8d21609c0fcde
DIFF: https://github.com/llvm/llvm-project/commit/665bebb46f54c3fb08247d10bbd8d21609c0fcde.diff
LOG: [SystemZ] Add isCommutable flag on VFA and VFM.
NFC
Review: Ulrich Weigand
Added:
Modified:
llvm/lib/Target/SystemZ/SystemZInstrVector.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/SystemZ/SystemZInstrVector.td b/llvm/lib/Target/SystemZ/SystemZInstrVector.td
index c945122ee577..91b22fff6276 100644
--- a/llvm/lib/Target/SystemZ/SystemZInstrVector.td
+++ b/llvm/lib/Target/SystemZ/SystemZInstrVector.td
@@ -1017,7 +1017,7 @@ multiclass VectorRounding<Instruction insn, TypedReg tr> {
let Predicates = [FeatureVector] in {
// Add.
- let Uses = [FPC], mayRaiseFPException = 1 in {
+ let Uses = [FPC], mayRaiseFPException = 1, isCommutable = 1 in {
def VFA : BinaryVRRcFloatGeneric<"vfa", 0xE7E3>;
def VFADB : BinaryVRRc<"vfadb", 0xE7E3, any_fadd, v128db, v128db, 3, 0>;
def WFADB : BinaryVRRc<"wfadb", 0xE7E3, any_fadd, v64db, v64db, 3, 8>;
@@ -1225,7 +1225,7 @@ let Predicates = [FeatureVector] in {
}
// Multiply.
- let Uses = [FPC], mayRaiseFPException = 1 in {
+ let Uses = [FPC], mayRaiseFPException = 1, isCommutable = 1 in {
def VFM : BinaryVRRcFloatGeneric<"vfm", 0xE7E7>;
def VFMDB : BinaryVRRc<"vfmdb", 0xE7E7, any_fmul, v128db, v128db, 3, 0>;
def WFMDB : BinaryVRRc<"wfmdb", 0xE7E7, any_fmul, v64db, v64db, 3, 8>;
More information about the llvm-commits
mailing list