Add an explicit triple to the big-endian tests so that the assembly
[oota-llvm.git] / test / Assembler / 2007-01-27-UpgradePointers.ll
1 ; PR1137
2 ; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
3 ; RUN: llvm-upgrade < %s | grep {tmp = alloca} | wc -l | grep 1
4 ;
5 target datalayout = "e-p:32:32"
6 target endian = little
7 target pointersize = 32
8 target triple = "i686-pc-linux-gnu"
9
10 implementation   ; Functions:
11
12 void %main() {
13 entry:
14     %tmp = alloca uint, align 4             ; <uint*> [#uses=1]
15     %tmp = alloca int, align 4              ; <int*> [#uses=1]
16     "alloca point" = cast int 0 to int      ; <int> [#uses=0]
17     store uint 1, uint* %tmp
18     store int 2, int* %tmp
19     ret void
20 }