Skip to content

Commit 9c52f66

Browse files
committed
[NFC][EarlyCSE] Pre-commit unary FNeg tests.
llvm-svn: 368056
1 parent 8bac177 commit 9c52f66

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

llvm/test/Transforms/EarlyCSE/floatingpoint.ll

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,16 @@ define <4 x float> @fW( <4 x float> %a) {
1313
%b = fadd <4 x float> %a, <float -0.0,float -0.0,float -0.0,float -0.0>
1414
ret <4 x float> %b
1515
}
16+
17+
; CSE unary fnegs.
18+
define void @fX(<4 x float> *%p, <4 x float> %a) {
19+
; CHECK: %x = fneg <4 x float> %a
20+
; CHECK: %y = fneg <4 x float> %a
21+
; CHECK-NEXT: store volatile <4 x float> %x, <4 x float>* %p
22+
; CHECK-NEXT: store volatile <4 x float> %y, <4 x float>* %p
23+
%x = fneg <4 x float> %a
24+
%y = fneg <4 x float> %a
25+
store volatile <4 x float> %x, <4 x float>* %p
26+
store volatile <4 x float> %y, <4 x float>* %p
27+
ret void
28+
}

0 commit comments

Comments
 (0)