mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-19 01:13:25 +00:00
559254b697
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73633 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
392 B
LLVM
13 lines
392 B
LLVM
; RUN: llvm-as < %s | opt -analyze -scalar-evolution -disable-output | grep smax | count 2
|
|
; RUN: llvm-as < %s | opt -analyze -scalar-evolution -disable-output | grep \
|
|
; RUN: {%. smax %. smax %.}
|
|
; PR1614
|
|
|
|
define i32 @x(i32 %a, i32 %b, i32 %c) {
|
|
%A = icmp sgt i32 %a, %b
|
|
%B = select i1 %A, i32 %a, i32 %b
|
|
%C = icmp sle i32 %c, %B
|
|
%D = select i1 %C, i32 %B, i32 %c
|
|
ret i32 %D
|
|
}
|