Skip to content

Commit 3d90862

Browse files
committed
Fix copy&paste in a test
1 parent 98b675e commit 3d90862

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/test/TableGen/HwModeBitSet.td

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def Feat2 : SubtargetFeature<"feat2", "HasFeat2", "true", "enable feature 2">;
1717
def HasFeat1 : Predicate<"Subtarget->hasFeat1()">,
1818
AssemblerPredicate<(all_of Feat1)>;
1919
def HasFeat2 : Predicate<"Subtarget->hasFeat2()">,
20-
AssemblerPredicate<(all_of Feat1)>;
20+
AssemblerPredicate<(all_of Feat2)>;
2121

2222
def TestMode : HwMode<[HasFeat1]>;
2323
def TestMode1 : HwMode<[HasFeat2]>;
@@ -133,8 +133,8 @@ def foo : Instruction {
133133
// CHECK-SUBTARGET-NEXT: // Collect HwModes and store them as a bit set.
134134
// CHECK-SUBTARGET-NEXT: unsigned Modes = 0;
135135
// CHECK-SUBTARGET-NEXT: if (FB[TestTarget::Feat1]) Modes |= (1 << 0);
136-
// CHECK-SUBTARGET-NEXT: if (FB[TestTarget::Feat1]) Modes |= (1 << 1);
137-
// CHECK-SUBTARGET-NEXT: if (FB[TestTarget::Feat1] && FB[TestTarget::Feat1]) Modes |= (1 << 2);
136+
// CHECK-SUBTARGET-NEXT: if (FB[TestTarget::Feat2]) Modes |= (1 << 1);
137+
// CHECK-SUBTARGET-NEXT: if (FB[TestTarget::Feat1] && FB[TestTarget::Feat2]) Modes |= (1 << 2);
138138
// CHECK-SUBTARGET-NEXT: return Modes;
139139
// CHECK-SUBTARGET-NEXT: }
140140

@@ -180,4 +180,3 @@ def foo : Instruction {
180180
// CHECK-SUBTARGET: llvm_unreachable("unexpected HwModeType");
181181
// CHECK-SUBTARGET: return 0; // should not get here
182182
// CHECK-SUBTARGET: }
183-

0 commit comments

Comments
 (0)