58 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-- | FileCheck %s3 4define signext i16 @f(ptr %bp, ptr %ss) {5; CHECK-LABEL: f:6; CHECK: # %bb.0: # %entry7; CHECK-NEXT: pushl %esi8; CHECK-NEXT: .cfi_def_cfa_offset 89; CHECK-NEXT: .cfi_offset %esi, -810; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax11; CHECK-NEXT: movl {{[0-9]+}}(%esp), %ecx12; CHECK-NEXT: .p2align 413; CHECK-NEXT: .LBB0_1: # %cond_next12714; CHECK-NEXT: # =>This Inner Loop Header: Depth=115; CHECK-NEXT: movl (%eax), %edx16; CHECK-NEXT: movl (%ecx), %esi17; CHECK-NEXT: andl $15, %edx18; CHECK-NEXT: andl $15, %esi19; CHECK-NEXT: addl %esi, (%ecx)20; CHECK-NEXT: cmpl $63, %edx21; CHECK-NEXT: jb .LBB0_122; CHECK-NEXT: # %bb.2: # %UnifiedReturnBlock23; CHECK-NEXT: xorl %eax, %eax24; CHECK-NEXT: popl %esi25; CHECK-NEXT: .cfi_def_cfa_offset 426; CHECK-NEXT: retl27entry:28 br label %cond_next12729 30cond_next127: ; preds = %cond_next391, %entry31 %v.1 = phi i32 [ undef, %entry ], [ %tmp411, %cond_next391 ] ; <i32> [#uses=1]32 %tmp149 = mul i32 0, %v.1 ; <i32> [#uses=0]33 %tmpss = load i32, ptr %ss, align 4 ; <i32> [#uses=1]34 %tmpbp = load i32, ptr %bp, align 4 ; <i32> [#uses=2]35 %tmp254 = and i32 %tmpss, 15 ; <i32> [#uses=1]36 %tmp256 = and i32 %tmpbp, 15 ; <i32> [#uses=2]37 br label %cond_next39138 39cond_next391: ; preds = %cond_next12740 %tmp393 = load i32, ptr %ss, align 4 ; <i32> [#uses=1]41 %tmp395 = load i32, ptr %bp, align 4 ; <i32> [#uses=2]42 %tmp396 = shl i32 %tmp393, %tmp395 ; <i32> [#uses=2]43 %tmp398 = sub i32 32, %tmp256 ; <i32> [#uses=2]44 %tmp399 = lshr i32 %tmp396, %tmp398 ; <i32> [#uses=1]45 %tmp405 = lshr i32 %tmp396, 31 ; <i32> [#uses=1]46 %tmp406 = add i32 %tmp405, -1 ; <i32> [#uses=1]47 %tmp409 = lshr i32 %tmp406, %tmp398 ; <i32> [#uses=1]48 %tmp411 = sub i32 %tmp399, %tmp409 ; <i32> [#uses=1]49 %tmp422445 = add i32 %tmp254, 0 ; <i32> [#uses=1]50 %tmp426447 = add i32 %tmp395, %tmp256 ; <i32> [#uses=1]51 store i32 %tmp426447, ptr %bp, align 452 %tmp429448 = icmp ult i32 %tmp422445, 63 ; <i1> [#uses=1]53 br i1 %tmp429448, label %cond_next127, label %UnifiedReturnBlock54 55UnifiedReturnBlock: ; preds = %cond_next39156 ret i16 057}58