1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/CodeGen/X86/isel-sink2.ll
Rafael Espindola 6a6d9e48dd Don't force promotion of return arguments on the callee.
Some architectures (like x86) don't require it.
This fixes bug 3779.

llvm-svn: 67132
2009-03-17 23:43:59 +00:00

18 lines
360 B
LLVM

; RUN: llvm-as < %s | llc -march=x86 > %t
; RUN: grep {movb.7(%...)} %t
; RUN: not grep leal %t
define i8 @test(i32 *%P) nounwind {
%Q = getelementptr i32* %P, i32 1
%R = bitcast i32* %Q to i8*
%S = load i8* %R
%T = icmp eq i8 %S, 0
br i1 %T, label %TB, label %F
TB:
ret i8 4
F:
%U = getelementptr i8* %R, i32 3
%V = load i8* %U
ret i8 %V
}