1 ; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV
2 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown %s -o - -filetype=obj | spirv-val %}
3 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
5 ; CHECK-SPIRV: OpSelect
7 ;; LLVM IR was generated with -cl-std=c++ option
9 define spir_kernel void @test(i32 %op1, i32 %op2) {
11 %0 = trunc i8 undef to i1
12 %call = call spir_func i32 @_Z14__spirv_Selectbii(i1 zeroext %0, i32 %op1, i32 %op2)
16 declare spir_func i32 @_Z14__spirv_Selectbii(i1 zeroext, i32, i32)