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
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 %}
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 %}
11 ; CHECK-SPIRV: %[[#CharTy:]] = OpTypeInt 8 0
12 ; CHECK-SPIRV-NO: %[[#CharTy:]] = OpTypeInt 8 0
14 define spir_func void @foo(i2 %a, i4 %b) {