File: 2007-11-14-SignedAddRec.ll

package info (click to toggle)
llvm-toolchain-3.4 1%3A3.4.2-13
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 253,236 kB
  • ctags: 276,203
  • sloc: cpp: 1,665,580; ansic: 298,647; asm: 206,157; objc: 84,350; python: 73,119; sh: 23,466; perl: 5,679; makefile: 5,542; ml: 5,250; pascal: 2,467; lisp: 1,420; xml: 679; cs: 236; csh: 117
file content (26 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (24)
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
; RUN: opt < %s -indvars -S | FileCheck %s
; PR1798

; CHECK: printd(i32 1206807378)

declare void @printd(i32)

define i32 @test() {
entry:
	br label %bb6

bb:		; preds = %bb6
	%tmp3 = add i32 %x.0, %i.0		; <i32> [#uses=1]
	%tmp5 = add i32 %i.0, 1		; <i32> [#uses=1]
	br label %bb6

bb6:		; preds = %bb, %entry
	%i.0 = phi i32 [ 0, %entry ], [ %tmp5, %bb ]		; <i32> [#uses=3]
	%x.0 = phi i32 [ 0, %entry ], [ %tmp3, %bb ]		; <i32> [#uses=3]
	%tmp8 = icmp slt i32 %i.0, 123456789		; <i1> [#uses=1]
	br i1 %tmp8, label %bb, label %bb10

bb10:		; preds = %bb6
	call void @printd(i32 %x.0)
	ret i32 0
}