mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
0b37dd0efc
This will make it easier to turn on struct-path aware TBAA since the metadata format will change. llvm-svn: 180796
22 lines
494 B
LLVM
22 lines
494 B
LLVM
; RUN: llc < %s -march=mipsel | FileCheck %s
|
|
|
|
@g1 = external global i32
|
|
|
|
define i32 @foo0(i32 %s) nounwind readonly {
|
|
entry:
|
|
; CHECK: movn ${{[0-9]+}}, $zero
|
|
%tobool = icmp ne i32 %s, 0
|
|
%0 = load i32* @g1, align 4
|
|
%cond = select i1 %tobool, i32 0, i32 %0
|
|
ret i32 %cond
|
|
}
|
|
|
|
define i32 @foo1(i32 %s) nounwind readonly {
|
|
entry:
|
|
; CHECK: movz ${{[0-9]+}}, $zero
|
|
%tobool = icmp ne i32 %s, 0
|
|
%0 = load i32* @g1, align 4
|
|
%cond = select i1 %tobool, i32 %0, i32 0
|
|
ret i32 %cond
|
|
}
|