Author: Alexey Karyakin Date: 2026-11-12T11:48:00-06:00 New Revision: 34f2fb6b56d03b62885900c86f5c83e4c9d63641
URL: https://github.com/llvm/llvm-project/commit/34f2fb6b56d03b62885900c86f5c83e4c9d63641 DIFF: https://github.com/llvm/llvm-project/commit/34f2fb6b56d03b62885900c86f5c83e4c9d63641.diff LOG: Hexagon hmx (#240595) Add driver options and assembler-level support for Hexagon Matrix eXtensions (HMX), implemented in Hexagon v68 and v73. HMX is an accelerator for matmul and convolution machine learning workloads. There are several classes of instructions: - matrix multiply: activation and weight; these two instructions must be paired in one packet, - bias load and store, - convert transfer, - write convert state, - accumulator clear. Only IEEE fp16 (hf) ISA variant is supported at this time. The new target feature "hmx" is added to enable the HMX extensions. In addition, new command line options are added: "-mhmx" in llvm-mc and "-mhmx" / "-mno-hmx" in the clang driver. Intrinsics and builtins will follow. Reference: https://docs.qualcomm.com/doc/80-N2040-62/80-N2040-62_REV_AA_Qualcomm_Hexagon_V81_HMX_Programmers_Reference_Manual.pdf Co-Authored-By: Brendon Cahoon <[email protected]> Added: clang/test/Driver/hexagon-hmx.c llvm/test/MC/Hexagon/HexagonTestWriter/v68_hmx.s llvm/test/MC/Hexagon/HexagonTestWriter/v73_hmx.s llvm/test/MC/Hexagon/PacketRules/hmx_weight_act.s llvm/test/MC/Hexagon/hmx-support.s Modified: clang/include/clang/Options/Options.td clang/lib/Driver/ToolChains/Hexagon.cpp llvm/lib/Target/Hexagon/Hexagon.td llvm/lib/Target/Hexagon/HexagonDepIICScalar.td llvm/lib/Target/Hexagon/HexagonDepInstrInfo.td llvm/lib/Target/Hexagon/HexagonInstrFormats.td llvm/lib/Target/Hexagon/HexagonSubtarget.h llvm/lib/Target/Hexagon/MCTargetDesc/HexagonBaseInfo.h llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCChecker.cpp llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCChecker.h llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.cpp llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.h llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp Removed: ################################################################################ diff --git a/clang/include/clang/Options/Options.td b/clang/include/clang/Options/Options.td index 5bafc0c8f1931..15c9c188a4316 100644 --- a/clang/include/clang/Options/Options.td +++ b/clang/include/clang/Options/Options.td @@ -7318,6 +7318,12 @@ def mno_hexagon_hvx : Flag<["-"], "mno-hvx">, def mhexagon_hvx_length_EQ : Joined<["-"], "mhvx-length=">, Group<m_hexagon_Features_HVX_Group>, HelpText<"Set Hexagon Vector Length">, Values<"64B,128B">; +def mhexagon_hmx : Flag<["-"], "mhmx">, + Group<m_hexagon_Features_Group>, + HelpText<"Enable Hexagon Matrix eXtensions (HMX)">; +def mno_hexagon_hmx : Flag<["-"], "mno-hmx">, + Group<m_hexagon_Features_Group>, + HelpText<"Disable Hexagon Matrix eXtensions (HMX)">; def mhexagon_hvx_qfloat : Flag<["-"], "mhvx-qfloat">, Group<m_hexagon_Features_HVX_Group>, HelpText<"Enable Hexagon HVX QFloat instructions">; diff --git a/clang/lib/Driver/ToolChains/Hexagon.cpp b/clang/lib/Driver/ToolChains/Hexagon.cpp index 8d25cb6e443e7..a230582221bb2 100644 --- a/clang/lib/Driver/ToolChains/Hexagon.cpp +++ b/clang/lib/Driver/ToolChains/Hexagon.cpp @@ -247,6 +247,11 @@ void hexagon::Assembler::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs.push_back("-mhvx-ieee-fp"); } + if (Args.hasFlag(options::OPT_mhexagon_hmx, options::OPT_mno_hexagon_hmx, + false)) { + CmdArgs.push_back("-mhmx"); + } + if (Args.hasFlag(options::OPT_mhexagon_hlx, options::OPT_mno_hexagon_hlx, false)) CmdArgs.push_back("-mhlx"); diff --git a/clang/test/Driver/hexagon-hmx.c b/clang/test/Driver/hexagon-hmx.c new file mode 100644 index 0000000000000..2422e64241ef1 --- /dev/null +++ b/clang/test/Driver/hexagon-hmx.c @@ -0,0 +1,34 @@ +// Test the hmx flag. + +// RUN: %clang -target hexagon -### %s 2>&1 \ +// RUN: | FileCheck %s -check-prefix CHECK-DEFAULT + +// RUN: %clang -target hexagon -### -mhmx %s 2>&1 \ +// RUN: | FileCheck %s -check-prefix CHECK-HMX + +// RUN: %clang -target hexagon -### -mhmx -mno-hmx %s 2>&1 \ +// RUN: | FileCheck %s -check-prefix CHECK-NO-HMX + +// RUN: %clang -c %s -### -target hexagon -mhmx \ +// RUN: -fno-integrated-as 2>&1 | FileCheck \ +// RUN: -check-prefix=CHECK-NOIAS-HMX %s + +// RUN: %clang -c %s -### -target hexagon -mno-hmx \ +// RUN: -fno-integrated-as 2>&1 | FileCheck \ +// RUN: -check-prefix=CHECK-NOIAS-NO-HMX %s +// +// RUN: %clang -target hexagon --help 2>&1 \ +// RUN: | FileCheck %s -check-prefix CHECK-HELP + +// CHECK-DEFAULT-NOT: "-target-feature" "+hmx" + +// CHECK-HMX: "-target-feature" "+hmx" + +// CHECK-NO-HMX: "-target-feature" "-hmx" +// CHECK-NO-HMX-NOT: "-target-feature" "+hmx" + +// CHECK-NOIAS-HMX: llvm-mc{{.*}}-mhmx +// CHECK-NOIAS-NO-HMX-NOT: -mhmx + +// CHECK-HELP: hmx +// CHECK-HELP: HMX diff --git a/llvm/lib/Target/Hexagon/Hexagon.td b/llvm/lib/Target/Hexagon/Hexagon.td index 1af2d7f8eae45..05fd4b030c847 100644 --- a/llvm/lib/Target/Hexagon/Hexagon.td +++ b/llvm/lib/Target/Hexagon/Hexagon.td @@ -108,6 +108,8 @@ def ExtensionHVX128B: SubtargetFeature<"hvx-length128b", "UseHVX128BOps", def ExtensionAudio: SubtargetFeature<"audio", "UseAudioOps", "true", "Hexagon Audio extension instructions">; +def ExtensionHMX: SubtargetFeature<"hmx", "UseHMXOps", "true", + "Hexagon Matrix eXtension instructions">; def ExtensionHLX: SubtargetFeature<"hlx", "UseHLXOps", "true", "Hexagon eLementwise eXtension instructions">; @@ -211,6 +213,8 @@ def UseHLX2048B : Predicate<"HST->useHLX2048BOps()">, def UseHVXQFloat : Predicate<"HST->useHVXQFloatOps()">, AssemblerPredicate<(all_of ExtensionHVXQFloat)>; def UseHVXFloatingPoint: Predicate<"HST->useHVXFloatingPoint()">; +def UseHMX : Predicate<"HST->useHMXOps()">, + AssemblerPredicate<(all_of ExtensionHMX), "hmx">; def HasMemNoShuf : Predicate<"HST->hasMemNoShuf()">, AssemblerPredicate<(all_of FeatureMemNoShuf)>; def NotOptTinyCore : Predicate<"!HST->isTinyCore() ||" diff --git a/llvm/lib/Target/Hexagon/HexagonDepIICScalar.td b/llvm/lib/Target/Hexagon/HexagonDepIICScalar.td index 9765cdf8811c3..e5422306df546 100644 --- a/llvm/lib/Target/Hexagon/HexagonDepIICScalar.td +++ b/llvm/lib/Target/Hexagon/HexagonDepIICScalar.td @@ -32,6 +32,7 @@ def tc_1981450d : InstrItinClass; def tc_1c2c7a4a : InstrItinClass; def tc_1c7522a8 : InstrItinClass; def tc_1d41f8b7 : InstrItinClass; +def tc_1e779a4b : InstrItinClass; def tc_1fcb8495 : InstrItinClass; def tc_1fe4ab69 : InstrItinClass; def tc_20131976 : InstrItinClass; @@ -42,6 +43,7 @@ def tc_24e109c7 : InstrItinClass; def tc_24f426ab : InstrItinClass; def tc_27106296 : InstrItinClass; def tc_280f7fe1 : InstrItinClass; +def tc_28a44d1d : InstrItinClass; def tc_28e55c6f : InstrItinClass; def tc_2c13e7f5 : InstrItinClass; def tc_2c3e17fc : InstrItinClass; @@ -53,6 +55,7 @@ def tc_388f9897 : InstrItinClass; def tc_38e0bae9 : InstrItinClass; def tc_3d14a17b : InstrItinClass; def tc_3edca78f : InstrItinClass; +def tc_3fb06227 : InstrItinClass; def tc_3fbf1042 : InstrItinClass; def tc_407e96f9 : InstrItinClass; def tc_40d64c94 : InstrItinClass; @@ -110,6 +113,7 @@ def tc_713b66bf : InstrItinClass; def tc_7401744f : InstrItinClass; def tc_7476d766 : InstrItinClass; def tc_74a42bda : InstrItinClass; +def tc_74e96cae : InstrItinClass; def tc_759e57be : InstrItinClass; def tc_76bb5435 : InstrItinClass; def tc_77f94a5e : InstrItinClass; @@ -254,6 +258,7 @@ class DepScalarItinV5 { InstrItinData <tc_1c2c7a4a, [InstrStage<1, [SLOT0, SLOT1, SLOT2, SLOT3]>]>, InstrItinData <tc_1c7522a8, [InstrStage<1, [SLOT0, SLOT1]>]>, InstrItinData <tc_1d41f8b7, [InstrStage<1, [SLOT2, SLOT3]>]>, + InstrItinData <tc_1e779a4b, [InstrStage<1, [SLOT0]>]>, InstrItinData <tc_1fcb8495, [InstrStage<1, [SLOT2, SLOT3]>]>, InstrItinData <tc_1fe4ab69, [InstrStage<1, [SLOT0, SLOT1]>]>, InstrItinData <tc_20131976, [InstrStage<1, [SLOT2, SLOT3]>]>, @@ -264,6 +269,7 @@ class DepScalarItinV5 { InstrItinData <tc_24f426ab, [InstrStage<1, [SLOT2, SLOT3]>]>, InstrItinData <tc_27106296, [InstrStage<1, [SLOT3]>]>, InstrItinData <tc_280f7fe1, [InstrStage<1, [SLOT0, SLOT1]>]>, + InstrItinData <tc_28a44d1d, [InstrStage<1, [SLOT0]>]>, InstrItinData <tc_28e55c6f, [InstrStage<1, [SLOT3]>]>, InstrItinData <tc_2c13e7f5, [InstrStage<1, [SLOT2, SLOT3]>]>, InstrItinData <tc_2c3e17fc, [InstrStage<1, [SLOT3]>]>, @@ -275,6 +281,7 @@ class DepScalarItinV5 { InstrItinData <tc_38e0bae9, [InstrStage<1, [SLOT2, SLOT3]>]>, InstrItinData <tc_3d14a17b, [InstrStage<1, [SLOT0, SLOT1]>]>, InstrItinData <tc_3edca78f, [InstrStage<1, [SLOT3]>]>, + InstrItinData <tc_3fb06227, [InstrStage<1, [SLOT0, SLOT1]>]>, InstrItinData <tc_3fbf1042, [InstrStage<1, [SLOT0, SLOT1]>]>, InstrItinData <tc_407e96f9, [InstrStage<1, [SLOT2, SLOT3]>]>, InstrItinData <tc_40d64c94, [InstrStage<1, [SLOT0]>]>, @@ -326,6 +333,7 @@ class DepScalarItinV5 { InstrItinData <tc_7401744f, [InstrStage<1, [SLOT2, SLOT3]>]>, InstrItinData <tc_7476d766, [InstrStage<1, [SLOT3]>]>, InstrItinData <tc_74a42bda, [InstrStage<1, [SLOT0, SLOT1]>]>, + InstrItinData <tc_74e96cae, [InstrStage<1, [SLOT0]>]>, InstrItinData <tc_76bb5435, [InstrStage<1, [SLOT0, SLOT1]>]>, InstrItinData <tc_77f94a5e, [InstrStage<1, [SLOT0]>]>, InstrItinData <tc_788b1d09, [InstrStage<1, [SLOT2, SLOT3]>]>, @@ -527,6 +535,10 @@ class DepScalarItinV55 { [InstrStage<1, [SLOT2, SLOT3]>], [4, 4, 1, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1e779a4b, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1fcb8495, /*tc_2*/ [InstrStage<1, [SLOT2, SLOT3]>], [4, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -567,6 +579,10 @@ class DepScalarItinV55 { [InstrStage<1, [SLOT0, SLOT1]>], [1, 1, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_28a44d1d, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1], + [Hex_FWD]>, + InstrItinData <tc_28e55c6f, /*tc_3x*/ [InstrStage<1, [SLOT3]>], [1, 1], [Hex_FWD, Hex_FWD]>, @@ -611,6 +627,10 @@ class DepScalarItinV55 { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fb06227, /*tc_ld*/ + [InstrStage<1, [SLOT0, SLOT1]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fbf1042, /*tc_1*/ [InstrStage<1, [SLOT0, SLOT1]>], [3], [Hex_FWD]>, @@ -839,6 +859,10 @@ class DepScalarItinV55 { [InstrStage<1, [SLOT0, SLOT1]>], [3, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74e96cae, /*tc_st*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_759e57be, /*tc_3stall*/ [InstrStage<1, [SLOT2]>], [4, 1], [Hex_FWD, Hex_FWD]>, @@ -1403,6 +1427,10 @@ class DepScalarItinV60 { [InstrStage<1, [SLOT2, SLOT3]>], [4, 4, 1, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1e779a4b, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1fcb8495, /*tc_2*/ [InstrStage<1, [SLOT2, SLOT3]>], [4, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -1443,6 +1471,10 @@ class DepScalarItinV60 { [InstrStage<1, [SLOT0, SLOT1]>], [1, 1, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_28a44d1d, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1], + [Hex_FWD]>, + InstrItinData <tc_28e55c6f, /*tc_3x*/ [InstrStage<1, [SLOT3]>], [1, 1], [Hex_FWD, Hex_FWD]>, @@ -1487,6 +1519,10 @@ class DepScalarItinV60 { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fb06227, /*tc_ld*/ + [InstrStage<1, [SLOT0, SLOT1]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fbf1042, /*tc_1*/ [InstrStage<1, [SLOT0, SLOT1]>], [3], [Hex_FWD]>, @@ -1715,6 +1751,10 @@ class DepScalarItinV60 { [InstrStage<1, [SLOT0, SLOT1]>], [3, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74e96cae, /*tc_st*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_759e57be, /*tc_3stall*/ [InstrStage<1, [SLOT2]>], [4, 1], [Hex_FWD, Hex_FWD]>, @@ -2277,6 +2317,10 @@ class DepScalarItinV60se { [InstrStage<1, [SLOT2, SLOT3]>], [4, 4, 1, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1e779a4b, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1fcb8495, /*tc_2*/ [InstrStage<1, [SLOT2, SLOT3]>], [4, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -2320,6 +2364,10 @@ class DepScalarItinV60se { [InstrStage<1, [SLOT0, SLOT1]>], [1, 1, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_28a44d1d, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1], + [Hex_FWD]>, + InstrItinData <tc_28e55c6f, /*tc_3x*/ [InstrStage<1, [SLOT3]>], [1, 1], [Hex_FWD, Hex_FWD]>, @@ -2367,6 +2415,10 @@ class DepScalarItinV60se { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fb06227, /*tc_ld*/ + [InstrStage<1, [SLOT0, SLOT1]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fbf1042, /*tc_1*/ [InstrStage<1, [SLOT0, SLOT1]>], [3], [Hex_FWD]>, @@ -2606,6 +2658,10 @@ class DepScalarItinV60se { [InstrStage<1, [SLOT0, SLOT1]>], [3, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74e96cae, /*tc_st*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_759e57be, /*tc_3stall*/ [InstrStage<1, [SLOT2]>], [4, 1], [Hex_FWD, Hex_FWD]>, @@ -3187,6 +3243,10 @@ class DepScalarItinV62 { [InstrStage<1, [SLOT2, SLOT3]>], [3, 4, 2, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1e779a4b, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1fcb8495, /*tc_2*/ [InstrStage<1, [SLOT2, SLOT3]>], [4, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -3227,6 +3287,10 @@ class DepScalarItinV62 { [InstrStage<1, [SLOT0, SLOT1]>], [1, 1, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_28a44d1d, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1], + [Hex_FWD]>, + InstrItinData <tc_28e55c6f, /*tc_3x*/ [InstrStage<1, [SLOT3]>], [1, 1], [Hex_FWD, Hex_FWD]>, @@ -3271,6 +3335,10 @@ class DepScalarItinV62 { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fb06227, /*tc_ld*/ + [InstrStage<1, [SLOT0, SLOT1]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fbf1042, /*tc_1*/ [InstrStage<1, [SLOT0, SLOT1]>], [3], [Hex_FWD]>, @@ -3499,6 +3567,10 @@ class DepScalarItinV62 { [InstrStage<1, [SLOT0, SLOT1]>], [3, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74e96cae, /*tc_st*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_759e57be, /*tc_3stall*/ [InstrStage<1, [SLOT2]>], [4, 1], [Hex_FWD, Hex_FWD]>, @@ -4067,6 +4139,10 @@ class DepScalarItinV65 { [InstrStage<1, [SLOT2, SLOT3]>], [3, 4, 2, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1e779a4b, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1fcb8495, /*tc_2*/ [InstrStage<1, [SLOT2, SLOT3]>], [4, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -4107,6 +4183,10 @@ class DepScalarItinV65 { [InstrStage<1, [SLOT0, SLOT1]>], [1, 1, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_28a44d1d, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1], + [Hex_FWD]>, + InstrItinData <tc_28e55c6f, /*tc_3x*/ [InstrStage<1, [SLOT3]>], [1, 1], [Hex_FWD, Hex_FWD]>, @@ -4151,6 +4231,10 @@ class DepScalarItinV65 { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fb06227, /*tc_ld*/ + [InstrStage<1, [SLOT0, SLOT1]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fbf1042, /*tc_1*/ [InstrStage<1, [SLOT0, SLOT1]>], [3], [Hex_FWD]>, @@ -4379,6 +4463,10 @@ class DepScalarItinV65 { [InstrStage<1, [SLOT0, SLOT1]>], [3, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74e96cae, /*tc_st*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_759e57be, /*tc_3stall*/ [InstrStage<1, [SLOT2]>], [4, 1], [Hex_FWD, Hex_FWD]>, @@ -4955,6 +5043,10 @@ class DepScalarItinV66 { [InstrStage<1, [SLOT2, SLOT3]>], [3, 4, 2, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1e779a4b, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1fcb8495, /*tc_2*/ [InstrStage<1, [SLOT2, SLOT3]>], [4, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -4995,6 +5087,10 @@ class DepScalarItinV66 { [InstrStage<1, [SLOT0, SLOT1]>], [1, 1, 2, 3], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_28a44d1d, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1], + [Hex_FWD]>, + InstrItinData <tc_28e55c6f, /*tc_3x*/ [InstrStage<1, [SLOT3]>], [1, 1], [Hex_FWD, Hex_FWD]>, @@ -5039,6 +5135,10 @@ class DepScalarItinV66 { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fb06227, /*tc_ld*/ + [InstrStage<1, [SLOT0, SLOT1]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fbf1042, /*tc_1*/ [InstrStage<1, [SLOT0, SLOT1]>], [3], [Hex_FWD]>, @@ -5267,6 +5367,10 @@ class DepScalarItinV66 { [InstrStage<1, [SLOT0, SLOT1]>], [3, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74e96cae, /*tc_st*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_759e57be, /*tc_3stall*/ [InstrStage<1, [SLOT2]>], [4, 1], [Hex_FWD, Hex_FWD]>, @@ -5843,6 +5947,10 @@ class DepScalarItinV67 { [InstrStage<1, [SLOT2, SLOT3]>], [3, 4, 2, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1e779a4b, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1fcb8495, /*tc_2*/ [InstrStage<1, [SLOT2, SLOT3]>], [4, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -5883,6 +5991,10 @@ class DepScalarItinV67 { [InstrStage<1, [SLOT0, SLOT1]>], [1, 1, 2, 3], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_28a44d1d, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1], + [Hex_FWD]>, + InstrItinData <tc_28e55c6f, /*tc_3x*/ [InstrStage<1, [SLOT3]>], [1, 1], [Hex_FWD, Hex_FWD]>, @@ -5927,6 +6039,10 @@ class DepScalarItinV67 { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fb06227, /*tc_ld*/ + [InstrStage<1, [SLOT0, SLOT1]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fbf1042, /*tc_1*/ [InstrStage<1, [SLOT0, SLOT1]>], [3], [Hex_FWD]>, @@ -6155,6 +6271,10 @@ class DepScalarItinV67 { [InstrStage<1, [SLOT0, SLOT1]>], [3, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74e96cae, /*tc_st*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_759e57be, /*tc_3stall*/ [InstrStage<1, [SLOT2]>], [4, 1], [Hex_FWD, Hex_FWD]>, @@ -6735,6 +6855,10 @@ class DepScalarItinV67T { [InstrStage<1, [SLOT2, SLOT3]>], [3, 4, 2, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1e779a4b, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1fcb8495, /*tc_2*/ [InstrStage<1, [SLOT3]>], [4, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -6775,6 +6899,10 @@ class DepScalarItinV67T { [InstrStage<1, [SLOT0]>], [1, 1, 2, 3], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_28a44d1d, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1], + [Hex_FWD]>, + InstrItinData <tc_28e55c6f, /*tc_3x*/ [InstrStage<1, [SLOT3]>], [1, 1], [Hex_FWD, Hex_FWD]>, @@ -6819,6 +6947,10 @@ class DepScalarItinV67T { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fb06227, /*tc_ld*/ + [InstrStage<1, [SLOT0, SLOT1]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fbf1042, /*tc_1*/ [InstrStage<1, [SLOT0]>], [3], [Hex_FWD]>, @@ -7047,6 +7179,10 @@ class DepScalarItinV67T { [InstrStage<1, [SLOT0, SLOT1]>], [3, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74e96cae, /*tc_st*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_759e57be, /*tc_3stall*/ [InstrStage<1, [SLOT2]>], [4, 1], [Hex_FWD, Hex_FWD]>, @@ -7623,6 +7759,10 @@ class DepScalarItinV68 { [InstrStage<1, [SLOT2, SLOT3]>], [3, 4, 2, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1e779a4b, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1fcb8495, /*tc_2*/ [InstrStage<1, [SLOT2, SLOT3]>], [4, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -7663,6 +7803,10 @@ class DepScalarItinV68 { [InstrStage<1, [SLOT0, SLOT1]>], [1, 1, 2, 3], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_28a44d1d, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1], + [Hex_FWD]>, + InstrItinData <tc_28e55c6f, /*tc_3x*/ [InstrStage<1, [SLOT3]>], [1, 1], [Hex_FWD, Hex_FWD]>, @@ -7707,6 +7851,10 @@ class DepScalarItinV68 { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fb06227, /*tc_ld*/ + [InstrStage<1, [SLOT0, SLOT1]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fbf1042, /*tc_1*/ [InstrStage<1, [SLOT0, SLOT1]>], [3], [Hex_FWD]>, @@ -7935,6 +8083,10 @@ class DepScalarItinV68 { [InstrStage<1, [SLOT0, SLOT1]>], [3, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74e96cae, /*tc_st*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_759e57be, /*tc_3stall*/ [InstrStage<1, [SLOT2]>], [4, 1], [Hex_FWD, Hex_FWD]>, @@ -8511,6 +8663,10 @@ class DepScalarItinV69 { [InstrStage<1, [SLOT2, SLOT3]>], [3, 4, 2, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1e779a4b, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1fcb8495, /*tc_2*/ [InstrStage<1, [SLOT2, SLOT3]>], [4, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -8551,6 +8707,10 @@ class DepScalarItinV69 { [InstrStage<1, [SLOT0, SLOT1]>], [1, 1, 2, 3], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_28a44d1d, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1], + [Hex_FWD]>, + InstrItinData <tc_28e55c6f, /*tc_3x*/ [InstrStage<1, [SLOT3]>], [1, 1], [Hex_FWD, Hex_FWD]>, @@ -8595,6 +8755,10 @@ class DepScalarItinV69 { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fb06227, /*tc_ld*/ + [InstrStage<1, [SLOT0, SLOT1]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fbf1042, /*tc_1*/ [InstrStage<1, [SLOT0, SLOT1]>], [3], [Hex_FWD]>, @@ -8823,6 +8987,10 @@ class DepScalarItinV69 { [InstrStage<1, [SLOT0, SLOT1]>], [3, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74e96cae, /*tc_st*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_759e57be, /*tc_3stall*/ [InstrStage<1, [SLOT2]>], [4, 1], [Hex_FWD, Hex_FWD]>, @@ -9399,6 +9567,10 @@ class DepScalarItinV71 { [InstrStage<1, [SLOT2, SLOT3]>], [3, 4, 2, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1e779a4b, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1fcb8495, /*tc_2*/ [InstrStage<1, [SLOT2, SLOT3]>], [4, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -9439,6 +9611,10 @@ class DepScalarItinV71 { [InstrStage<1, [SLOT0, SLOT1]>], [1, 1, 2, 3], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_28a44d1d, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1], + [Hex_FWD]>, + InstrItinData <tc_28e55c6f, /*tc_3x*/ [InstrStage<1, [SLOT3]>], [1, 1], [Hex_FWD, Hex_FWD]>, @@ -9483,6 +9659,10 @@ class DepScalarItinV71 { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fb06227, /*tc_ld*/ + [InstrStage<1, [SLOT0, SLOT1]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fbf1042, /*tc_1*/ [InstrStage<1, [SLOT0, SLOT1]>], [3], [Hex_FWD]>, @@ -9711,6 +9891,10 @@ class DepScalarItinV71 { [InstrStage<1, [SLOT0, SLOT1]>], [3, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74e96cae, /*tc_st*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_759e57be, /*tc_3stall*/ [InstrStage<1, [SLOT2]>], [4, 1], [Hex_FWD, Hex_FWD]>, @@ -10287,6 +10471,10 @@ class DepScalarItinV71T { [InstrStage<1, [SLOT2, SLOT3]>], [3, 4, 2, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1e779a4b, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1fcb8495, /*tc_2*/ [InstrStage<1, [SLOT3]>], [4, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -10327,6 +10515,10 @@ class DepScalarItinV71T { [InstrStage<1, [SLOT0]>], [1, 1, 2, 3], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_28a44d1d, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1], + [Hex_FWD]>, + InstrItinData <tc_28e55c6f, /*tc_3x*/ [InstrStage<1, [SLOT3]>], [1, 1], [Hex_FWD, Hex_FWD]>, @@ -10371,6 +10563,10 @@ class DepScalarItinV71T { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fb06227, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fbf1042, /*tc_1*/ [InstrStage<1, [SLOT0]>], [3], [Hex_FWD]>, @@ -10599,6 +10795,10 @@ class DepScalarItinV71T { [InstrStage<1, [SLOT0, SLOT1]>], [3, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74e96cae, /*tc_st*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_759e57be, /*tc_3stall*/ [InstrStage<1, [SLOT2]>], [4, 1], [Hex_FWD, Hex_FWD]>, @@ -11175,6 +11375,10 @@ class DepScalarItinV73 { [InstrStage<1, [SLOT2, SLOT3]>], [3, 4, 2, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1e779a4b, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1fcb8495, /*tc_2*/ [InstrStage<1, [SLOT2, SLOT3]>], [4, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -11215,6 +11419,10 @@ class DepScalarItinV73 { [InstrStage<1, [SLOT0, SLOT1]>], [1, 1, 2, 3], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_28a44d1d, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1], + [Hex_FWD]>, + InstrItinData <tc_28e55c6f, /*tc_3x*/ [InstrStage<1, [SLOT3]>], [1, 1], [Hex_FWD, Hex_FWD]>, @@ -11259,6 +11467,10 @@ class DepScalarItinV73 { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fb06227, /*tc_ld*/ + [InstrStage<1, [SLOT0, SLOT1]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fbf1042, /*tc_1*/ [InstrStage<1, [SLOT0, SLOT1]>], [3], [Hex_FWD]>, @@ -11487,6 +11699,10 @@ class DepScalarItinV73 { [InstrStage<1, [SLOT0, SLOT1]>], [3, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74e96cae, /*tc_st*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_759e57be, /*tc_3stall*/ [InstrStage<1, [SLOT2]>], [4, 1], [Hex_FWD, Hex_FWD]>, @@ -12063,6 +12279,10 @@ class DepScalarItinV75 { [InstrStage<1, [SLOT2, SLOT3]>], [3, 4, 2, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1e779a4b, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1fcb8495, /*tc_2*/ [InstrStage<1, [SLOT2, SLOT3]>], [4, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -12103,6 +12323,10 @@ class DepScalarItinV75 { [InstrStage<1, [SLOT0, SLOT1]>], [1, 1, 2, 3], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_28a44d1d, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1], + [Hex_FWD]>, + InstrItinData <tc_28e55c6f, /*tc_3x*/ [InstrStage<1, [SLOT3]>], [1, 1], [Hex_FWD, Hex_FWD]>, @@ -12147,6 +12371,10 @@ class DepScalarItinV75 { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fb06227, /*tc_ld*/ + [InstrStage<1, [SLOT0, SLOT1]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fbf1042, /*tc_1*/ [InstrStage<1, [SLOT0, SLOT1]>], [3], [Hex_FWD]>, @@ -12375,6 +12603,10 @@ class DepScalarItinV75 { [InstrStage<1, [SLOT0, SLOT1]>], [3, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74e96cae, /*tc_st*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_759e57be, /*tc_3stall*/ [InstrStage<1, [SLOT2]>], [4, 1], [Hex_FWD, Hex_FWD]>, @@ -12951,6 +13183,10 @@ class DepScalarItinV79 { [InstrStage<1, [SLOT2, SLOT3]>], [3, 4, 2, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1e779a4b, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1fcb8495, /*tc_2*/ [InstrStage<1, [SLOT2, SLOT3]>], [4, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -12991,6 +13227,10 @@ class DepScalarItinV79 { [InstrStage<1, [SLOT0, SLOT1]>], [1, 1, 2, 3], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_28a44d1d, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1], + [Hex_FWD]>, + InstrItinData <tc_28e55c6f, /*tc_3x*/ [InstrStage<1, [SLOT3]>], [1, 1], [Hex_FWD, Hex_FWD]>, @@ -13035,6 +13275,10 @@ class DepScalarItinV79 { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fb06227, /*tc_ld*/ + [InstrStage<1, [SLOT0, SLOT1]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fbf1042, /*tc_1*/ [InstrStage<1, [SLOT0, SLOT1]>], [3], [Hex_FWD]>, @@ -13263,6 +13507,10 @@ class DepScalarItinV79 { [InstrStage<1, [SLOT0, SLOT1]>], [3, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74e96cae, /*tc_st*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_759e57be, /*tc_3stall*/ [InstrStage<1, [SLOT2]>], [4, 1], [Hex_FWD, Hex_FWD]>, @@ -13839,6 +14087,10 @@ class DepScalarItinV81 { [InstrStage<1, [SLOT2, SLOT3]>], [3, 4, 2, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1e779a4b, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1fcb8495, /*tc_2*/ [InstrStage<1, [SLOT2, SLOT3]>], [4, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -13879,6 +14131,10 @@ class DepScalarItinV81 { [InstrStage<1, [SLOT0, SLOT1]>], [1, 1, 2, 3], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_28a44d1d, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1], + [Hex_FWD]>, + InstrItinData <tc_28e55c6f, /*tc_3x*/ [InstrStage<1, [SLOT3]>], [1, 1], [Hex_FWD, Hex_FWD]>, @@ -13923,6 +14179,10 @@ class DepScalarItinV81 { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fb06227, /*tc_ld*/ + [InstrStage<1, [SLOT0, SLOT1]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fbf1042, /*tc_1*/ [InstrStage<1, [SLOT0, SLOT1]>], [3], [Hex_FWD]>, @@ -14147,6 +14407,10 @@ class DepScalarItinV81 { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74e96cae, /*tc_st*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74a42bda, /*tc_ld*/ [InstrStage<1, [SLOT0, SLOT1]>], [3, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -14727,6 +14991,10 @@ class DepScalarItinV83 { [InstrStage<1, [SLOT2, SLOT3]>], [3, 4, 2, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1e779a4b, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1fcb8495, /*tc_2*/ [InstrStage<1, [SLOT2, SLOT3]>], [4, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -14767,6 +15035,10 @@ class DepScalarItinV83 { [InstrStage<1, [SLOT0, SLOT1]>], [1, 1, 2, 3], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_28a44d1d, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1], + [Hex_FWD]>, + InstrItinData <tc_28e55c6f, /*tc_3x*/ [InstrStage<1, [SLOT3]>], [1, 1], [Hex_FWD, Hex_FWD]>, @@ -14811,6 +15083,10 @@ class DepScalarItinV83 { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fb06227, /*tc_ld*/ + [InstrStage<1, [SLOT0, SLOT1]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fbf1042, /*tc_1*/ [InstrStage<1, [SLOT0, SLOT1]>], [3], [Hex_FWD]>, @@ -15035,6 +15311,10 @@ class DepScalarItinV83 { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74e96cae, /*tc_st*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74a42bda, /*tc_ld*/ [InstrStage<1, [SLOT0, SLOT1]>], [3, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -15615,6 +15895,10 @@ class DepScalarItinV85 { [InstrStage<1, [SLOT2, SLOT3]>], [3, 4, 2, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1e779a4b, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_1fcb8495, /*tc_2*/ [InstrStage<1, [SLOT2, SLOT3]>], [4, 2, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, @@ -15655,6 +15939,10 @@ class DepScalarItinV85 { [InstrStage<1, [SLOT0, SLOT1]>], [1, 1, 2, 3], [Hex_FWD, Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_28a44d1d, /*tc_ld*/ + [InstrStage<1, [SLOT0]>], [1], + [Hex_FWD]>, + InstrItinData <tc_28e55c6f, /*tc_3x*/ [InstrStage<1, [SLOT3]>], [1, 1], [Hex_FWD, Hex_FWD]>, @@ -15699,6 +15987,10 @@ class DepScalarItinV85 { [InstrStage<1, [SLOT3]>], [4, 2], [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fb06227, /*tc_ld*/ + [InstrStage<1, [SLOT0, SLOT1]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_3fbf1042, /*tc_1*/ [InstrStage<1, [SLOT0, SLOT1]>], [3], [Hex_FWD]>, @@ -15927,6 +16219,10 @@ class DepScalarItinV85 { [InstrStage<1, [SLOT0, SLOT1]>], [3, 1, 2], [Hex_FWD, Hex_FWD, Hex_FWD]>, + InstrItinData <tc_74e96cae, /*tc_st*/ + [InstrStage<1, [SLOT0]>], [1, 1], + [Hex_FWD, Hex_FWD]>, + InstrItinData <tc_759e57be, /*tc_3stall*/ [InstrStage<1, [SLOT2]>], [4, 1], [Hex_FWD, Hex_FWD]>, diff --git a/llvm/lib/Target/Hexagon/HexagonDepInstrInfo.td b/llvm/lib/Target/Hexagon/HexagonDepInstrInfo.td index 50e8080917b84..3491fba89ae83 100644 --- a/llvm/lib/Target/Hexagon/HexagonDepInstrInfo.td +++ b/llvm/lib/Target/Hexagon/HexagonDepInstrInfo.td @@ -20701,6 +20701,117 @@ let opNewValue = 0; let prefersSlot3 = 1; let Defs = [USR_OVF]; } +def M8_cvt_rs_hf : HInst< +(outs), +(ins IntRegs:$Rs32), +"cvt.hf = acc($Rs32)", +tc_db96aa6b, TypeST>, Enc_ecbcc8, Requires<[HasV73,UseHMX]> { +let Inst{13-0} = 0b01101000010000; +let Inst{31-21} = 0b10100110111; +let hasSideEffects = 1; +} +def M8_mxclracc_hf : HInst< +(outs), +(ins), +"mxclracc.hf", +tc_77f94a5e, TypeST>, Enc_e3b0c4, Requires<[HasV68,UseHMX]> { +let Inst{13-0} = 0b00000000010011; +let Inst{31-16} = 0b1010011011100000; +let hasSideEffects = 1; +} +def M8_mxmem : HInst< +(outs), +(ins IntRegs:$Rs32, IntRegs:$Rt32), +"mxmem($Rs32,$Rt32) = cvt", +tc_74e96cae, TypeST>, Enc_ca3887, Requires<[HasV73,UseHMX]> { +let Inst{7-0} = 0b00011000; +let Inst{13-13} = 0b0; +let Inst{31-21} = 0b10100110111; +let hasSideEffects = 1; +let mayStore = 1; +} +def M8_mxmem2_bias : HInst< +(outs), +(ins IntRegs:$Rs32), +"bias = mxmem2($Rs32)", +tc_28a44d1d, TypeLD>, Enc_ecbcc8, Requires<[HasV68,UseHMX]> { +let Inst{13-0} = 0b00001111111110; +let Inst{31-21} = 0b10010010000; +let hasSideEffects = 1; +let mayLoad = 1; +let isRestrictNoSlot1Store = 1; +} +def M8_mxmem2_st_bias : HInst< +(outs), +(ins IntRegs:$Rs32), +"mxmem2($Rs32) = bias", +tc_db96aa6b, TypeST>, Enc_ecbcc8, Requires<[HasV68,UseHMX]> { +let Inst{13-0} = 0b00000000010110; +let Inst{31-21} = 0b10100110111; +let hasSideEffects = 1; +let isRestrictNoSlot1Store = 1; +let mayStore = 1; +} +def M8_mxmem_blk_sm_act_hf : HInst< +(outs), +(ins IntRegs:$Rs32, IntRegs:$Rt32), +"activation.hf = mxmem($Rs32,$Rt32)", +tc_3fb06227, TypeLD>, Enc_ca3887, Requires<[HasV68,UseHMX]> { +let Inst{7-0} = 0b11100100; +let Inst{13-13} = 0b0; +let Inst{31-21} = 0b10010010000; +let hasSideEffects = 1; +let mayLoad = 1; +let isHMXActivate = 1; +} +def M8_mxmem_sm_act_hf : HInst< +(outs), +(ins IntRegs:$Rs32, IntRegs:$Rt32), +"activation.hf = mxmem($Rs32,$Rt32):deep", +tc_3fb06227, TypeLD>, Enc_ca3887, Requires<[HasV68,UseHMX]> { +let Inst{7-0} = 0b11100010; +let Inst{13-13} = 0b0; +let Inst{31-21} = 0b10010010000; +let hasSideEffects = 1; +let mayLoad = 1; +let isHMXActivate = 1; +} +def M8_mxmem_wei_hf : HInst< +(outs), +(ins IntRegs:$Rs32, IntRegs:$Rt32), +"weight.hf = mxmem($Rs32,$Rt32)", +tc_1e779a4b, TypeLD>, Enc_ca3887, Requires<[HasV68,UseHMX]> { +let Inst{7-0} = 0b11101111; +let Inst{13-13} = 0b1; +let Inst{31-21} = 0b10010010000; +let hasSideEffects = 1; +let mayLoad = 1; +let isHMXWeight = 1; +} +def M8_mxmemdp_wei_hf : HInst< +(outs), +(ins IntRegs:$Rs32, IntRegs:$Rt32), +"weight.hf = mxmem($Rs32,$Rt32):deep", +tc_1e779a4b, TypeLD>, Enc_ca3887, Requires<[HasV68,UseHMX]> { +let Inst{7-0} = 0b11110100; +let Inst{13-13} = 0b1; +let Inst{31-21} = 0b10010010000; +let hasSideEffects = 1; +let mayLoad = 1; +let isHMXWeight = 1; +} +def M8_mxmems_blk_sm_act_hf : HInst< +(outs), +(ins IntRegs:$Rs32, IntRegs:$Rt32), +"activation.hf = mxmem($Rs32,$Rt32):single", +tc_3fb06227, TypeLD>, Enc_ca3887, Requires<[HasV68,UseHMX]> { +let Inst{7-0} = 0b11111000; +let Inst{13-13} = 0b0; +let Inst{31-21} = 0b10010010000; +let hasSideEffects = 1; +let mayLoad = 1; +let isHMXActivate = 1; +} def PS_loadrbabs : HInst< (outs IntRegs:$Rd32), (ins u32_0Imm:$Ii), diff --git a/llvm/lib/Target/Hexagon/HexagonInstrFormats.td b/llvm/lib/Target/Hexagon/HexagonInstrFormats.td index 8adcd53f5b924..cc32c2856418b 100644 --- a/llvm/lib/Target/Hexagon/HexagonInstrFormats.td +++ b/llvm/lib/Target/Hexagon/HexagonInstrFormats.td @@ -141,6 +141,9 @@ class InstHexagon<dag outs, dag ins, string asmstr, list<dag> pattern, bits<1> isFP = 0; let TSFlags {48} = isFP; // Floating-point. + bit isHMXActivate = 0; + let TSFlags{49} = isHMXActivate; + bits<1> hasNewValue2 = 0; let TSFlags{50} = hasNewValue2; // Second New-value producer insn. bits<3> opNewValue2 = 0; @@ -155,6 +158,9 @@ class InstHexagon<dag outs, dag ins, string asmstr, list<dag> pattern, bit isTmpWrite = 0; let TSFlags{56} = isTmpWrite; // Vector register false-write. + bit isHMXWeight = 0; + let TSFlags{57} = isHMXWeight; + bit CVINew = 0; let TSFlags{58} = CVINew; diff --git a/llvm/lib/Target/Hexagon/HexagonSubtarget.h b/llvm/lib/Target/Hexagon/HexagonSubtarget.h index 809af8282c0f1..dfd77863d2778 100644 --- a/llvm/lib/Target/Hexagon/HexagonSubtarget.h +++ b/llvm/lib/Target/Hexagon/HexagonSubtarget.h @@ -57,6 +57,7 @@ class HexagonSubtarget : public HexagonGenSubtargetInfo { bool UseNewValueStores = false; bool UseSmallData = false; bool UseZRegOps = false; + bool UseHMXOps = false; bool UseHLXOps = false; bool UseHVXIEEEFPOps = false; bool UseHVXQFloatOps = false; @@ -276,6 +277,7 @@ class HexagonSubtarget : public HexagonGenSubtargetInfo { bool useNewValueStores() const { return UseNewValueStores; } bool useSmallData() const { return UseSmallData; } bool useZRegOps() const { return UseZRegOps; } + bool useHMXOps() const { return UseHMXOps; } bool useHLXOps() const { return UseHLXOps; } bool useHLX2048BOps() const { return UseHLXOps && HexagonProcFamily == HLX2048B; diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonBaseInfo.h b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonBaseInfo.h index f3a28e7afe954..2c8d8c85879a1 100644 --- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonBaseInfo.h +++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonBaseInfo.h @@ -171,6 +171,8 @@ namespace HexagonII { FPPos = 48, FPMask = 0x1, + isHMXActivatePos = 49, + // New-Value producer-2 instructions. hasNewValuePos2 = 50, hasNewValueMask2 = 0x1, @@ -188,6 +190,8 @@ namespace HexagonII { isTmpWritePos = 56, + isHMXWeightPos = 57, + CVINewPos = 58, CVINewMask = 0x1, diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCChecker.cpp b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCChecker.cpp index e52cb3324cff1..15a0736c70d3d 100644 --- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCChecker.cpp +++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCChecker.cpp @@ -226,12 +226,13 @@ bool HexagonMCChecker::check(bool FullCheck) { bool chkAXOK = checkAXOK(); bool chkCofMax1 = checkCOFMax1(); bool chkHWLoop = checkHWLoop(); + bool chkHMX = checkValidHMX(); bool chkValidTmpDst = FullCheck ? checkValidTmpDst() : true; bool chkLegalVecRegPair = checkLegalVecRegPair(); bool ChkHVXAccum = checkHVXAccum(); bool ChkHLX64BitRegUse = checkHLX64BitRegUse(); bool chk = chkP && chkNV && chkR && chkRRO && chkS && chkSh && chkSl && - chkAXOK && chkCofMax1 && chkHWLoop && chkValidTmpDst && + chkAXOK && chkCofMax1 && chkHWLoop && chkHMX && chkValidTmpDst && chkLegalVecRegPair && ChkHVXAccum && ChkHLX64BitRegUse; return chk; @@ -689,6 +690,36 @@ bool HexagonMCChecker::checkRegisters() { return true; } +bool HexagonMCChecker::checkValidHMX() { + bool hasWeight = false; + bool hasActivation = false; + for (auto const &I : HexagonMCInstrInfo::bundleInstructions(MCII, MCB)) { + hasWeight = hasWeight || (HexagonMCInstrInfo::isHMXWeight(MCII, I)); + hasActivation = + hasActivation || (HexagonMCInstrInfo::isHMXActivation(MCII, I)); + } + + // To be valid they must both be present or neither: + const bool ValidWeightActPairing = hasWeight == hasActivation; + if (!ValidWeightActPairing) { + const std::string ErrMsg = hasWeight ? "weight without an activation" + : "activation without a weight"; + reportError(MCB.getLoc(), Twine("packet has HMX ") + ErrMsg); + + if (HexagonMCInstrInfo::bundleSize(MCB) > 1) + for (auto const &I : HexagonMCInstrInfo::bundleInstructions(MCII, MCB)) { + if (HexagonMCInstrInfo::isHMXWeight(MCII, I)) + reportNote(I.getLoc(), "this is an HMX weight instruction"); + else if (HexagonMCInstrInfo::isHMXActivation(MCII, I)) + reportNote(I.getLoc(), "this is an HMX activation instruction"); + else + reportNote(I.getLoc(), + "this is neither an HMX weight nor activation"); + } + } + return ValidWeightActPairing; +} + // Check for legal use of solo insns. bool HexagonMCChecker::checkSolo() { if (HexagonMCInstrInfo::bundleSize(MCB) > 1) diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCChecker.h b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCChecker.h index 7a85cc703dcd1..f650da382ca45 100644 --- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCChecker.h +++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCChecker.h @@ -101,6 +101,7 @@ class HexagonMCChecker { bool checkHWLoop(); bool checkCOFMax1(); bool checkLegalVecRegPair(); + bool checkValidHMX(); bool checkValidTmpDst(); bool checkHVXAccum(); // An HLX instruction that reads a 64-bit scalar register may not be in the diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.cpp b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.cpp index 88fd28978757b..7a64a03598357 100644 --- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.cpp +++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.cpp @@ -1049,6 +1049,18 @@ unsigned HexagonMCInstrInfo::SubregisterBit(MCRegister Consumer, return 0; } +bool HexagonMCInstrInfo::isHMXWeight(MCInstrInfo const &MCII, + MCInst const &MCI) { + const auto &MID = HexagonMCInstrInfo::getDesc(MCII, MCI); + return HexagonII::getTSFlag(MID, HexagonII::isHMXWeightPos); +} + +bool HexagonMCInstrInfo::isHMXActivation(MCInstrInfo const &MCII, + MCInst const &MCI) { + const auto &MID = HexagonMCInstrInfo::getDesc(MCII, MCI); + return HexagonII::getTSFlag(MID, HexagonII::isHMXActivatePos); +} + bool HexagonMCInstrInfo::LoopNeedsPadding(MCInst const &MCB) { return ( (HexagonMCInstrInfo::isInnerLoop(MCB) && diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.h b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.h index 3c74a643255a0..e0cbe41e3391e 100644 --- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.h +++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.h @@ -316,6 +316,11 @@ bool mustNotExtend(MCExpr const &Expr); // Returns true if this instruction requires a slot to execute. bool requiresSlot(MCSubtargetInfo const &STI, MCInst const &MCI); +// Returns true if this instruction is an HMX Weight instruction. +bool isHMXWeight(MCInstrInfo const &MCII, MCInst const &MCI); + +// Returns true if this instruction is an HMX Activation instruction. +bool isHMXActivation(MCInstrInfo const &MCII, MCInst const &MCI); // Returns true if \a MCB would require endloop padding. bool LoopNeedsPadding(MCInst const &MCB); diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp index 3f7607e943f9d..e77f6713cb4a6 100644 --- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp +++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp @@ -129,6 +129,9 @@ static cl::opt<bool> DisableHVX("mno-hvx", cl::Hidden, cl::desc("Disable Hexagon Vector eXtensions")); +static cl::opt<bool> EnableHMX("mhmx", + cl::desc("Enable Hexagon Matrix eXtensions")); + static cl::opt<bool> EnableHvxIeeeFp("mhvx-ieee-fp", cl::Hidden, cl::desc("Enable HVX IEEE floating point extensions")); @@ -453,6 +456,9 @@ std::string selectHexagonFS(StringRef CPU, StringRef FS) { if (!FS.empty()) Result.push_back(FS); + if (EnableHMX) + Result.push_back("+hmx"); + switch (EnableHVX) { case Hexagon::ArchEnum::V5: case Hexagon::ArchEnum::V55: diff --git a/llvm/test/MC/Hexagon/HexagonTestWriter/v68_hmx.s b/llvm/test/MC/Hexagon/HexagonTestWriter/v68_hmx.s new file mode 100644 index 0000000000000..8bd67a810e2f4 --- /dev/null +++ b/llvm/test/MC/Hexagon/HexagonTestWriter/v68_hmx.s @@ -0,0 +1,58 @@ +// WARNING: This test was auto-generated by HexagonTestWriter.py +// RUN: llvm-mc --mattr=+hmx --hexagon-add-build-attributes -triple=hexagon --mcpu=hexagonv68 -filetype=obj %s | \ +// RUN: llvm-objdump --mattr=+hmx -d - | FileCheck %s + +//M8_mxmem_blk_sm_act_hf +//activation.hf=mxmem(Rs32,Rt32) +{ + activation.hf=mxmem(r0,r0) + weight.hf = mxmem(r0,r0) +} +//CHECK: 920040e4 + +//M8_mxmem_sm_act_hf +//activation.hf=mxmem(Rs32,Rt32):deep +{ + activation.hf=mxmem(r0,r0):deep + weight.hf = mxmem(r0,r0) +} +//CHECK: 920040e2 + +//M8_mxmems_blk_sm_act_hf +//activation.hf=mxmem(Rs32,Rt32):single +{ + activation.hf=mxmem(r0,r0):single + weight.hf = mxmem(r0,r0) +} +//CHECK: 920040f8 + +//M8_mxmem_wei_hf +//weight.hf=mxmem(Rs32,Rt32) +{ + activation.hf = mxmem(r0,r0) + weight.hf=mxmem(r0,r0) +} +//CHECK: 9200e0ef + +//M8_mxmemdp_wei_hf +//weight.hf=mxmem(Rs32,Rt32):deep +{ + activation.hf = mxmem(r0,r0) + weight.hf=mxmem(r0,r0):deep +} +//CHECK: 9200e0f4 + +//M8_mxmem2_bias +//bias=mxmem2(Rs32) +bias=mxmem2(r0) +//CHECK: 9200c3fe + +//M8_mxmem2_st_bias +//mxmem2(Rs32)=bias +mxmem2(r0)=bias +//CHECK: a6e0c016 + +//M8_mxclracc_hf +//mxclracc.hf +mxclracc.hf +//CHECK: a6e0c013 diff --git a/llvm/test/MC/Hexagon/HexagonTestWriter/v73_hmx.s b/llvm/test/MC/Hexagon/HexagonTestWriter/v73_hmx.s new file mode 100644 index 0000000000000..5c8a9484e6c09 --- /dev/null +++ b/llvm/test/MC/Hexagon/HexagonTestWriter/v73_hmx.s @@ -0,0 +1,68 @@ +// WARNING: This test was auto-generated by HexagonTestWriter.py +// RUN: llvm-mc --mattr=+hmx --hexagon-add-build-attributes -triple=hexagon --mcpu=hexagonv73 -filetype=obj %s | \ +// RUN: llvm-objdump --mattr=+hmx -d - | FileCheck %s + +//M8_mxmem_blk_sm_act_hf +//activation.hf=mxmem(Rs32,Rt32) +{ + activation.hf=mxmem(r0,r0) + weight.hf = mxmem(r0,r0) +} +//CHECK: 920040e4 + +//M8_mxmem_sm_act_hf +//activation.hf=mxmem(Rs32,Rt32):deep +{ + activation.hf=mxmem(r0,r0):deep + weight.hf = mxmem(r0,r0) +} +//CHECK: 920040e2 + +//M8_mxmems_blk_sm_act_hf +//activation.hf=mxmem(Rs32,Rt32):single +{ + activation.hf=mxmem(r0,r0):single + weight.hf = mxmem(r0,r0) +} +//CHECK: 920040f8 + +//M8_mxmem_wei_hf +//weight.hf=mxmem(Rs32,Rt32) +{ + activation.hf = mxmem(r0,r0) + weight.hf=mxmem(r0,r0) +} +//CHECK: 9200e0ef + +//M8_mxmemdp_wei_hf +//weight.hf=mxmem(Rs32,Rt32):deep +{ + activation.hf = mxmem(r0,r0) + weight.hf=mxmem(r0,r0):deep +} +//CHECK: 9200e0f4 + +//M8_cvt_rs_hf +//cvt.hf=acc(Rs32) +cvt.hf=acc(r0) +//CHECK: a6e0da10 + +//M8_mxmem +//mxmem(Rs32,Rt32)=cvt +mxmem(r0,r0)=cvt +//CHECK: a6e0c018 + +//M8_mxmem2_bias +//bias=mxmem2(Rs32) +bias=mxmem2(r0) +//CHECK: 9200c3fe + +//M8_mxmem2_st_bias +//mxmem2(Rs32)=bias +mxmem2(r0)=bias +//CHECK: a6e0c016 + +//M8_mxclracc_hf +//mxclracc.hf +mxclracc.hf +//CHECK: a6e0c013 diff --git a/llvm/test/MC/Hexagon/PacketRules/hmx_weight_act.s b/llvm/test/MC/Hexagon/PacketRules/hmx_weight_act.s new file mode 100644 index 0000000000000..047b567568ee7 --- /dev/null +++ b/llvm/test/MC/Hexagon/PacketRules/hmx_weight_act.s @@ -0,0 +1,33 @@ +# RUN: not llvm-mc -triple=hexagon -mhmx -filetype=obj %s 2>&1 | FileCheck --implicit-check-not=error %s + +activation.hf = mxmem(r0,r0) +# CHECK: hmx_weight_act.s:[[#@LINE-1]]:1: error: packet has HMX activation without a weight + +weight.hf = mxmem(r0, r1) +# CHECK: hmx_weight_act.s:[[#@LINE-1]]:1: error: packet has HMX weight without an activation + +{ + weight.hf = mxmem(r0, r1) + r0 = r1 +} +# CHECK: hmx_weight_act.s:[[#@LINE-1]]:1: error: packet has HMX weight without an activation + +## Valid pairings, none of the below should result in errors. + +{ + activation.hf = mxmem(r0,r0) + weight.hf = mxmem(r0,r1) } + +{ activation.hf = mxmem(r0,r0) + r0 = r3 + weight.hf = mxmem(r0,r0) } + +{ activation.hf = mxmem(r0,r0):deep + weight.hf = mxmem(r0,r0) } + +{ activation.hf = mxmem(r0,r0):single + weight.hf = mxmem(r0,r0) } + +{ activation.hf = mxmem(r0,r0):single + r0 = r3 + weight.hf = mxmem(r0,r0) } diff --git a/llvm/test/MC/Hexagon/hmx-support.s b/llvm/test/MC/Hexagon/hmx-support.s new file mode 100644 index 0000000000000..4e70cd3085428 --- /dev/null +++ b/llvm/test/MC/Hexagon/hmx-support.s @@ -0,0 +1,22 @@ +## Basic checks for `hmx` attribute and `-mhmx` flag + +# RUN: llvm-mc -triple=hexagon -mhmx -filetype=obj %s | \ +# RUN: llvm-objdump -d --mattr=+hmx - | FileCheck %s + +# RUN: llvm-mc -triple=hexagon -mattr=+hmx -filetype=obj %s | \ +# RUN: llvm-objdump -d --mattr=+hmx - | FileCheck %s + +# RUN: not llvm-mc -triple=hexagon -filetype=asm %s 2>&1 | \ +# RUN: FileCheck --check-prefix=CHECK-NOHMX --implicit-check-not='error:' %s + +# RUN: llvm-mc -triple=hexagon -mhmx -filetype=obj %s | \ +# RUN: llvm-objdump -d - | \ +# RUN: FileCheck --check-prefix=CHECK-DIS-NOHMX %s + +mxclracc.hf + +# CHECK: { mxclracc.hf } + +# CHECK-NOHMX: hmx-support.s:[[#@LINE-4]]:1: error: invalid instruction + +# CHECK-DIS-NOHMX: unknown _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
