File: 2008-03-26-CoalescerBug.ll

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.6-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,304 kB
  • sloc: cpp: 7,438,677; ansic: 1,393,822; asm: 1,012,926; python: 241,650; f90: 86,635; objc: 75,479; lisp: 42,144; pascal: 17,286; sh: 10,027; ml: 5,082; perl: 4,730; awk: 3,523; makefile: 3,349; javascript: 2,251; xml: 892; fortran: 672
file content (30 lines) | stat: -rw-r--r-- 1,306 bytes parent folder | download | duplicates (14)
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
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s

; CHECK: @t
; CHECK: blr
define i32 @t(i64 %byteStart, i32 %activeIndex) nounwind  {
entry:
	%tmp50 = load i32, ptr null, align 4		; <i32> [#uses=1]
	%tmp5051 = zext i32 %tmp50 to i64		; <i64> [#uses=3]
	%tmp53 = udiv i64 %byteStart, %tmp5051		; <i64> [#uses=1]
	%tmp5354 = trunc i64 %tmp53 to i32		; <i32> [#uses=1]
	%tmp62 = urem i64 %byteStart, %tmp5051		; <i64> [#uses=1]
	%tmp94 = add i32 0, 1		; <i32> [#uses=1]
	%tmp100 = urem i32 %tmp94, 0		; <i32> [#uses=2]
	%tmp108 = add i32 0, %activeIndex		; <i32> [#uses=1]
	%tmp110 = sub i32 %tmp108, 0		; <i32> [#uses=1]
	%tmp112 = urem i32 %tmp110, 0		; <i32> [#uses=2]
	%tmp122 = icmp ult i32 %tmp112, %tmp100		; <i1> [#uses=1]
	%iftmp.175.0 = select i1 %tmp122, i32 %tmp112, i32 %tmp100		; <i32> [#uses=1]
	%tmp119 = add i32 %tmp5354, 0		; <i32> [#uses=1]
	%tmp131 = add i32 %tmp119, %iftmp.175.0		; <i32> [#uses=1]
	%tmp131132 = zext i32 %tmp131 to i64		; <i64> [#uses=1]
	%tmp147 = mul i64 %tmp131132, %tmp5051		; <i64> [#uses=1]
	br i1 false, label %bb164, label %bb190
bb164:		; preds = %entry
	%tmp171172 = and i64 %tmp62, 4294967295		; <i64> [#uses=1]
	%tmp173 = add i64 %tmp171172, %tmp147		; <i64> [#uses=0]
	ret i32 0
bb190:		; preds = %entry
	ret i32 0
}