[llvm] r270265 - use FileCheck instead of grep for exact checking
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Fri May 20 13:07:19 PDT 2016
Author: spatel
Date: Fri May 20 15:07:18 2016
New Revision: 270265
URL: http://llvm.org/viewvc/llvm-project?rev=270265&view=rev
Log:
use FileCheck instead of grep for exact checking
Modified:
llvm/trunk/test/Transforms/InstCombine/urem.ll
Modified: llvm/trunk/test/Transforms/InstCombine/urem.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/urem.ll?rev=270265&r1=270264&r2=270265&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/urem.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/urem.ll Fri May 20 15:07:18 2016
@@ -1,8 +1,13 @@
-; RUN: opt < %s -instcombine -S | grep urem
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt < %s -instcombine -S | FileCheck %s
define i64 @rem_unsigned(i64 %x1, i64 %y2) {
- %r = udiv i64 %x1, %y2
- %r7 = mul i64 %r, %y2
- %r8 = sub i64 %x1, %r7
- ret i64 %r8
+; CHECK-LABEL: @rem_unsigned(
+; CHECK-NEXT: [[R:%.*]] = urem i64 %x1, %y2
+; CHECK-NEXT: ret i64 [[R]]
+;
+ %r = udiv i64 %x1, %y2
+ %r7 = mul i64 %r, %y2
+ %r8 = sub i64 %x1, %r7
+ ret i64 %r8
}
More information about the llvm-commits
mailing list