aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/NVPTX/fcos-no-fast-math.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/NVPTX/fcos-no-fast-math.ll')
-rw-r--r--test/CodeGen/NVPTX/fcos-no-fast-math.ll14
1 files changed, 0 insertions, 14 deletions
diff --git a/test/CodeGen/NVPTX/fcos-no-fast-math.ll b/test/CodeGen/NVPTX/fcos-no-fast-math.ll
deleted file mode 100644
index d435c1d14fee..000000000000
--- a/test/CodeGen/NVPTX/fcos-no-fast-math.ll
+++ /dev/null
@@ -1,14 +0,0 @@
-; RUN: not llc < %s -march=nvptx -mcpu=sm_20 2>&1 | FileCheck %s
-
-; Check that we fail to select fcos without fast-math enabled
-
-declare float @llvm.cos.f32(float)
-
-; CHECK: LLVM ERROR: Cannot select: {{.*}}: f32 = fcos
-; CHECK: In function: test_fcos_safe
-define float @test_fcos_safe(float %a) #0 {
- %r = tail call float @llvm.cos.f32(float %a)
- ret float %r
-}
-
-attributes #0 = { "unsafe-fp-math" = "false" }