mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12783 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4ffff9e2fa
commit
77aac1226a
9
test/Transforms/InstCombine/cast-propagate.ll
Normal file
9
test/Transforms/InstCombine/cast-propagate.ll
Normal file
@ -0,0 +1,9 @@
|
||||
; RUN: llvm-as < cast-propagate.ll | opt -instcombine -mem2reg | llvm-dis | not grep load
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user