llvm.org GIT mirror llvm / aeb19f8
[NFC][EarlyCSE] Pre-commit unary FNeg tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368056 91177308-0d34-0410-b5e6-96231b3b80d8 Cameron McInally a month ago
1 changed file(s) with 13 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1212 %b = fadd <4 x float> %a,
1313 ret <4 x float> %b
1414 }
15
16 ; CSE unary fnegs.
17 define void @fX(<4 x float> *%p, <4 x float> %a) {
18 ; CHECK: %x = fneg <4 x float> %a
19 ; CHECK: %y = fneg <4 x float> %a
20 ; CHECK-NEXT: store volatile <4 x float> %x, <4 x float>* %p
21 ; CHECK-NEXT: store volatile <4 x float> %y, <4 x float>* %p
22 %x = fneg <4 x float> %a
23 %y = fneg <4 x float> %a
24 store volatile <4 x float> %x, <4 x float>* %p
25 store volatile <4 x float> %y, <4 x float>* %p
26 ret void
27 }