brintos

brintos / llvm-project-archived public Read only

0
0
Text · 696 B · e293bd6 Raw
27 lines · plain
1; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s2 3; CHECK-LABEL: test4define i64 @test(i64 %a, i256 %b, i1 %c) {5  %u = zext i64 %a to i2566  %s = add i256 %u, 17  %o = trunc i256 %s to i18  %j = add i256 %s, 19  %i = icmp ule i64 %a, 110  %f = select i1 %o, i256 undef, i256 %j11  %d = select i1 %i, i256 %f, i256 112  %e = add i256 %b, 113  %n = select i1 %c, i256 %e, i256 %b14  %m = trunc i256 %n to i6415  %h = add i64 %m, 116  %r = zext i64 %h to i25617  %v = lshr i256 %d, %r18  %t = trunc i256 %v to i119  %q = shl i256 1, %r20  %p = and i256 %d, %q21  %w = icmp ule i256 %n, 122  %y = select i1 %t, i256 undef, i256 %p23  %x = select i1 %w, i256 %y, i256 %d24  %z = trunc i256 %x to i6425  ret i64 %z26}27