mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
69ccadd753
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32115 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
281 B
LLVM
11 lines
281 B
LLVM
; This testcase should have the cast propogated through the load
|
|
; just like a store does...
|
|
;
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -raise | llvm-dis | not grep 'bitcast uint \*'
|
|
|
|
int "test"(uint * %Ptr) {
|
|
%P2 = cast uint *%Ptr to int *
|
|
%Val = load int * %P2
|
|
ret int %Val
|
|
}
|