[llvm] 6f53960 - [AArch64] Adjust machine-combiner-reassociate.mir test
John Brawn via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 3 04:40:35 PST 2022
Author: John Brawn
Date: 2022-02-03T12:40:14Z
New Revision: 6f53960d6416b97e4c750b132b5662b80df12ee9
URL: https://github.com/llvm/llvm-project/commit/6f53960d6416b97e4c750b132b5662b80df12ee9
DIFF: https://github.com/llvm/llvm-project/commit/6f53960d6416b97e4c750b132b5662b80df12ee9.diff
LOG: [AArch64] Adjust machine-combiner-reassociate.mir test
Use regular expressions for instruction numbers, as these can vary.
Added:
Modified:
llvm/test/CodeGen/AArch64/machine-combiner-reassociate.mir
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/AArch64/machine-combiner-reassociate.mir b/llvm/test/CodeGen/AArch64/machine-combiner-reassociate.mir
index 87094a668d33a..7490a3d514406 100644
--- a/llvm/test/CodeGen/AArch64/machine-combiner-reassociate.mir
+++ b/llvm/test/CodeGen/AArch64/machine-combiner-reassociate.mir
@@ -4,11 +4,11 @@
# fadd without the reassoc flags can be reassociate only when unsafe fp math is
# enabled.
# CHECK-LABEL: name: fadd_no_reassoc
-# CHECK: %4:fpr32 = FADDSrr %0, %1
-# CHECK-SAFE-NEXT: %5:fpr32 = FADDSrr killed %4, %2
-# CHECK-SAFE-NEXT: %6:fpr32 = FADDSrr killed %5, %3
-# CHECK-UNSAFE-NEXT: %9:fpr32 = FADDSrr %2, %3
-# CHECK-UNSAFE-NEXT: %6:fpr32 = FADDSrr killed %4, killed %9
+# CHECK: [[ADD1:%[0-9]+]]:fpr32 = FADDSrr %0, %1
+# CHECK-SAFE-NEXT: [[ADD2:%[0-9]+]]:fpr32 = FADDSrr killed [[ADD1]], %2
+# CHECK-SAFE-NEXT: [[ADD3:%[0-9]+]]:fpr32 = FADDSrr killed [[ADD2]], %3
+# CHECK-UNSAFE-NEXT: [[ADD2:%[0-9]+]]:fpr32 = FADDSrr %2, %3
+# CHECK-UNSAFE-NEXT: [[ADD3:%[0-9]+]]:fpr32 = FADDSrr killed [[ADD1]], killed [[ADD2]]
---
name: fadd_no_reassoc
alignment: 4
@@ -48,11 +48,11 @@ body: |
# FIXME: We should be able to reassociate without unsafe fp math, but currently
# the reassoc flag is ignored.
# CHECK-LABEL: name: fadd_reassoc
-# CHECK: %4:fpr32 = reassoc FADDSrr %0, %1
-# CHECK-SAFE-NEXT: %5:fpr32 = reassoc FADDSrr killed %4, %2
-# CHECK-SAFE-NEXT: %6:fpr32 = reassoc FADDSrr killed %5, %3
-# CHECK-UNSAFE-NEXT: %9:fpr32 = reassoc FADDSrr %2, %3
-# CHECK-UNSAFE-NEXT: %6:fpr32 = reassoc FADDSrr killed %4, killed %9
+# CHECK: [[ADD1:%[0-9]+]]:fpr32 = reassoc FADDSrr %0, %1
+# CHECK-SAFE-NEXT: [[ADD2:%[0-9]+]]:fpr32 = reassoc FADDSrr killed [[ADD1]], %2
+# CHECK-SAFE-NEXT: [[ADD3:%[0-9]+]]:fpr32 = reassoc FADDSrr killed [[ADD2]], %3
+# CHECK-UNSAFE-NEXT: [[ADD2:%[0-9]+]]:fpr32 = reassoc FADDSrr %2, %3
+# CHECK-UNSAFE-NEXT: [[ADD3:%[0-9]+]]:fpr32 = reassoc FADDSrr killed [[ADD1]], killed [[ADD2]]
---
name: fadd_reassoc
alignment: 4
@@ -91,11 +91,11 @@ body: |
# Check that flags on the instructions are preserved after reassociation.
# CHECK-LABEL: name: fadd_flags
-# CHECK: %4:fpr32 = nsz FADDSrr %0, %1
-# CHECK-SAFE-NEXT: %5:fpr32 = nnan FADDSrr killed %4, %2
-# CHECK-SAFE-NEXT: %6:fpr32 = ninf FADDSrr killed %5, %3
-# CHECK-UNSAFE-NEXT: %9:fpr32 = nnan FADDSrr %2, %3
-# CHECK-UNSAFE-NEXT: %6:fpr32 = ninf FADDSrr killed %4, killed %9
+# CHECK: [[ADD1:%[0-9]+]]:fpr32 = nsz FADDSrr %0, %1
+# CHECK-SAFE-NEXT: [[ADD2:%[0-9]+]]:fpr32 = nnan FADDSrr killed [[ADD1]], %2
+# CHECK-SAFE-NEXT: [[ADD3:%[0-9]+]]:fpr32 = ninf FADDSrr killed [[ADD2]], %3
+# CHECK-UNSAFE-NEXT: [[ADD2:%[0-9]+]]:fpr32 = nnan FADDSrr %2, %3
+# CHECK-UNSAFE-NEXT: [[ADD3:%[0-9]+]]:fpr32 = ninf FADDSrr killed [[ADD1]], killed [[ADD2]]
---
name: fadd_flags
alignment: 4
More information about the llvm-commits
mailing list