summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-10-05 21:43:50 +0000
committerSanjay Patel <spatel@rotateright.com>2016-10-05 21:43:50 +0000
commit5839858584a4e78ff1be293ca5b5e5df15ae081b (patch)
tree03b1c4fe68eb820bc7c9b246bf4084347bc68222 /llvm/test
parentd381c9842b059d3eef123c76d336881da81aff97 (diff)
downloadbcm5719-llvm-5839858584a4e78ff1be293ca5b5e5df15ae081b.tar.gz
bcm5719-llvm-5839858584a4e78ff1be293ca5b5e5df15ae081b.zip
[DAG] change test to use 'unsafe' function attribute instead of global setting
But we have node-level FMF, so the next step is to fix this at the instruction/node-level. llvm-svn: 283393
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/negative-sin.ll15
1 files changed, 11 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/X86/negative-sin.ll b/llvm/test/CodeGen/X86/negative-sin.ll
index 76e557b8422..51ee02ee944 100644
--- a/llvm/test/CodeGen/X86/negative-sin.ll
+++ b/llvm/test/CodeGen/X86/negative-sin.ll
@@ -1,12 +1,19 @@
-; RUN: llc < %s -enable-unsafe-fp-math -march=x86-64 | FileCheck %s
-; CHECK-NOT: {{addsd|subsd|xor}}
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
declare double @sin(double %f)
-define double @foo(double %e)
-{
+define double @foo(double %e) nounwind #0 {
+; CHECK-LABEL: foo:
+; CHECK: # BB#0:
+; CHECK-NEXT: jmp sin
+;
%f = fsub double 0.0, %e
%g = call double @sin(double %f) readonly
%h = fsub double 0.0, %g
ret double %h
}
+
+; FIXME: Check the instruction/node-level FMF instead of a function-level attribute.
+attributes #0 = { "unsafe-fp-math"="true" }
+
OpenPOWER on IntegriCloud