diff options
Diffstat (limited to 'test/Analysis/ScalarEvolution/smax.ll')
-rw-r--r-- | test/Analysis/ScalarEvolution/smax.ll | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/Analysis/ScalarEvolution/smax.ll b/test/Analysis/ScalarEvolution/smax.ll index eceb429..122e9e4 100644 --- a/test/Analysis/ScalarEvolution/smax.ll +++ b/test/Analysis/ScalarEvolution/smax.ll @@ -1,8 +1,10 @@ -; RUN: opt < %s -analyze -scalar-evolution | grep smax | count 2 -; RUN: opt < %s -analyze -scalar-evolution | grep \ -; RUN: "%. smax %. smax %." +; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s ; PR1614 +; CHECK: --> (%a smax %b) +; CHECK: --> (%a smax %b smax %c) +; CHECK-NOT: smax + define i32 @x(i32 %a, i32 %b, i32 %c) { %A = icmp sgt i32 %a, %b %B = select i1 %A, i32 %a, i32 %b |