llvm.org GIT mirror llvm / ef6ec86
[NFC][InstSimplify] Update fast-math.ll tests I botched in r360808. These were new tests I added in r360808. I made a mistake while converting the exisiting binary FNeg test into the new unary FNeg tests. Correct that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360928 91177308-0d34-0410-b5e6-96231b3b80d8 Cameron McInally 4 months ago
1 changed file(s) with 8 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
218218 ; fsub nsz 0.0, (fneg X) ==> X
219219 define float @fneg_x(float %a) {
220220 ; CHECK-LABEL: @fneg_x(
221 ; CHECK-NEXT: [[T1:%.*]] = fsub float 0.000000e+00, [[A:%.*]]
222 ; CHECK-NEXT: [[RET:%.*]] = fneg nsz float [[T1]]
221 ; CHECK-NEXT: [[T1:%.*]] = fneg float [[A:%.*]]
222 ; CHECK-NEXT: [[RET:%.*]] = fsub nsz float 0.000000e+00, [[T1]]
223223 ; CHECK-NEXT: ret float [[RET]]
224224 ;
225 %t1 = fsub float 0.0, %a
226 %ret = fneg nsz float %t1
225 %t1 = fneg float %a
226 %ret = fsub nsz float 0.0, %t1
227227 ret float %ret
228228 }
229229
238238
239239 define <2 x float> @fneg_x_vec_undef1(<2 x float> %a) {
240240 ; CHECK-LABEL: @fneg_x_vec_undef1(
241 ; CHECK-NEXT: [[T1:%.*]] = fsub <2 x float> , [[A:%.*]]
242 ; CHECK-NEXT: [[RET:%.*]] = fneg nsz <2 x float> [[T1]]
241 ; CHECK-NEXT: [[T1:%.*]] = fneg <2 x float> [[A:%.*]]
242 ; CHECK-NEXT: [[RET:%.*]] = fsub nsz <2 x float> , [[T1]]
243243 ; CHECK-NEXT: ret <2 x float> [[RET]]
244244 ;
245 %t1 = fsub <2 x float> , %a
246 %ret = fneg nsz <2 x float> %t1
245 %t1 = fneg <2 x float> %a
246 %ret = fsub nsz <2 x float> , %t1
247247 ret <2 x float> %ret
248248 }
249249