diff options
author | Tim Northover <tnorthover@apple.com> | 2016-07-07 17:51:42 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2016-07-07 17:51:42 +0000 |
commit | 415b2015a4d001f11b199db2746c41e9c90a1547 (patch) | |
tree | 18c82ae38daf9dc8e0eb7176f91e2fec34d54b39 /test/TableGen/trydecode-emission3.td | |
parent | f3b3b0c8bbb9ba97d06079af35ad64d2e3fb2089 (diff) |
tests: accept different TargetOpcode values.
These tests don't actually care about the internal opcode number, but have to
be updated whenever we add a new one for GlobalISel. That's bad.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274774 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TableGen/trydecode-emission3.td')
-rw-r--r-- | test/TableGen/trydecode-emission3.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/TableGen/trydecode-emission3.td b/test/TableGen/trydecode-emission3.td index d84edb065bd..7f7e91794e6 100644 --- a/test/TableGen/trydecode-emission3.td +++ b/test/TableGen/trydecode-emission3.td @@ -37,8 +37,8 @@ def InstB : TestInstruction { // CHECK: /* 0 */ MCD::OPC_ExtractField, 4, 4, // Inst{7-4} ... // CHECK-NEXT: /* 3 */ MCD::OPC_FilterValue, 0, 14, 0, // Skip to: 21 // CHECK-NEXT: /* 7 */ MCD::OPC_CheckField, 2, 2, 0, 5, 0, // Skip to: 18 -// CHECK-NEXT: /* 13 */ MCD::OPC_TryDecode, 28, 0, 0, 0, // Opcode: InstB, skip to: 18 -// CHECK-NEXT: /* 18 */ MCD::OPC_Decode, 27, 1, // Opcode: InstA +// CHECK-NEXT: /* 13 */ MCD::OPC_TryDecode, {{[0-9]+}}, 0, 0, 0, // Opcode: InstB, skip to: 18 +// CHECK-NEXT: /* 18 */ MCD::OPC_Decode, {{[0-9]+}}, 1, // Opcode: InstA // CHECK-NEXT: /* 21 */ MCD::OPC_Fail, // CHECK: if (DecodeInstBOp(MI, tmp, Address, Decoder) == MCDisassembler::Fail) { DecodeComplete = false; return MCDisassembler::Fail; } |