blob: f89997e0bf6b5fb055554baec957773618189f77 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; The global symbol should be legalized
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00002; RUN: llvm-as < %s | llc -march=alpha
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00004target 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]
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000012define void @main(i32 %argc) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013clock_Init.exit:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000014 %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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000018then.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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000023UnifiedReturnBlock: ; preds = %clock_Init.exit
24 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025}
26
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000027declare i8* @llvm.stacksave()