[NFC][NewGVN] Pre-commit unary FNeg test to fpmath.ll

llvm-svn: 364646
This commit is contained in:
Cameron McInally 2019-06-28 14:39:58 +00:00
parent fa8b9a2b13
commit 35f315d6b5

View File

@ -41,5 +41,16 @@ define double @test4(double %x, double %y) {
ret double %foo
}
define double @test5(double %x) {
; CHECK: @test5(double %x)
; CHECK: %neg1 = fneg double %x, !fpmath !0
; CHECK: %neg2 = fneg double %x, !fpmath !1
; CHECK: %foo = fadd double %neg1, %neg2
%neg1 = fneg double %x, !fpmath !0
%neg2 = fneg double %x, !fpmath !1
%foo = fadd double %neg1, %neg2
ret double %foo
}
!0 = !{ float 5.0 }
!1 = !{ float 2.5 }