13 lines · plain
1; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s2 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 810; CHECK-DAG: [[VECTOR:%.+]] = OpTypeVector [[I8]]11; CHECK-DAG: [[CST_I8:%.+]] = OpConstant [[I8]] 112; CHECK-DAG: [[CST_VECTOR:%.+]] = OpConstantComposite [[VECTOR]] [[CST_I8]] [[CST_I8]] [[CST_I8]] [[CST_I8]]13