77 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s3 4%struct.c.2.6.10.14.38.70.74.90.94.98.106.122.362 = type { i8, %struct.b.1.5.9.13.37.69.73.89.93.97.105.121.361, i24, i24 }5%struct.b.1.5.9.13.37.69.73.89.93.97.105.121.361 = type { %struct.a.0.4.8.12.36.68.72.88.92.96.104.120.360, %struct.a.0.4.8.12.36.68.72.88.92.96.104.120.360, i8 }6%struct.a.0.4.8.12.36.68.72.88.92.96.104.120.360 = type <{ i8, i16 }>7%struct.d.3.7.11.15.39.71.75.91.95.99.107.123.363 = type <{ %struct.c.2.6.10.14.38.70.74.90.94.98.106.122.362, %struct.c.2.6.10.14.38.70.74.90.94.98.106.122.362, i8, i8 }>8 9@var_46 = external dso_local local_unnamed_addr global i8, align 110@var_44 = external dso_local local_unnamed_addr global i8, align 111@var_163 = external dso_local local_unnamed_addr global i8, align 112@struct_obj_12 = external dso_local local_unnamed_addr global %struct.c.2.6.10.14.38.70.74.90.94.98.106.122.362, align 213@struct_obj_3 = external dso_local local_unnamed_addr global %struct.d.3.7.11.15.39.71.75.91.95.99.107.123.363, align 214@struct_obj_8 = external dso_local local_unnamed_addr global %struct.d.3.7.11.15.39.71.75.91.95.99.107.123.363, align 215@var_49 = external dso_local local_unnamed_addr constant i8, align 116 17; Function Attrs: norecurse nounwind uwtable18define void @_Z1av() local_unnamed_addr #0 {19; CHECK-LABEL: _Z1av:20; CHECK: # %bb.0: # %entry21; CHECK-NEXT: movl struct_obj_3+8(%rip), %eax22; CHECK-NEXT: movzbl var_46(%rip), %ecx23; CHECK-NEXT: movzbl var_49(%rip), %edx24; CHECK-NEXT: andl $1, %eax25; CHECK-NEXT: addl %eax, %eax26; CHECK-NEXT: subl %ecx, %eax27; CHECK-NEXT: subl %edx, %eax28; CHECK-NEXT: notl %eax29; CHECK-NEXT: movzbl %al, %eax30; CHECK-NEXT: movw %ax, struct_obj_12+5(%rip)31; CHECK-NEXT: movb $0, var_163(%rip)32; CHECK-NEXT: retq33entry:34 %bf.load = load i32, ptr getelementptr inbounds (%struct.d.3.7.11.15.39.71.75.91.95.99.107.123.363, ptr @struct_obj_3, i64 0, i32 0, i32 2), align 235 %tmp = load i8, ptr @var_46, align 136 %conv1 = sext i8 %tmp to i3237 %tmp1 = load i8, ptr @var_49, align 138 %tmp2 = zext i8 %tmp1 to i3239 %tmp3 = shl i32 %bf.load, 140 %factor = and i32 %tmp3, 241 %sub = sub nsw i32 %factor, %conv142 %sub8 = sub nsw i32 %sub, %tmp243 %add = add nsw i32 %sub8, 044 %tmp4 = load i8, ptr @var_44, align 145 %tmp5 = zext i8 %tmp4 to i3246 %xor = xor i32 %add, 25547 %xor20 = xor i32 %xor, 048 %neg = xor i32 %xor20, 049 %or = or i32 0, %neg50 %or55 = or i32 %or, 051 %conv56 = trunc i32 %or55 to i1652 %bf.value = and i16 %conv56, 25553 %bf.set = or i16 %bf.value, 054 store i16 %bf.set, ptr getelementptr inbounds (%struct.c.2.6.10.14.38.70.74.90.94.98.106.122.362, ptr @struct_obj_12, i64 0, i32 1, i32 1, i32 1), align 155 %lnot = icmp eq i8 undef, 056 %bf.load65 = load i32, ptr getelementptr inbounds (%struct.d.3.7.11.15.39.71.75.91.95.99.107.123.363, ptr @struct_obj_8, i64 0, i32 0, i32 2), align 257 %tmp6 = and i32 %bf.load65, 158 %tmp7 = select i1 %lnot, i32 undef, i32 059 %mul69 = and i32 %tmp6, %tmp760 %tmp8 = sub nsw i32 0, %mul6961 %mul75 = and i32 %tmp5, %tmp862 %tmp9 = and i32 %bf.load, 163 %tmp10 = sub nsw i32 0, %mul7564 %mul80 = and i32 %tmp9, %tmp1065 %factor109 = shl nuw nsw i32 %tmp9, 166 %sub86 = sub nsw i32 %factor109, %conv167 %sub94 = sub nsw i32 %sub86, %tmp268 %tmp11 = sub nsw i32 0, %mul8069 %mul95 = and i32 %sub94, %tmp1170 %tobool96 = icmp ne i32 %mul95, 071 %frombool = zext i1 %tobool96 to i872 store i8 %frombool, ptr @var_163, align 173 ret void74}75 76attributes #0 = { norecurse nounwind uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "use-soft-float"="false" }77