Skip to content

Commit 72dafa1

Browse files
authored
[TableGen, CHERI] Make CPtrWildcard test tolerant to unrelated changes (llvm#161406)
Changes to llvm/include/llvm/IR/Intrinsics.td may change the constants that are embedded in this test. Use wildcards, so that unrelated changes do not trip over this test failing. Fixes: llvm#158426
1 parent b40feb9 commit 72dafa1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/test/TableGen/CPtrWildcard.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55

66
// CHECK: static const unsigned char MatcherTable[] = {
77
// CHECK-NEXT: /* 0*/ OPC_CheckOpcode, TARGET_VAL(ISD::INTRINSIC_WO_CHAIN),
8-
// CHECK-NEXT:/* 3*/ OPC_CheckChild0Integer, 42,
8+
// CHECK-NEXT:/* 3*/ OPC_CheckChild0Integer, [[#]],
99
// CHECK-NEXT:/* 5*/ OPC_RecordChild1, // #0 = $src
1010
// CHECK-NEXT:/* 6*/ OPC_Scope, 9, /*->17*/ // 2 children in Scope
1111
// CHECK-NEXT:/* 8*/ OPC_CheckChild1Type, /*MVT::c64*/126|128,1/*254*/,
1212
// CHECK-NEXT:/* 11*/ OPC_MorphNodeTo1None, TARGET_VAL(MyTarget::C64_TO_I64),
1313
// CHECK-NEXT: /*MVT::i64*/8, 1/*#Ops*/, 0,
14-
// CHECK-NEXT: // Src: (intrinsic_wo_chain:{ *:[i64] } 21:{ *:[iPTR] }, c64:{ *:[c64] }:$src) - Complexity = 8
14+
// CHECK-NEXT: // Src: (intrinsic_wo_chain:{ *:[i64] } [[#]]:{ *:[iPTR] }, c64:{ *:[c64] }:$src) - Complexity = 8
1515
// CHECK-NEXT: // Dst: (C64_TO_I64:{ *:[i64] } ?:{ *:[c64] }:$src)
1616
// CHECK-NEXT:/* 17*/ /*Scope*/ 9, /*->27*/
1717
// CHECK-NEXT:/* 18*/ OPC_CheckChild1Type, /*MVT::c128*/127|128,1/*255*/,
1818
// CHECK-NEXT:/* 21*/ OPC_MorphNodeTo1None, TARGET_VAL(MyTarget::C128_TO_I64),
1919
// CHECK-NEXT: /*MVT::i64*/8, 1/*#Ops*/, 0,
20-
// CHECK-NEXT: // Src: (intrinsic_wo_chain:{ *:[i64] } 21:{ *:[iPTR] }, c128:{ *:[c128] }:$src) - Complexity = 8
20+
// CHECK-NEXT: // Src: (intrinsic_wo_chain:{ *:[i64] } [[#]]:{ *:[iPTR] }, c128:{ *:[c128] }:$src) - Complexity = 8
2121
// CHECK-NEXT: // Dst: (C128_TO_I64:{ *:[i64] } ?:{ *:[c128] }:$src)
2222
// CHECK-NEXT:/* 27*/ 0, /*End of Scope*/
2323
// CHECK-NEXT: 0

0 commit comments

Comments
 (0)