mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-07 11:51:13 +00:00
[NFC][NewGVN] Pre-commit unary FNeg test to fpmath.ll
llvm-svn: 364646
This commit is contained in:
parent
fa8b9a2b13
commit
35f315d6b5
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user