brintos

brintos / llvm-project-archived public Read only

0
0
Text · 312 B · f29c7d5 Raw
15 lines · plain
1; Testing peephole for generating shorter code for (and (xor b, -1), a)2;3; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s4 5define i64 @f1(i64 %a, i64 %b) {6; CHECK-LABEL: f1:7; CHECK: ngr %r3, %r28; CHECK: xgr %r2, %r39; CHECK: br %r1410  %neg = xor i64 %b, -111  %and = and i64 %neg, %a12  ret i64 %and13}14 15