1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-02 00:42:52 +01:00
llvm-mirror/test/Transforms/InstCombine/cast-propagate.ll

11 lines
280 B
LLVM
Raw Normal View History

; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -mem2reg | llvm-dis | \
; RUN: not grep load
2004-04-08 22:39:40 +02:00
int %test1(uint* %P) {
%A = alloca uint
store uint 123, uint* %A
%Q = cast uint* %A to int* ; Cast the result of the load not the source
%V = load int* %Q
ret int %V
}