Validation for Composite Extract and Insert.
authorEhsan Nasiri <ehsann@google.com>
Wed, 4 Jan 2017 20:56:17 +0000 (15:56 -0500)
committerDavid Neto <dneto@google.com>
Fri, 6 Jan 2017 22:14:38 +0000 (17:14 -0500)
commitd1868b93618181cd765ea16aa4aec8de9f4d3b2b
treee540b545197d0840d4a41f27dc59fc24554dfe64
parent109ce225c9f7538ab56d52f036a08f16a15327a0
Validation for Composite Extract and Insert.

The validity of each command is checked based on the descripton in
SPIR-V Spec Section 3.32.12 (Composite Instructions).

Also checked that the number of indexes passed to these commands does
not exceed the limit described in 2.17 (Universal Limits).

Also added unit tests for each one.
source/validate_id.cpp
test/val/val_id_test.cpp