[LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)
[llvm-project.git] / llvm / test / CodeGen / SPIRV / hlsl-intrinsics / round.ll
blobbaf20833840b6509cef721807b5ded5e409ecece
1 ; RUN: llc -O0 -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 %}
4 ; CHECK: OpExtInstImport "GLSL.std.450"
6 define noundef float @round_float(float noundef %a) {
7 entry:
8 ; CHECK: %[[#]] = OpExtInst %[[#]] %[[#]] RoundEven %[[#]]
9   %elt.roundeven = call float @llvm.roundeven.f32(float %a)
10   ret float %elt.roundeven
13 define noundef half @round_half(half noundef %a) {
14 entry:
15 ; CHECK: %[[#]] = OpExtInst %[[#]] %[[#]] RoundEven %[[#]]
16   %elt.roundeven = call half @llvm.roundeven.f16(half %a)
17   ret half %elt.roundeven
20 declare half @llvm.roundeven.f16(half)
21 declare float @llvm.roundeven.f32(float)