2019-07-22 20:43:41 +08:00
|
|
|
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
2019-09-01 10:39:00 +08:00
|
|
|
# RUN: llc -march=amdgcn -mcpu=gfx900 -run-pass=instruction-select -verify-machineinstrs -o - %s | FileCheck -check-prefix=GFX9 %s
|
2021-03-29 17:12:46 +08:00
|
|
|
# RUN: llc -march=amdgcn -mcpu=gfx1010 -run-pass=instruction-select -verify-machineinstrs -o - %s | FileCheck -check-prefix=GFX9 %s
|
2019-07-22 20:43:41 +08:00
|
|
|
|
|
|
|
---
|
|
|
|
name: fminnum_v2f16_vv
|
|
|
|
legalized: true
|
|
|
|
regBankSelected: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
liveins: $sgpr0, $sgpr1
|
|
|
|
|
|
|
|
; GFX9-LABEL: name: fminnum_v2f16_vv
|
2019-09-01 10:39:00 +08:00
|
|
|
; GFX9: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
|
|
|
|
; GFX9: [[COPY1:%[0-9]+]]:vgpr_32 = COPY $vgpr1
|
2020-06-01 02:19:46 +08:00
|
|
|
; GFX9: %2:vgpr_32 = nofpexcept V_PK_MIN_F16 8, [[COPY]], 8, [[COPY1]], 0, 0, 0, 0, 0, implicit $mode, implicit $exec
|
|
|
|
; GFX9: S_ENDPGM 0, implicit %2
|
2019-07-22 20:43:41 +08:00
|
|
|
%0:vgpr(<2 x s16>) = COPY $vgpr0
|
|
|
|
%1:vgpr(<2 x s16>) = COPY $vgpr1
|
|
|
|
%2:vgpr(<2 x s16>) = G_FMINNUM %0, %1
|
|
|
|
S_ENDPGM 0, implicit %2
|
|
|
|
...
|