If dbg_declare() or dbg_value() is not lowered by isel then emit DEBUG message instea...
[oota-llvm.git] / test / CodeGen / Alpha / 2006-01-18-MissedGlobal.ll
1 ; The global symbol should be legalized
2 ; RUN: llc < %s -march=alpha 
3
4 target datalayout = "e-p:64:64"
5         %struct.LIST_HELP = type { %struct.LIST_HELP*, i8* }
6         %struct._IO_FILE = type { i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, %struct._IO_marker*, %struct._IO_FILE*, i32, i32, i64, i16, i8, [1 x i8], i8*, i64, i8*, i8*, i32, [44 x i8] }
7         %struct._IO_marker = type { %struct._IO_marker*, %struct._IO_FILE*, i32 }
8 @clause_SORT = external global [21 x %struct.LIST_HELP*]                ; <[21 x %struct.LIST_HELP*]*> [#uses=0]
9 @ia_in = external global %struct._IO_FILE*              ; <%struct._IO_FILE**> [#uses=1]
10 @multvec_j = external global [100 x i32]                ; <[100 x i32]*> [#uses=0]
11
12 define void @main(i32 %argc) {
13 clock_Init.exit:
14         %tmp.5.i575 = load i32* null            ; <i32> [#uses=1]
15         %tmp.309 = icmp eq i32 %tmp.5.i575, 0           ; <i1> [#uses=1]
16         br i1 %tmp.309, label %UnifiedReturnBlock, label %then.17
17
18 then.17:                ; preds = %clock_Init.exit
19         store %struct._IO_FILE* null, %struct._IO_FILE** @ia_in
20         %savedstack = call i8* @llvm.stacksave( )               ; <i8*> [#uses=0]
21         ret void
22
23 UnifiedReturnBlock:             ; preds = %clock_Init.exit
24         ret void
25 }
26
27 declare i8* @llvm.stacksave()