Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 2a4f206

Browse files
committed
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283393 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 8be61a8 commit 2a4f206

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

test/CodeGen/X86/negative-sin.ll

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1-
; RUN: llc < %s -enable-unsafe-fp-math -march=x86-64 | FileCheck %s
2-
; CHECK-NOT: {{addsd|subsd|xor}}
1+
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2+
; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
33

44
declare double @sin(double %f)
55

6-
define double @foo(double %e)
7-
{
6+
define double @foo(double %e) nounwind #0 {
7+
; CHECK-LABEL: foo:
8+
; CHECK: # BB#0:
9+
; CHECK-NEXT: jmp sin
10+
;
811
%f = fsub double 0.0, %e
912
%g = call double @sin(double %f) readonly
1013
%h = fsub double 0.0, %g
1114
ret double %h
1215
}
16+
17+
; FIXME: Check the instruction/node-level FMF instead of a function-level attribute.
18+
attributes #0 = { "unsafe-fp-math"="true" }
19+

0 commit comments

Comments
 (0)