[llvm] [GlobalISel][AArch64] Legalize G_FABS and G_FNEG for SVE (PR #114784)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 12 01:34:45 PST 2024
================
@@ -179,3 +179,21 @@ def AArch64 : Target {
//===----------------------------------------------------------------------===//
include "AArch64PfmCounters.td"
+
+
+//===----------------------------------------------------------------------===//
+// GlobalISel patterns
+//===----------------------------------------------------------------------===//
+
+include "AArch64GlobalISelPatterns.td"
+
+// We want to first hit the instruction patterns.
+foreach VT = [nxv2bf16, nxv4bf16, nxv8bf16] in {
----------------
tschuett wrote:
I moved them to the original location, but it fails with:
`Assertion failed: (I.getOpcode() == TargetOpcode::G_CONSTANT && OpIdx == -1 && "Expected G_CONSTANT"), function renderLogicalImm64, file AArch64InstructionSelector.cpp, line 7914.`
https://github.com/llvm/llvm-project/pull/114784
More information about the llvm-commits
mailing list