mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
New testcase for a bug in instcombine
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9680 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5ea326a23b
commit
ab13ae8c46
13
test/Transforms/InstCombine/2003-11-03-VarargsCallBug.ll
Normal file
13
test/Transforms/InstCombine/2003-11-03-VarargsCallBug.ll
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
; The cast in this testcase is not eliminatable on a 32-bit target!
|
||||||
|
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep cast
|
||||||
|
|
||||||
|
target endian = little
|
||||||
|
target pointersize = 32
|
||||||
|
|
||||||
|
declare void %foo(...)
|
||||||
|
|
||||||
|
void %test(long %X) {
|
||||||
|
%Y = cast long %X to int*
|
||||||
|
call void (...)* %foo(int* %Y)
|
||||||
|
ret void
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user