brintos

brintos / llvm-project-archived public Read only

0
0
Text · 674 B · 14ad4e6 Raw
21 lines · plain
1; RUN: llc -O0 -verify-machineinstrs -mtriple=spirv-unknown-vulkan %s -o - | FileCheck %s2; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-vulkan %s -o - -filetype=obj | spirv-val %}3; CHECK: OpExtInstImport "GLSL.std.450"4 5define noundef float @ceil_float(float noundef %a) {6entry:7; CHECK: %[[#]] = OpExtInst %[[#]] %[[#]] Ceil %[[#]]8  %elt.ceil = call float @llvm.ceil.f32(float %a)9  ret float %elt.ceil10}11 12define noundef half @ceil_half(half noundef %a) {13entry:14; CHECK: %[[#]] = OpExtInst %[[#]] %[[#]] Ceil %[[#]]15  %elt.ceil = call half @llvm.ceil.f16(half %a)16  ret half %elt.ceil17}18 19declare half @llvm.ceil.f16(half)20declare float @llvm.ceil.f32(float)21