diff options
| author | Guillaume Chatelet <gchatelet@google.com> | 2018-06-20 11:09:36 +0000 |
|---|---|---|
| committer | Guillaume Chatelet <gchatelet@google.com> | 2018-06-20 11:09:36 +0000 |
| commit | 1ebb67535fb3766b69480f229dcfa8eb3857870b (patch) | |
| tree | 00f561406243d8fae95eda5b2ca242f17e3ed8f3 /llvm/unittests/tools | |
| parent | c7c9d76187281a9bb78518e40b2b587877a1a2b3 (diff) | |
| download | bcm5719-llvm-1ebb67535fb3766b69480f229dcfa8eb3857870b.tar.gz bcm5719-llvm-1ebb67535fb3766b69480f229dcfa8eb3857870b.zip | |
[llvm-exegesis] Fix failing test.
Reviewers: courbet
Subscribers: tschuett, llvm-commits
Differential Revision: https://reviews.llvm.org/D48358
llvm-svn: 335115
Diffstat (limited to 'llvm/unittests/tools')
| -rw-r--r-- | llvm/unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp b/llvm/unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp index aef137b16e3..d746bfc756f 100644 --- a/llvm/unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp +++ b/llvm/unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp @@ -20,6 +20,8 @@ namespace exegesis { namespace { +using testing::AnyOf; +using testing::ElementsAre; using testing::HasSubstr; using testing::Not; using testing::SizeIs; @@ -119,8 +121,8 @@ TEST_F(LatencySnippetGeneratorTest, DependencyThroughOtherOpcode) { const InstructionInstance &II = Proto.Snippet[0]; EXPECT_THAT(II.getOpcode(), Opcode); ASSERT_THAT(II.VariableValues, SizeIs(2)); - EXPECT_THAT(II.VariableValues[0], IsReg()); - EXPECT_THAT(II.VariableValues[1], IsInvalid()); + EXPECT_THAT(II.VariableValues, AnyOf(ElementsAre(IsReg(), IsInvalid()), + ElementsAre(IsInvalid(), IsReg()))); EXPECT_THAT(Proto.Snippet[1].getOpcode(), Not(Opcode)); // TODO: check that the two instructions alias each other. } |

