1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn -mcpu=fiji -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
3 # RUN: llc -mtriple=amdgcn -mcpu=tahiti -run-pass=instruction-select -verify-machineinstrs -global-isel-abort=2 -pass-remarks-missed='gisel*' %s -o /dev/null 2>&1 | FileCheck -check-prefix=SI-ERR %s
5 # SI-ERR: remark: <unknown>:0:0: cannot select: %2:vgpr(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.fract), %1:sgpr(s16) (in function: fract_s16_vs)
6 # SI-ERR: remark: <unknown>:0:0: cannot select: %2:vgpr(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.fract), %1:vgpr(s16) (in function: fract_s16_vv)
13 tracksRegLiveness: true
19 ; CHECK-LABEL: name: fract_s16_vs
20 ; CHECK: liveins: $sgpr0
22 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
23 ; CHECK-NEXT: [[V_FRACT_F16_e64_:%[0-9]+]]:vgpr_32 = nofpexcept V_FRACT_F16_e64 0, [[COPY]], 0, 0, implicit $mode, implicit $exec
24 ; CHECK-NEXT: S_ENDPGM 0, implicit [[V_FRACT_F16_e64_]]
25 %0:sgpr(s32) = COPY $sgpr0
26 %1:sgpr(s16) = G_TRUNC %0
27 %2:vgpr(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.fract), %1
28 S_ENDPGM 0, implicit %2
35 tracksRegLiveness: true
41 ; CHECK-LABEL: name: fract_s16_vv
42 ; CHECK: liveins: $vgpr0
44 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
45 ; CHECK-NEXT: [[V_FRACT_F16_e64_:%[0-9]+]]:vgpr_32 = nofpexcept V_FRACT_F16_e64 0, [[COPY]], 0, 0, implicit $mode, implicit $exec
46 ; CHECK-NEXT: S_ENDPGM 0, implicit [[V_FRACT_F16_e64_]]
47 %0:vgpr(s32) = COPY $vgpr0
48 %1:vgpr(s16) = G_TRUNC %0
49 %2:vgpr(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.fract), %1
50 S_ENDPGM 0, implicit %2