[llvm] e8df7e2 - [LLVM][AArch64][tblgen]: Make operand suffix case-insinsitive (#76808)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 3 10:27:09 PST 2024
Author: Hassnaa Hamdi
Date: 2024-01-03T18:27:04Z
New Revision: e8df7e2c1adad376647ba6776e39b019003370a6
URL: https://github.com/llvm/llvm-project/commit/e8df7e2c1adad376647ba6776e39b019003370a6
DIFF: https://github.com/llvm/llvm-project/commit/e8df7e2c1adad376647ba6776e39b019003370a6.diff
LOG: [LLVM][AArch64][tblgen]: Make operand suffix case-insinsitive (#76808)
Ex: `fdot v26.8H, v22.16B, v9.2B[0]` should be equivalent to `fdot
v26.8h, v22.16b, v9.2b[0]`
Added:
Modified:
llvm/lib/Target/AArch64/AArch64InstrFormats.td
llvm/test/MC/AArch64/FP8/dot.s
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64InstrFormats.td b/llvm/lib/Target/AArch64/AArch64InstrFormats.td
index cb63d8726744d4..10ad5b1f8f2580 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrFormats.td
+++ b/llvm/lib/Target/AArch64/AArch64InstrFormats.td
@@ -12586,6 +12586,7 @@ def : TokenAlias<".4S", ".4s">;
def : TokenAlias<".2D", ".2d">;
def : TokenAlias<".1Q", ".1q">;
def : TokenAlias<".2H", ".2h">;
+def : TokenAlias<".2B", ".2b">;
def : TokenAlias<".B", ".b">;
def : TokenAlias<".H", ".h">;
def : TokenAlias<".S", ".s">;
diff --git a/llvm/test/MC/AArch64/FP8/dot.s b/llvm/test/MC/AArch64/FP8/dot.s
index e755430745c34e..cfcc1137231a95 100644
--- a/llvm/test/MC/AArch64/FP8/dot.s
+++ b/llvm/test/MC/AArch64/FP8/dot.s
@@ -44,6 +44,12 @@ fdot v31.4h, v31.8b, v15.2b[0]
// CHECK-ERROR: instruction requires: fp8dot2
// CHECK-UNKNOWN: 0f4f03ff <unknown>
+fdot v26.8H, v22.16B, v9.2B[0]
+// CHECK-INST: fdot v26.8h, v22.16b, v9.2b[0]
+// CHECK-ENCODING: [0xda,0x02,0x49,0x4f]
+// CHECK-ERROR: instruction requires: fp8dot2
+// CHECK-UNKNOWN: 4f4902da <unknown>
+
fdot v0.8h, v0.16b, v15.2b[7]
// CHECK-INST: fdot v0.8h, v0.16b, v15.2b[7]
// CHECK-ENCODING: [0x00,0x08,0x7f,0x4f]
More information about the llvm-commits
mailing list