Artem Belevich | d109f46 | 2017-01-13 18:48:13 +0000 | [diff] [blame] | 1 | ; RUN: not llc < %s -march=nvptx -mcpu=sm_20 2>&1 | FileCheck %s |
2 | |||||
3 | ; Check that we fail to select fsin without fast-math enabled | ||||
4 | |||||
5 | declare float @llvm.sin.f32(float) | ||||
6 | |||||
7 | ; CHECK: LLVM ERROR: Cannot select: {{.*}}: f32 = fsin | ||||
8 | ; CHECK: In function: test_fsin_safe | ||||
9 | define float @test_fsin_safe(float %a) #0 { | ||||
10 | %r = tail call float @llvm.sin.f32(float %a) | ||||
11 | ret float %r | ||||
12 | } | ||||
13 | |||||
14 | attributes #0 = { "unsafe-fp-math" = "false" } |