llvm/llvm/test/CodeGen/AMDGPU/shrink-i32-kimm.mir

# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 3
# RUN: llc -mtriple=amdgcn -mcpu=gfx900 -verify-machineinstrs -run-pass=si-shrink-instructions -o - %s | FileCheck -check-prefix=GCN %s
# RUN: llc -mtriple=amdgcn -mcpu=gfx900 -verify-machineinstrs -passes=si-shrink-instructions -o - %s | FileCheck -check-prefix=GCN %s

---
name:            shrink_kimm32_mov_b32
tracksRegLiveness: true
body:             |
  bb.0:

    ; GCN-LABEL: name: shrink_kimm32_mov_b32
    ; GCN: $sgpr0 = S_MOVK_I32 -2048
    $sgpr0 = S_MOV_B32 4294965248
...

---
name:            shrink_kimm32_cmp_eq_u32
tracksRegLiveness: true
body:             |
  bb.0:

    ; GCN-LABEL: name: shrink_kimm32_cmp_eq_u32
    ; GCN: S_CMPK_EQ_I32 undef $sgpr0, -2048, implicit-def $scc
    S_CMP_EQ_U32 undef $sgpr0, 4294965248, implicit-def $scc
...

---
name:            shrink_kimm32_cmp_gt_i32
tracksRegLiveness: true
body:             |
  bb.0:

    ; GCN-LABEL: name: shrink_kimm32_cmp_gt_i32
    ; GCN: S_CMPK_GT_I32 undef $sgpr0, -2048, implicit-def $scc
    S_CMP_GT_I32 undef $sgpr0, 4294965248, implicit-def $scc
...

---
name:            shrink_kimm32_add_i32
tracksRegLiveness: true
body:             |
  bb.0:

    ; GCN-LABEL: name: shrink_kimm32_add_i32
    ; GCN: $sgpr0 = S_ADDK_I32 undef $sgpr0, -2048, implicit-def $scc
    $sgpr0 = S_ADD_I32 undef $sgpr0, 4294965248, implicit-def $scc
...

---
name:            shrink_kimm32_mul_i32
tracksRegLiveness: true
body:             |
  bb.0:

    ; GCN-LABEL: name: shrink_kimm32_mul_i32
    ; GCN: $sgpr0 = S_MULK_I32 undef $sgpr0, -2048
    $sgpr0 = S_MUL_I32 undef $sgpr0, 4294965248
...