[TTI] getTypeBasedIntrinsicInstrCost - add basic handling for strided load/store...
[llvm-project.git] / llvm / test / CodeGen / SPIRV / llvm-intrinsics / nearbyint.ll
blob7405ca4d64d196446091d6e88b1007a4effc3cfa
1 ; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
3 ; CHECK: %[[#]] = OpExtInst %[[#]] %[[#]] rint
5 define dso_local spir_func float @foo(float %x) local_unnamed_addr {
6 entry:
7   %0 = tail call float @llvm.nearbyint.f32(float %x)
8   ret float %0
11 declare float @llvm.nearbyint.f32(float)