[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / CodeGen / AMDGPU / GlobalISel / inst-select-fminnum.v2s16.mir
blob734b82c2d2d3cd2665ffab099137ac0fed55b07e
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=gfx900 -run-pass=instruction-select -global-isel-abort=0 -verify-machineinstrs -o - %s  | FileCheck -check-prefix=GFX9 %s
4 ---
5 name: fminnum_v2f16_vv
6 legalized: true
7 regBankSelected: true
9 body: |
10   bb.0:
11     liveins: $sgpr0, $sgpr1
13     ; GFX9-LABEL: name: fminnum_v2f16_vv
14     ; GFX9: [[COPY:%[0-9]+]]:vgpr(<2 x s16>) = COPY $vgpr0
15     ; GFX9: [[COPY1:%[0-9]+]]:vgpr(<2 x s16>) = COPY $vgpr1
16     ; GFX9: [[FMINNUM:%[0-9]+]]:vgpr(<2 x s16>) = G_FMINNUM [[COPY]], [[COPY1]]
17     ; GFX9: S_ENDPGM 0, implicit [[FMINNUM]](<2 x s16>)
18     %0:vgpr(<2 x s16>) = COPY $vgpr0
19     %1:vgpr(<2 x s16>) = COPY $vgpr1
20     %2:vgpr(<2 x s16>) = G_FMINNUM %0, %1
21     S_ENDPGM 0, implicit %2
22 ...