llvm/test/CodeGen/SPIRV/llvm-intrinsics/nearbyint.ll
raw| 1 | ; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s |
| 2 | |
| 3 | ; CHECK: %[[#]] = OpExtInst %[[#]] %[[#]] rint |
| 4 | |
| 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 |
| 9 | } |
| 10 | |
| 11 | declare float @llvm.nearbyint.f32(float) |