2016-03-26 02:03:40 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by update_test_checks.py
|
|
|
|
; RUN: opt < %s -instcombine -S | FileCheck %s
|
2006-12-02 08:12:32 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
define <4 x float> @test(<4 x float> %tmp26, <4 x float> %tmp53) {
|
|
|
|
; (X+Y)-Y != X for fp vectors.
|
2016-03-26 02:03:40 +08:00
|
|
|
; CHECK-LABEL: @test(
|
2016-04-06 01:24:54 +08:00
|
|
|
; CHECK-NEXT: [[TMP64:%.*]] = fadd <4 x float> %tmp26, %tmp53
|
2016-03-26 02:03:40 +08:00
|
|
|
; 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
|
2006-12-02 08:12:32 +08:00
|
|
|
}
|