1 ; RUN: not llc < %s -march=nvptx -mcpu=sm_20 2>&1 | FileCheck %s
3 ; Check that we fail to select fcos without fast-math enabled
5 declare float @llvm.cos.f32(float)
7 ; CHECK: LLVM ERROR: Cannot select: {{.*}}: f32 = fcos
8 ; CHECK: In function: test_fcos_safe
9 define float @test_fcos_safe(float %a) #0 {
10 %r = tail call float @llvm.cos.f32(float %a)
14 attributes #0 = { "unsafe-fp-math" = "false" }