brintos

brintos / llvm-project-archived public Read only

0
0
Text · 964 B · 26f0c02 Raw
29 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt -S -passes=instcombine %s | FileCheck %s3 4@a = common global i8 0, align 15@b = external global i326 7define void @tinkywinky() {8; CHECK-LABEL: @tinkywinky(9; CHECK-NEXT:    [[PATATINO:%.*]] = load i8, ptr @a, align 110; CHECK-NEXT:    [[TOBOOL_NOT:%.*]] = icmp eq i8 [[PATATINO]], 011; CHECK-NEXT:    [[CMP:%.*]] = icmp ne ptr @a, @b12; CHECK-NEXT:    [[XOR1:%.*]] = or i1 [[CMP]], [[TOBOOL_NOT]]13; CHECK-NEXT:    [[XOR:%.*]] = zext i1 [[XOR1]] to i3214; CHECK-NEXT:    [[OR:%.*]] = or disjoint i32 [[XOR]], 215; CHECK-NEXT:    store i32 [[OR]], ptr @b, align 416; CHECK-NEXT:    ret void17;18  %patatino = load i8, ptr @a19  %tobool = icmp ne i8 %patatino, 020  %lnot = xor i1 %tobool, true21  %lnot.ext = zext i1 %lnot to i3222  %cmp = icmp ne ptr @a, @b23  %zext = zext i1 %cmp to i3224  %xor = xor i32 %zext, 225  %or = or i32 %xor, %lnot.ext26  store i32 %or, ptr @b, align 427  ret void28}29