brintos

brintos / llvm-project-archived public Read only

0
0
Text · 950 B · 2ba2f89 Raw
30 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux | FileCheck %s3 4@c = external dso_local local_unnamed_addr global i32, align 45@b = external dso_local local_unnamed_addr global i32, align 46@d = external dso_local local_unnamed_addr global i32, align 47 8define void @fn1() {9; CHECK-LABEL: fn1:10; CHECK:       # %bb.0:11; CHECK-NEXT:    xorl %eax, %eax12; CHECK-NEXT:    cmpl $0, c(%rip)13; CHECK-NEXT:    sete %al14; CHECK-NEXT:    movl %eax, d(%rip)15; CHECK-NEXT:    retq16  %t0 = load i32, ptr @c, align 417  %tobool1 = icmp eq i32 %t0, 018  %xor = zext i1 %tobool1 to i3219  %t1 = load i32, ptr @b, align 420  %tobool2 = icmp ne i32 %t1, 021  %t2 = load i32, ptr @d, align 422  %tobool4 = icmp ne i32 %t2, 023  %t3 = and i1 %tobool4, %tobool224  %sub = sext i1 %t3 to i3225  %div = sdiv i32 %sub, 226  %add = add nsw i32 %div, %xor27  store i32 %add, ptr @d, align 428  ret void29}30