brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · c643888 Raw
36 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s3 4%struct.anon = type { i32, i32 }5 6@c = common dso_local global %struct.anon zeroinitializer, align 47@d = dso_local local_unnamed_addr global ptr @c, align 88@a = common dso_local local_unnamed_addr global i32 0, align 49@b = common dso_local local_unnamed_addr global i32 0, align 410 11; Function Attrs: norecurse nounwind uwtable12define  void @g() local_unnamed_addr #0 {13; CHECK-LABEL: g:14; CHECK:       # %bb.0: # %entry15; CHECK-NEXT:    movq d(%rip), %rax16; CHECK-NEXT:    movl 4(%rax), %eax17; CHECK-NEXT:    xorl %ecx, %ecx18; CHECK-NEXT:    incl b(%rip)19; CHECK-NEXT:    setne %cl20; CHECK-NEXT:    addl %eax, %ecx21; CHECK-NEXT:    movl %ecx, a(%rip)22; CHECK-NEXT:    retq23entry:24  %0 = load ptr, ptr @d, align 825  %y = getelementptr inbounds %struct.anon, ptr %0, i64 0, i32 126  %1 = load i32, ptr %y, align 427  %2 = load i32, ptr @b, align 428  %inc = add nsw i32 %2, 129  store i32 %inc, ptr @b, align 430  %tobool = icmp ne i32 %inc, 031  %land.ext = zext i1 %tobool to i3232  %add = add nsw i32 %1, %land.ext33  store i32 %add, ptr @a, align 434  ret void35}36