File: 2006-01-18-MissedGlobal.ll

package info (click to toggle)
llvm 2.6-9.1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 57,604 kB
  • ctags: 44,336
  • sloc: cpp: 344,766; sh: 12,407; ansic: 10,617; ada: 3,070; ml: 2,505; perl: 2,496; makefile: 1,426; pascal: 1,163; exp: 389; asm: 307; python: 298; objc: 260; lisp: 182; csh: 117; xml: 38; f90: 36; tcl: 20
file content (27 lines) | stat: -rw-r--r-- 1,325 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
; The global symbol should be legalized
; RUN: llvm-as < %s | llc -march=alpha 

target datalayout = "e-p:64:64"
        %struct.LIST_HELP = type { %struct.LIST_HELP*, i8* }
        %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] }
        %struct._IO_marker = type { %struct._IO_marker*, %struct._IO_FILE*, i32 }
@clause_SORT = external global [21 x %struct.LIST_HELP*]                ; <[21 x %struct.LIST_HELP*]*> [#uses=0]
@ia_in = external global %struct._IO_FILE*              ; <%struct._IO_FILE**> [#uses=1]
@multvec_j = external global [100 x i32]                ; <[100 x i32]*> [#uses=0]

define void @main(i32 %argc) {
clock_Init.exit:
        %tmp.5.i575 = load i32* null            ; <i32> [#uses=1]
        %tmp.309 = icmp eq i32 %tmp.5.i575, 0           ; <i1> [#uses=1]
        br i1 %tmp.309, label %UnifiedReturnBlock, label %then.17

then.17:                ; preds = %clock_Init.exit
        store %struct._IO_FILE* null, %struct._IO_FILE** @ia_in
        %savedstack = call i8* @llvm.stacksave( )               ; <i8*> [#uses=0]
        ret void

UnifiedReturnBlock:             ; preds = %clock_Init.exit
        ret void
}

declare i8* @llvm.stacksave()