Adding validation for OpSpecConstantComposite.
authorEhsan Nasiri <ehsann@google.com>
Wed, 16 Nov 2016 16:04:13 +0000 (11:04 -0500)
committerDavid Neto <dneto@google.com>
Sat, 19 Nov 2016 20:47:28 +0000 (15:47 -0500)
commit6fa6a3f64703745425bab6bf51da984f765656e2
treeb200cbf2dab25e672d56e4ff9180fe2f4354171c
parent8c414eb5798768f09d20f98df53bb15428ef2083
Adding validation for OpSpecConstantComposite.

SpecConstantComposite may specialize to a vector, matrix, array, or
struct. In each case, the number of components and type of components
that are being specialized to must match the expected result type.

Removed use of macros in these tests.
Now using the spvValidateBase class. Using CompileSuccessfully(), and
ValidateInstructions() to compile to binary and run the validator. Also
using getDiagnosticString() to check the proper error message string.
All the heavy lifting is done in ValidateBase class.
source/validate_id.cpp
test/val/val_id_test.cpp