aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/Generic/fast-math-flags.ll
blob: 73460aa5d008de7797c08e5d7bd70b221ec4fd4e (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: not llc < %s 2>&1 | FileCheck %s

; CHECK: error: fast-math-flags specified for call without floating-point scalar or vector return type
define i64 @test_lrintf(float %f) {
entry:
  %0 = tail call fast i64 @llvm.lrint.i64.f32(float %f)
  ret i64 %0
}

declare i64 @llvm.lrint.i64.f32(float)