107 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s --check-prefix=X863; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefix=X644 5@s_0 = external dso_local local_unnamed_addr global i16, align 26@s_2 = external dso_local local_unnamed_addr global i16, align 27 8define void @func_6(i8 %uc_8, i64 %uli_10) nounwind {9; X86-LABEL: func_6:10; X86: # %bb.0: # %entry11; X86-NEXT: pushl %ebx12; X86-NEXT: pushl %esi13; X86-NEXT: movl {{[0-9]+}}(%esp), %eax14; X86-NEXT: movl $-1, %ecx15; X86-NEXT: xorl %edx, %edx16; X86-NEXT: xorl %ebx, %ebx17; X86-NEXT: # implicit-def: $si18; X86-NEXT: .p2align 419; X86-NEXT: .LBB0_1: # %for.body61220; X86-NEXT: # =>This Inner Loop Header: Depth=121; X86-NEXT: testb %bl, %bl22; X86-NEXT: je .LBB0_223; X86-NEXT: # %bb.3: # %if.end140124; X86-NEXT: # in Loop: Header=BB0_1 Depth=125; X86-NEXT: addl %eax, %esi26; X86-NEXT: movw %si, s_227; X86-NEXT: movw %dx, s_028; X86-NEXT: incl %ecx29; X86-NEXT: incl %edx30; X86-NEXT: cmpw $73, %cx31; X86-NEXT: jl .LBB0_132; X86-NEXT: # %bb.4: # %for.body170333; X86-NEXT: .LBB0_2: # %if.then67134;35; X64-LABEL: func_6:36; X64: # %bb.0: # %entry37; X64-NEXT: movl $23090, %eax # imm = 0x5A3238; X64-NEXT: xorl %ecx, %ecx39; X64-NEXT: # implicit-def: $dx40; X64-NEXT: .p2align 441; X64-NEXT: .LBB0_1: # %for.body61242; X64-NEXT: # =>This Inner Loop Header: Depth=143; X64-NEXT: testb %cl, %cl44; X64-NEXT: je .LBB0_245; X64-NEXT: # %bb.3: # %if.end140146; X64-NEXT: # in Loop: Header=BB0_1 Depth=147; X64-NEXT: addl %esi, %edx48; X64-NEXT: movw %dx, s_2(%rip)49; X64-NEXT: leal -23090(%rax), %edi50; X64-NEXT: movw %di, s_0(%rip)51; X64-NEXT: incq %rax52; X64-NEXT: leal -23091(%rax), %edi53; X64-NEXT: cmpw $73, %di54; X64-NEXT: jl .LBB0_155; X64-NEXT: # %bb.4: # %for.body170356; X64-NEXT: .LBB0_2: # %if.then67157entry:58 %conv649 = zext i8 %uc_8 to i6459 %xor650 = xor i64 %conv649, 29635773168017567860 %i = trunc i64 %uli_10 to i1661 br label %for.body61262 63for.body612: ; preds = %for.inc1677, %entry64 %i1 = phi i16 [ undef, %entry ], [ %conv1532, %for.inc1677 ]65 %i2 = phi i16 [ -1, %entry ], [ %add1679, %for.inc1677 ]66 br label %if.then63567 68if.then635: ; preds = %for.body61269 %conv653 = sext i16 %i2 to i6470 %cmp654.not = icmp eq i64 %xor650, %conv65371 %conv653.op = xor i64 %conv653, 29635773168017567872 %tobool670.not = icmp eq i64 undef, 073 br i1 %tobool670.not, label %if.end1401, label %if.then67174 75if.then671: ; preds = %if.then63576 %cmp830 = icmp sgt i16 %i1, 2177 unreachable78 79if.end1401: ; preds = %if.then63580 %conv1421 = sext i16 %i2 to i3281 %or1422 = or i32 %conv1421, undef82 br label %if.end151083 84if.end1510: ; preds = %if.end140185 br i1 undef, label %cond.false1514, label %cond.end152886 87cond.false1514: ; preds = %if.end151088 %conv1525 = sext i16 %i2 to i6489 %add1526 = add nsw i64 %conv1525, 2309190 br label %cond.end152891 92cond.end1528: ; preds = %cond.false1514, %if.end151093 %cond1529 = phi i64 [ %add1526, %cond.false1514 ], [ undef, %if.end1510 ]94 %conv1532 = add i16 %i1, %i95 store i16 %conv1532, ptr @s_2, align 296 br label %for.inc167797 98for.inc1677: ; preds = %cond.end152899 %add1679 = add i16 %i2, 1100 store i16 %add1679, ptr @s_0, align 2101 %cmp610 = icmp slt i16 %add1679, 73102 br i1 %cmp610, label %for.body612, label %for.body1703103 104for.body1703: ; preds = %for.inc1677105 unreachable106}107