2017-08-02 08:28:10 +08:00
|
|
|
; RUN: llc < %s -mtriple=i686-- -mcpu=yonah | FileCheck %s
|
2012-07-03 11:58:59 +08:00
|
|
|
; CHECK-NOT: {{j[lgbe]}}
|
2004-03-31 06:36:52 +08:00
|
|
|
|
2010-03-15 06:31:16 +08:00
|
|
|
define i32 @max(i32 %A, i32 %B) nounwind {
|
2008-03-25 12:26:08 +08:00
|
|
|
%gt = icmp sgt i32 %A, %B ; <i1> [#uses=1]
|
|
|
|
%R = select i1 %gt, i32 %A, i32 %B ; <i32> [#uses=1]
|
|
|
|
ret i32 %R
|
2004-03-31 06:36:52 +08:00
|
|
|
}
|
2008-03-25 12:26:08 +08:00
|
|
|
|