1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc --mtriple=amdgcn--amdhsa -mcpu=fiji -run-pass=si-shrink-instructions %s -o - | FileCheck %s
4 # Make sure flags are preserved when shrinking instructions
7 name: shrink_fadd_f32_flags
8 tracksRegLiveness: true
11 liveins: $vgpr0, $vgpr1
13 ; CHECK-LABEL: name: shrink_fadd_f32_flags
14 ; CHECK: liveins: $vgpr0, $vgpr1
16 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
17 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vgpr_32 = COPY $vgpr0
18 ; CHECK-NEXT: %2:vgpr_32 = nnan nofpexcept V_ADD_F32_e32 [[COPY]], [[COPY1]], implicit $mode, implicit $exec
20 %0:vgpr_32 = COPY $vgpr0
21 %1:vgpr_32 = COPY $vgpr0
22 %2:vgpr_32 = nofpexcept nnan V_ADD_F32_e64 0, %0, 0, %1, 0, 0, implicit $mode, implicit $exec