[llvm] r264438 - [InstCombine] use FileCheck for better checking
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 25 11:03:40 PDT 2016
Author: spatel
Date: Fri Mar 25 13:03:40 2016
New Revision: 264438
URL: http://llvm.org/viewvc/llvm-project?rev=264438&view=rev
Log:
[InstCombine] use FileCheck for better checking
(testing script for autogeneration of check lines)
Modified:
llvm/trunk/test/Transforms/InstCombine/2006-12-01-BadFPVectorXform.ll
Modified: llvm/trunk/test/Transforms/InstCombine/2006-12-01-BadFPVectorXform.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/2006-12-01-BadFPVectorXform.ll?rev=264438&r1=264437&r2=264438&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/2006-12-01-BadFPVectorXform.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/2006-12-01-BadFPVectorXform.ll Fri Mar 25 13:03:40 2016
@@ -1,9 +1,14 @@
-; RUN: opt < %s -instcombine -S | grep sub
-; RUN: opt < %s -instcombine -S | grep add
+; 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.
- %tmp64 = fadd <4 x float> %tmp26, %tmp53 ; <<4 x float>> [#uses=1]
- %tmp75 = fsub <4 x float> %tmp64, %tmp53 ; <<4 x float>> [#uses=1]
- ret <4 x float> %tmp75
+; CHECK-LABEL: @test(
+; CHECK: [[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
}
More information about the llvm-commits
mailing list