xref: /llvm-project/llvm/test/CodeGen/Generic/fast-math-flags.ll (revision e62912b19063937a55e10064266888c0534b2211)
1; RUN: not llc < %s 2>&1 | FileCheck %s
2
3; CHECK: error: fast-math-flags specified for call without floating-point scalar or vector return type
4define i64 @test_lrintf(float %f) {
5entry:
6  %0 = tail call fast i64 @llvm.lrint.i64.f32(float %f)
7  ret i64 %0
8}
9
10declare i64 @llvm.lrint.i64.f32(float)
11