mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
36c7c9d42d
Add an extra run with -regalloc=basic to keep them honest. llvm-svn: 128654
17 lines
539 B
LLVM
Executable File
17 lines
539 B
LLVM
Executable File
; RUN: llc -march=mips -mcpu=4ke < %s | FileCheck %s
|
|
; RUN: llc -march=mips -mcpu=4ke -regalloc=basic < %s | FileCheck %s
|
|
|
|
@i1 = global [3 x i32] [i32 1, i32 2, i32 3], align 4
|
|
@i3 = common global i32* null, align 4
|
|
|
|
; CHECK: lw ${{[0-9]+}}, %got(i3)($gp)
|
|
; CHECK: addiu ${{[0-9]+}}, $gp, %got(i1)
|
|
define i32* @cmov1(i32 %s) nounwind readonly {
|
|
entry:
|
|
%tobool = icmp ne i32 %s, 0
|
|
%tmp1 = load i32** @i3, align 4
|
|
%cond = select i1 %tobool, i32* getelementptr inbounds ([3 x i32]* @i1, i32 0, i32 0), i32* %tmp1
|
|
ret i32* %cond
|
|
}
|
|
|