brintos

brintos / llvm-project-archived public Read only

0
0
Text · 423 B · df3b2a3 Raw
15 lines · plain
1; RUN: not --crash llc < %s -mtriple=nvptx -mcpu=sm_20 2>&1 | FileCheck %s2 3; Check that we fail to select fcos without fast-math enabled4 5declare float @llvm.cos.f32(float)6 7; CHECK: LLVM ERROR: Cannot select: {{.*}}: f32 = fcos8; CHECK: In function: test_fcos_safe9define float @test_fcos_safe(float %a) #0 {10  %r = tail call float @llvm.cos.f32(float %a)11  ret float %r12}13 14attributes #0 = { "unsafe-fp-math" = "false" }15