projects
/
platform
/
upstream
/
SPIRV-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3ead50
)
Use spvOpcodeMake() in ImmediateInt tests.
author
Dejan Mircevski
<deki@google.com>
Thu, 3 Sep 2015 18:28:41 +0000
(14:28 -0400)
committer
David Neto
<dneto@google.com>
Mon, 26 Oct 2015 16:52:01 +0000
(12:52 -0400)
test/ImmediateInt.cpp
patch
|
blob
|
history
diff --git
a/test/ImmediateInt.cpp
b/test/ImmediateInt.cpp
index
c52f582
..
7bc25f1
100644
(file)
--- a/
test/ImmediateInt.cpp
+++ b/
test/ImmediateInt.cpp
@@
-86,7
+86,8
@@
TEST_F(ImmediateIntTest, InvalidStatementBetweenValidOnes) {
EXPECT_THAT(
Subvector(CompileSuccessfully("OpTypeFloat %10 32 !5 !6 !7 OpEmitVertex"),
kFirstInstruction),
- ElementsAre(0x00030016, 10, 32, 5, 6, 7, 0x000100DA));
+ ElementsAre(spvOpcodeMake(3, spv::OpTypeFloat), 10, 32, 5, 6, 7,
+ spvOpcodeMake(1, spv::OpEmitVertex)));
}
TEST_F(ImmediateIntTest, NextOpcodeRecognized) {