1 # RUN: llc -mtriple=s390x-linux-gnu -mcpu=z196 -O0 -start-after=finalize-isel \
2 # RUN: -stop-before=regallocfast -o - %s | FileCheck %s
3 # RUN: llc -mtriple=s390x-linux-gnu -mcpu=z196 -O3 -start-after=finalize-isel \
4 # RUN: -stop-before=livevars -o - %s | FileCheck %s
6 # Test that a COPY from CC gets implemented with an IPM to a GR32 reg.
10 tracksRegLiveness: true
12 - { id: 0, class: grx32bit }
16 ; CHECK-LABEL: name: fun0
17 ; CHECK: %1:gr32bit = IPM implicit $cc
18 ; CHECK-NEXT: %0:grx32bit = COPY %1
19 ; CHECK-NEXT: $r2l = COPY %0
20 ; CHECK-NEXT: Return implicit $r2l
21 %0:grx32bit = COPY $cc