1; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s 2 3;; TODO: Add test for matrix. But how are they represented in LLVM IR? 4 5define <4 x i8> @getVectorConstant() { 6 ret <4 x i8> <i8 1, i8 1, i8 1, i8 1> 7} 8 9; CHECK-DAG: [[I8:%.+]] = OpTypeInt 8 10; CHECK-DAG: [[VECTOR:%.+]] = OpTypeVector [[I8]] 11; CHECK-DAG: [[CST_I8:%.+]] = OpConstant [[I8]] 1 12; CHECK-DAG: [[CST_VECTOR:%.+]] = OpConstantComposite [[VECTOR]] [[CST_I8]] [[CST_I8]] [[CST_I8]] [[CST_I8]] 13