1 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
3 ;; TODO: Add test for matrix. But how are they represented in LLVM IR?
5 define <4 x i8> @getVectorConstant() {
6 ret <4 x i8> <i8 1, i8 1, i8 1, i8 1>
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]]