From f536e5debc0839fdc168fcaf898523130ca74e15 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Fri, 20 May 2016 20:07:18 +0000 Subject: [PATCH] use FileCheck instead of grep for exact checking llvm-svn: 270265 --- test/Transforms/InstCombine/urem.ll | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/test/Transforms/InstCombine/urem.ll b/test/Transforms/InstCombine/urem.ll index 51084224a73..32aa033ce41 100644 --- a/test/Transforms/InstCombine/urem.ll +++ b/test/Transforms/InstCombine/urem.ll @@ -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 }