brintos

brintos / llvm-project-archived public Read only

0
0
Text · 618 B · bfb6577 Raw
35 lines · plain
1; RUN: llc -verify-machineinstrs < %s2; PR258383 4target triple = "armv7--linux-android"5 6%0 = type { i32, i32 }7 8define i32 @foo(ptr readonly) {9  br i1 undef, label %12, label %210 11; <label>:212  %3 = trunc i64 undef to i3213  %4 = icmp eq i32 undef, 014  br i1 %4, label %5, label %915 16; <label>:517  %6 = icmp slt i32 %3, 018  %7 = sub nsw i32 0, %319  %8 = select i1 %6, i32 %7, i32 %320  br label %1221 22; <label>:923  br i1 undef, label %12, label %1024 25; <label>:1026  %11 = tail call i32 @bar(i32 undef)27  unreachable28 29; <label>:1230  %13 = phi i32 [ %8, %5 ], [ 0, %1 ], [ undef, %9 ]31  ret i32 %1332}33 34declare i32 @bar(i32)35