mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 23:31:32 +00:00
9 lines
182 B
LLVM
9 lines
182 B
LLVM
|
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep cast
|
||
|
target pointersize = 32
|
||
|
|
||
|
int *%test(int *%P) {
|
||
|
%V = cast int* %P to int
|
||
|
%P2 = cast int %V to int*
|
||
|
ret int* %P2
|
||
|
}
|