brintos

brintos / llvm-project-archived public Read only

0
0
Text · 363 B · f2f3edf Raw
16 lines · plain
1; RUN: opt -S -passes=instcombine < %s | FileCheck %s2 3target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"4target triple = "x86_64-unknown-linux-gnu"5 6define i1 @f(ptr %a, i8 %b) {7; CHECK-LABEL: @f(8entry:9  %or = or i8 %b, -11710  %sub = add i8 %or, -111  store i8 %sub, ptr %a, align 112  %cmp = icmp ugt i8 %or, %sub13  ret i1 %cmp14; CHECK: ret i1 true15}16