brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · e6f28c2 Raw
55 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-apple-darwin8 -relocation-model=static | FileCheck %s3 4@block = external global ptr            ; <ptr> [#uses=1]5@last = external global i32             ; <ptr> [#uses=3]6 7define i1 @loadAndRLEsource_no_exit_2E_1_label_2E_0(i32 %tmp.21.reload, i32 %tmp.8) {8; CHECK-LABEL: loadAndRLEsource_no_exit_2E_1_label_2E_0:9; CHECK:       ## %bb.0: ## %newFuncRoot10; CHECK-NEXT:    pushl %esi11; CHECK-NEXT:    .cfi_def_cfa_offset 812; CHECK-NEXT:    .cfi_offset %esi, -813; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %ecx14; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %eax15; CHECK-NEXT:    movl _last, %edx16; CHECK-NEXT:    leal 1(%edx), %esi17; CHECK-NEXT:    movl %esi, _last18; CHECK-NEXT:    movl _block, %esi19; CHECK-NEXT:    movb %al, 1(%esi,%edx)20; CHECK-NEXT:    cmpl %ecx, _last21; CHECK-NEXT:    setl %cl22; CHECK-NEXT:    cmpl $257, %eax ## imm = 0x10123; CHECK-NEXT:    setne %al24; CHECK-NEXT:    testb %al, %cl25; CHECK-NEXT:    je LBB0_226; CHECK-NEXT:  ## %bb.1: ## %label.0.no_exit.1_crit_edge.exitStub27; CHECK-NEXT:    movb $1, %al28; CHECK-NEXT:    popl %esi29; CHECK-NEXT:    retl30; CHECK-NEXT:  LBB0_2: ## %codeRepl5.exitStub31; CHECK-NEXT:    xorl %eax, %eax32; CHECK-NEXT:    popl %esi33; CHECK-NEXT:    retl34newFuncRoot:35        br label %label.036label.0.no_exit.1_crit_edge.exitStub:           ; preds = %label.037        ret i1 true38codeRepl5.exitStub:             ; preds = %label.039        ret i1 false40label.0:                ; preds = %newFuncRoot41        %tmp.35 = load i32, ptr @last               ; <i32> [#uses=1]42        %inc.1 = add i32 %tmp.35, 1             ; <i32> [#uses=2]43        store i32 %inc.1, ptr @last44        %tmp.36 = load ptr, ptr @block              ; <ptr> [#uses=1]45        %tmp.38 = getelementptr i8, ptr %tmp.36, i32 %inc.1         ; <ptr> [#uses=1]46        %tmp.40 = trunc i32 %tmp.21.reload to i8                ; <i8> [#uses=1]47        store i8 %tmp.40, ptr %tmp.3848        %tmp.910 = load i32, ptr @last              ; <i32> [#uses=1]49        %tmp.1111 = icmp slt i32 %tmp.910, %tmp.8               ; <i1> [#uses=1]50        %tmp.1412 = icmp ne i32 %tmp.21.reload, 257             ; <i1> [#uses=1]51        %tmp.1613 = and i1 %tmp.1111, %tmp.1412         ; <i1> [#uses=1]52        br i1 %tmp.1613, label %label.0.no_exit.1_crit_edge.exitStub, label %codeRepl5.exitStub53}54 55