1; RUN: llc -O0 -verify-machineinstrs -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s 2; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - -filetype=obj | spirv-val %} 3 4; CHECK: OpExtInstImport "GLSL.std.450" 5 6define noundef float @cos_float(float noundef %a) { 7entry: 8; CHECK: %[[#]] = OpExtInst %[[#]] %[[#]] Cos %[[#]] 9 %elt.cos = call float @llvm.cos.f32(float %a) 10 ret float %elt.cos 11} 12 13define noundef half @cos_half(half noundef %a) { 14entry: 15; CHECK: %[[#]] = OpExtInst %[[#]] %[[#]] Cos %[[#]] 16 %elt.cos = call half @llvm.cos.f16(half %a) 17 ret half %elt.cos 18} 19 20declare half @llvm.cos.f16(half) 21declare float @llvm.cos.f32(float) 22