1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -verify-machineinstrs\
3 ; RUN: -mcpu=pwr9 --ppc-enable-pipeliner 2>&1 | FileCheck %s
5 define void @phi5() unnamed_addr {
11 ; CHECK-NEXT: slw 3, 4, 3
12 ; CHECK-NEXT: andi. 3, 3, 6336
14 ; CHECK-NEXT: # %bb.2:
15 ; CHECK-NEXT: lhz 3, 0(3)
16 ; CHECK-NEXT: slwi 3, 3, 15
17 ; CHECK-NEXT: clrlwi 3, 3, 31
18 ; CHECK-NEXT: rlwinm 4, 3, 31, 17, 31
19 ; CHECK-NEXT: or 3, 3, 4
20 ; CHECK-NEXT: rlwimi 3, 3, 15, 0, 16
21 ; CHECK-NEXT: # %bb.3:
23 switch i12 undef, label %21 [
30 1: ; preds = %0, %0, %0, %0
31 %2 = load i16, i16* undef, align 2
35 %4 = phi i16 [ %18, %3 ], [ undef, %1 ]
36 %5 = phi i16 [ %13, %3 ], [ undef, %1 ]
37 %6 = phi i16 [ %11, %3 ], [ undef, %1 ]
38 %7 = phi i16 [ undef, %3 ], [ %2, %1 ]
39 %8 = phi i32 [ %19, %3 ], [ undef, %1 ]
51 %20 = icmp eq i32 %19, 0
52 br i1 %20, label %21, label %3