brintos

brintos / llvm-project-archived public Read only

0
0
Text · 553 B · c4f871c Raw
26 lines · plain
1; RUN: llc -mtriple=aarch64-apple-darwin -fast-isel -verify-machineinstrs < %s2 3; Test that the Machine Instruction PHI node doesn't have more than one operand4; from the same predecessor.5define i32 @foo(i32 %a, i32 %b, i1 %c) {6entry:7  br i1 %c, label %switch, label %direct8 9switch:10  switch i32 %a, label %exit [11    i32 43, label %continue12    i32 45, label %continue13  ]14 15direct:16  %var = add i32 %b, 117  br label %continue18 19continue:20  %var.phi = phi i32 [ %var, %direct ], [ 0, %switch ], [ 0, %switch ]21  ret i32 %var.phi22 23exit:24  ret i32 125}26