File: 2007-10-12-CoalesceExtSubReg.ll

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,180 kB
  • sloc: cpp: 5,593,972; ansic: 986,872; asm: 585,869; python: 184,223; objc: 72,530; lisp: 31,119; f90: 27,793; javascript: 9,780; pascal: 9,762; sh: 9,482; perl: 7,468; ml: 5,432; awk: 3,523; makefile: 2,538; xml: 953; cs: 573; fortran: 567
file content (57 lines) | stat: -rw-r--r-- 2,248 bytes parent folder | download | duplicates (8)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=i686-- | FileCheck %s

define signext i16 @f(i32* %bp, i32* %ss)   {
; CHECK-LABEL: f:
; CHECK:       # %bb.0: # %entry
; CHECK-NEXT:    pushl %esi
; CHECK-NEXT:    .cfi_def_cfa_offset 8
; CHECK-NEXT:    .cfi_offset %esi, -8
; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %eax
; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %ecx
; CHECK-NEXT:    .p2align 4, 0x90
; CHECK-NEXT:  .LBB0_1: # %cond_next127
; CHECK-NEXT:    # =>This Inner Loop Header: Depth=1
; CHECK-NEXT:    movl (%eax), %edx
; CHECK-NEXT:    movl (%ecx), %esi
; CHECK-NEXT:    andl $15, %edx
; CHECK-NEXT:    andl $15, %esi
; CHECK-NEXT:    addl %esi, (%ecx)
; CHECK-NEXT:    cmpl $63, %edx
; CHECK-NEXT:    jb .LBB0_1
; CHECK-NEXT:  # %bb.2: # %UnifiedReturnBlock
; CHECK-NEXT:    xorl %eax, %eax
; CHECK-NEXT:    popl %esi
; CHECK-NEXT:    .cfi_def_cfa_offset 4
; CHECK-NEXT:    retl
entry:
	br label %cond_next127

cond_next127:		; preds = %cond_next391, %entry
	%v.1 = phi i32 [ undef, %entry ], [ %tmp411, %cond_next391 ]		; <i32> [#uses=1]
	%tmp149 = mul i32 0, %v.1		; <i32> [#uses=0]
	%tmpss = load i32, i32* %ss, align 4		; <i32> [#uses=1]
	%tmpbp = load i32, i32* %bp, align 4		; <i32> [#uses=2]
	%tmp254 = and i32 %tmpss, 15		; <i32> [#uses=1]
	%tmp256 = and i32 %tmpbp, 15		; <i32> [#uses=2]
	br label %cond_next391

cond_next391:		; preds = %cond_next127
	%tmp393 = load i32, i32* %ss, align 4		; <i32> [#uses=1]
	%tmp395 = load i32, i32* %bp, align 4		; <i32> [#uses=2]
	%tmp396 = shl i32 %tmp393, %tmp395		; <i32> [#uses=2]
	%tmp398 = sub i32 32, %tmp256		; <i32> [#uses=2]
	%tmp399 = lshr i32 %tmp396, %tmp398		; <i32> [#uses=1]
	%tmp405 = lshr i32 %tmp396, 31		; <i32> [#uses=1]
	%tmp406 = add i32 %tmp405, -1		; <i32> [#uses=1]
	%tmp409 = lshr i32 %tmp406, %tmp398		; <i32> [#uses=1]
	%tmp411 = sub i32 %tmp399, %tmp409		; <i32> [#uses=1]
	%tmp422445 = add i32 %tmp254, 0		; <i32> [#uses=1]
	%tmp426447 = add i32 %tmp395, %tmp256		; <i32> [#uses=1]
	store i32 %tmp426447, i32* %bp, align 4
	%tmp429448 = icmp ult i32 %tmp422445, 63		; <i1> [#uses=1]
	br i1 %tmp429448, label %cond_next127, label %UnifiedReturnBlock

UnifiedReturnBlock:		; preds = %cond_next391
	ret i16 0
}