Fix PR1355: Only compute the SUBPATH and TESTDIR once.
[oota-llvm.git] / test / CodeGen / Alpha / 2006-01-18-MissedGlobal.ll
1 ; The global symbol should be legalized
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha 
3
4 target endian = little
5 target pointersize = 64
6         %struct.LIST_HELP = type { %struct.LIST_HELP*, sbyte* }
7         %struct._IO_FILE = type { int, sbyte*, sbyte*, sbyte*, sbyte*, sbyte*, sbyte*, sbyte*, sbyte*, sbyte*, sbyte*, sbyte*, %struct._IO_marker*, %struct._IO_FILE*, int, int, long, ushort, sbyte, [1 x sbyte], sbyte*, long, sbyte*, sbyte*, int, [44 x sbyte] }
8         %struct._IO_marker = type { %struct._IO_marker*, %struct._IO_FILE*, int }
9 %clause_SORT = external global [21 x %struct.LIST_HELP*]                ; <[21 x %struct.LIST_HELP*]*> [#uses=1]
10 %ia_in = external global %struct._IO_FILE*              ; <%struct._IO_FILE**> [#uses=1]
11 %multvec_j = external global [100 x uint]               ; <[100 x uint]*> [#uses=1]
12
13 implementation   ; Functions:
14
15 void %main(int %argc) {
16 clock_Init.exit:
17         %tmp.5.i575 = load int* null            ; <int> [#uses=1]
18         %tmp.309 = seteq int %tmp.5.i575, 0             ; <bool> [#uses=1]
19         br bool %tmp.309, label %UnifiedReturnBlock, label %then.17
20
21 then.17:                ; preds = %clock_Init.exit
22         store %struct._IO_FILE* null, %struct._IO_FILE** %ia_in
23         %savedstack = call sbyte* %llvm.stacksave( )            ; <sbyte*> [#uses=0]
24         ret void
25
26 UnifiedReturnBlock:             ; preds = %clock_Init.exit
27         ret void
28 }
29
30 declare sbyte* %llvm.stacksave()