File: 2009-05-11-CodePlacementCrash.ll

package info (click to toggle)
llvm-toolchain-15 1%3A15.0.6-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,554,644 kB
  • sloc: cpp: 5,922,452; ansic: 1,012,136; asm: 674,362; python: 191,568; objc: 73,855; f90: 42,327; lisp: 31,913; pascal: 11,973; javascript: 10,144; sh: 9,421; perl: 7,447; ml: 5,527; awk: 3,523; makefile: 2,520; xml: 885; cs: 573; fortran: 567
file content (31 lines) | stat: -rw-r--r-- 1,138 bytes parent folder | download | duplicates (21)
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
28
29
30
31
; RUN: llc -mtriple=arm-eabi %s -o /dev/null

	%struct.List = type { %struct.List*, i32 }
@Node5 = external constant %struct.List		; <%struct.List*> [#uses=1]
@"\01LC" = external constant [7 x i8]		; <[7 x i8]*> [#uses=1]

define i32 @main() nounwind {
entry:
	br label %bb

bb:		; preds = %bb3, %entry
	%CurL.02 = phi %struct.List* [ @Node5, %entry ], [ %2, %bb3 ]		; <%struct.List*> [#uses=1]
	%PrevL.01 = phi %struct.List* [ null, %entry ], [ %CurL.02, %bb3 ]		; <%struct.List*> [#uses=1]
	%0 = icmp eq %struct.List* %PrevL.01, null		; <i1> [#uses=1]
	br i1 %0, label %bb3, label %bb1

bb1:		; preds = %bb
	br label %bb3

bb3:		; preds = %bb1, %bb
	%iftmp.0.0 = phi i32 [ 0, %bb1 ], [ -1, %bb ]		; <i32> [#uses=1]
	%1 = tail call i32 (i8*, ...) @printf(i8* getelementptr ([7 x i8], [7 x i8]* @"\01LC", i32 0, i32 0), i32 0, i32 %iftmp.0.0) nounwind		; <i32> [#uses=0]
	%2 = load %struct.List*, %struct.List** null, align 4		; <%struct.List*> [#uses=2]
	%phitmp = icmp eq %struct.List* %2, null		; <i1> [#uses=1]
	br i1 %phitmp, label %bb5, label %bb

bb5:		; preds = %bb3
	ret i32 0
}

declare i32 @printf(i8* nocapture, ...) nounwind