1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 3
2 # RUN: llc -march=amdgcn -mcpu=gfx900 -verify-machineinstrs -run-pass=si-shrink-instructions -o - %s | FileCheck -check-prefix=GCN %s
5 name: shrink_kimm32_mov_b32
6 tracksRegLiveness: true
10 ; GCN-LABEL: name: shrink_kimm32_mov_b32
11 ; GCN: $sgpr0 = S_MOVK_I32 -2048
12 $sgpr0 = S_MOV_B32 4294965248
16 name: shrink_kimm32_cmp_eq_u32
17 tracksRegLiveness: true
21 ; GCN-LABEL: name: shrink_kimm32_cmp_eq_u32
22 ; GCN: S_CMPK_EQ_I32 undef $sgpr0, -2048, implicit-def $scc
23 S_CMP_EQ_U32 undef $sgpr0, 4294965248, implicit-def $scc
27 name: shrink_kimm32_cmp_gt_i32
28 tracksRegLiveness: true
32 ; GCN-LABEL: name: shrink_kimm32_cmp_gt_i32
33 ; GCN: S_CMPK_GT_I32 undef $sgpr0, -2048, implicit-def $scc
34 S_CMP_GT_I32 undef $sgpr0, 4294965248, implicit-def $scc
38 name: shrink_kimm32_add_i32
39 tracksRegLiveness: true
43 ; GCN-LABEL: name: shrink_kimm32_add_i32
44 ; GCN: $sgpr0 = S_ADDK_I32 undef $sgpr0, -2048, implicit-def $scc
45 $sgpr0 = S_ADD_I32 undef $sgpr0, 4294965248, implicit-def $scc
49 name: shrink_kimm32_mul_i32
50 tracksRegLiveness: true
54 ; GCN-LABEL: name: shrink_kimm32_mul_i32
55 ; GCN: $sgpr0 = S_MULK_I32 undef $sgpr0, -2048
56 $sgpr0 = S_MUL_I32 undef $sgpr0, 4294965248