1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Precommit an FNeg InstructionSimplify test.

llvm-svn: 359990
This commit is contained in:
Cameron McInally 2019-05-05 18:22:09 +00:00
parent 32679e4775
commit f4f6501889

View File

@ -17,6 +17,17 @@ define float @fneg_undef() {
ret float %r
}
define float @fneg_fneg_var(float %a) {
; CHECK-LABEL: @fneg_fneg_var(
; CHECK-NEXT: [[R:%.*]] = fneg float [[A:%.*]]
; CHECK-NEXT: [[R1:%.*]] = fneg float [[R]]
; CHECK-NEXT: ret float [[R1]]
;
%r = fneg float %a
%r1 = fneg float %r
ret float %r1
}
define <4 x float> @fneg_constant_elts_v4f32() {
; CHECK-LABEL: @fneg_constant_elts_v4f32(
; CHECK-NEXT: ret <4 x float> <float 0.000000e+00, float -0.000000e+00, float 1.000000e+00, float -1.000000e+00>