We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 223df5b commit 22afca2Copy full SHA for 22afca2
llvm/test/Transforms/GVN/fpmath.ll
@@ -41,5 +41,16 @@ define double @test4(double %x, double %y) {
41
ret double %foo
42
}
43
44
+define double @test5(double %x, double %y) {
45
+; CHECK: @test5(double %x, double %y)
46
+; CHECK: %neg1 = fneg double %x, !fpmath !0
47
+; CHECK: %neg2 = fneg double %x, !fpmath !1
48
+; CHECK: %foo = fadd double %neg1, %neg2
49
+ %neg1 = fneg double %x, !fpmath !0
50
+ %neg2 = fneg double %x, !fpmath !1
51
+ %foo = fadd double %neg1, %neg2
52
+ ret double %foo
53
+}
54
+
55
!0 = !{ float 5.0 }
56
!1 = !{ float 2.5 }
0 commit comments