49 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-unknown-unknown -mcpu=haswell | FileCheck %s --check-prefix=X863; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=haswell | FileCheck %s --check-prefix=X644 5@var_580 = external dso_local local_unnamed_addr global i8, align 16 7define void @foo(i8 %a0) {8; X86-LABEL: foo:9; X86: # %bb.0: # %entry10; X86-NEXT: movsbl var_580, %eax11; X86-NEXT: testl $-536870913, %eax # imm = 0xDFFFFFFF12; X86-NEXT: jne .LBB0_113; X86-NEXT: # %bb.2: # %if.end1314; X86-NEXT: retl15; X86-NEXT: .LBB0_1: # %if.then1116;17; X64-LABEL: foo:18; X64: # %bb.0: # %entry19; X64-NEXT: movsbl var_580(%rip), %eax20; X64-NEXT: testl $-536870913, %eax # imm = 0xDFFFFFFF21; X64-NEXT: jne .LBB0_122; X64-NEXT: # %bb.2: # %if.end1323; X64-NEXT: retq24; X64-NEXT: .LBB0_1: # %if.then1125entry:26 %tmp = icmp ugt i8 %a0, 6027 %phitmp = zext i1 %tmp to i1628 br label %if.end29 30if.end:31 %tmp1 = load i8, ptr @var_580, align 132 %conv7 = sext i8 %tmp1 to i3233 %conv8 = zext i16 %phitmp to i3234 %mul = shl nuw nsw i32 %conv8, 135 %div9 = udiv i32 %mul, 7136 %sub = add nsw i32 %div9, -337 %shl = shl i32 1, %sub38 %neg = xor i32 %shl, -139 %and = and i32 %neg, %conv740 %tobool10 = icmp eq i32 %and, 041 br i1 %tobool10, label %if.end13, label %if.then1142 43if.then11:44 unreachable45 46if.end13:47 ret void48}49