1; The goal of the test is to check that only one "OpTypeInt 8" instruction 2; is generated for a series of LLVM integer types with number of bits less 3; than 8. 4 5; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV 6; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %} 7 8; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV 9; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown %s -o - -filetype=obj | spirv-val %} 10 11; CHECK-SPIRV: %[[#CharTy:]] = OpTypeInt 8 0 12; CHECK-SPIRV-NO: %[[#CharTy:]] = OpTypeInt 8 0 13 14define spir_func void @foo(i2 %a, i4 %b) { 15entry: 16 ret void 17} 18