mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 22:43:29 +00:00
651c5ed3e8
Upgrade to new Tcl exec based test framework. This exposes three regressions in llvm-upgrade: test/Assembler/2002-08-19-BytecodeReader.llx test/Assembler/2003-08-21-ConstantExprCast-Fold.llx test/Assembler/2004-01-11-getelementptrfolding.llx llvm-svn: 36067
21 lines
555 B
LLVM
21 lines
555 B
LLVM
; PR1137
|
|
; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
|
|
; RUN: llvm-upgrade < %s | grep {tmp = alloca} | wc -l | grep 1
|
|
;
|
|
target datalayout = "e-p:32:32"
|
|
target endian = little
|
|
target pointersize = 32
|
|
target triple = "i686-pc-linux-gnu"
|
|
|
|
implementation ; Functions:
|
|
|
|
void %main() {
|
|
entry:
|
|
%tmp = alloca uint, align 4 ; <uint*> [#uses=1]
|
|
%tmp = alloca int, align 4 ; <int*> [#uses=1]
|
|
"alloca point" = cast int 0 to int ; <int> [#uses=0]
|
|
store uint 1, uint* %tmp
|
|
store int 2, int* %tmp
|
|
ret void
|
|
}
|