From 747cccf0dc345ab63894ce498233868cf110b717 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Mon, 12 Mar 2012 11:19:28 +0000 Subject: [PATCH] FileCheck-ize this test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152554 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/Inline/inline_constprop.ll | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/Transforms/Inline/inline_constprop.ll b/test/Transforms/Inline/inline_constprop.ll index 537c69b305c..18edf15ab45 100644 --- a/test/Transforms/Inline/inline_constprop.ll +++ b/test/Transforms/Inline/inline_constprop.ll @@ -1,14 +1,14 @@ -; RUN: opt < %s -inline -S | not grep callee -; RUN: opt < %s -inline -S | not grep div +; RUN: opt < %s -inline -S | FileCheck %s - -define internal i32 @callee(i32 %A, i32 %B) { - %C = sdiv i32 %A, %B ; [#uses=1] - ret i32 %C +define internal i32 @callee1(i32 %A, i32 %B) { + %C = sdiv i32 %A, %B + ret i32 %C } -define i32 @test() { - %X = call i32 @callee( i32 10, i32 3 ) ; [#uses=1] - ret i32 %X -} +define i32 @caller1() { +; CHECK: define i32 @caller1 +; CHECK-NEXT: ret i32 3 + %X = call i32 @callee1( i32 10, i32 3 ) + ret i32 %X +} -- 2.34.1