2017-08-02 08:28:10 +08:00
|
|
|
; RUN: llc -mtriple=i686-- -mcpu=i486 < %s | FileCheck %s
|
2013-02-23 18:40:58 +08:00
|
|
|
|
|
|
|
define i32 @test1(i32 %g, i32* %j) {
|
|
|
|
%tobool = icmp eq i32 %g, 0
|
2015-02-28 05:17:42 +08:00
|
|
|
%cmp = load i32, i32* %j, align 4
|
2013-02-23 18:40:58 +08:00
|
|
|
%retval.0 = select i1 %tobool, i32 1, i32 %cmp
|
|
|
|
ret i32 %retval.0
|
|
|
|
|
2013-07-14 04:38:47 +08:00
|
|
|
; CHECK-LABEL: test1:
|
2013-02-23 18:40:58 +08:00
|
|
|
; CHECK-NOT: cmov
|
|
|
|
}
|