Skip to content

Commit eb5623d

Browse files
committed
[MacroFusion] Complete tests and fix indents
1 parent 110f630 commit eb5623d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

llvm/test/TableGen/MacroFusion.td

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ def TestBothFusionPredicate: Fusion<"test-both-fusion-predicate", "HasBothFusion
4242
def TestFusion: SimpleFusion<"test-fusion", "HasTestFusion", "Test Fusion",
4343
CheckOpcode<[Inst0]>,
4444
CheckAll<[
45-
CheckOpcode<[Inst1]>,
46-
CheckRegOperand<0, X0>
45+
CheckOpcode<[Inst1]>,
46+
CheckRegOperand<0, X0>
4747
]>>;
4848

4949
let IsCommutable = 1 in
5050
def TestCommutableFusion: SimpleFusion<"test-commutable-fusion", "HasTestCommutableFusion",
5151
"Test Commutable Fusion",
5252
CheckOpcode<[Inst0]>,
5353
CheckAll<[
54-
CheckOpcode<[Inst1]>,
55-
CheckRegOperand<0, X0>
54+
CheckOpcode<[Inst1]>,
55+
CheckRegOperand<0, X0>
5656
]>>;
5757

5858
// CHECK-PREDICATOR: #ifdef GET_Test_MACRO_FUSION_PRED_DECL
@@ -177,6 +177,8 @@ def TestCommutableFusion: SimpleFusion<"test-commutable-fusion", "HasTestCommuta
177177
// CHECK-PREDICATOR-NEXT: #endif
178178

179179
// Check that we have generated target subfeature.
180+
// CHECK-SUBTARGET: { "test-both-fusion-predicate", "Test BothFusionPredicate", Test::TestBothFusionPredicate
181+
// CHECK-SUBTARGET: { "test-commutable-fusion", "Test Commutable Fusion", Test::TestCommutableFusion
180182
// CHECK-SUBTARGET: { "test-fusion", "Test Fusion", Test::TestFusion
181183

182184
// Check that we have generated `getMacroFusions()` function.

0 commit comments

Comments
 (0)