linux-packaging-mono/external/llvm/test/Transforms/InstCombine/2006-12-01-BadFPVectorXform.ll
Xamarin Public Jenkins (auto-signing) 8625704ad8 Imported Upstream version 5.18.0.179
Former-commit-id: 67aa10e65b237e1c4537630979ee99ebe1374215
2018-10-25 08:34:57 +00:00

15 lines
535 B
LLVM

; NOTE: Assertions have been autogenerated by update_test_checks.py
; RUN: opt < %s -instcombine -S | FileCheck %s
define <4 x float> @test(<4 x float> %tmp26, <4 x float> %tmp53) {
; (X+Y)-Y != X for fp vectors.
; CHECK-LABEL: @test(
; CHECK-NEXT: [[TMP64:%.*]] = fadd <4 x float> %tmp26, %tmp53
; CHECK-NEXT: [[TMP75:%.*]] = fsub <4 x float> [[TMP64]], %tmp53
; CHECK-NEXT: ret <4 x float> [[TMP75]]
;
%tmp64 = fadd <4 x float> %tmp26, %tmp53
%tmp75 = fsub <4 x float> %tmp64, %tmp53
ret <4 x float> %tmp75
}