aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorReinUsesLisp <[email protected]>2018-08-27 00:38:25 -0300
committerReinUsesLisp <[email protected]>2018-08-27 00:38:25 -0300
commit765c8833c49279ec7303f32cf3fd095831554466 (patch)
treeba85d2c8552b54a1c051f4ef15d0ba6ad420ba33 /tests
parent48cbe695f01df6801ba5bbf0bd591f3c3c9f9f5f (diff)
downloadsirit-765c8833c49279ec7303f32cf3fd095831554466.tar.gz
sirit-765c8833c49279ec7303f32cf3fd095831554466.zip
Add OpConstantComposite
Diffstat (limited to 'tests')
-rw-r--r--tests/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index 7a3236b..2f60422 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -48,6 +48,9 @@ public:
Constant(TypeInt(32, false), Literal(30u));
Constant(TypeInt(16, false), Literal(30u));
Constant(TypeInt(8, false), Literal(30u));
+ ConstantComposite(TypeVector(TypeFloat(32), 2),
+ {Constant(TypeFloat(32), Literal(50.0f)),
+ Constant(TypeFloat(32), Literal(50.0f))});
auto main_type{TypeFunction(TypeVoid())};
auto main_func{Emit(Function(TypeVoid(), spv::FunctionControlMask::MaskNone, main_type))};