1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn -mcpu=gfx900 -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
8 tracksRegLiveness: true
12 liveins: $sgpr0, $vgpr0
13 ; CHECK-LABEL: name: mulhi_u24_vsv
14 ; CHECK: liveins: $sgpr0, $vgpr0
16 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
17 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vgpr_32 = COPY $vgpr0
18 ; CHECK-NEXT: [[V_MUL_HI_U32_U24_e64_:%[0-9]+]]:vgpr_32 = V_MUL_HI_U32_U24_e64 [[COPY]], [[COPY1]], implicit $exec
19 ; CHECK-NEXT: S_ENDPGM 0, implicit [[V_MUL_HI_U32_U24_e64_]]
20 %0:sgpr(s32) = COPY $sgpr0
21 %1:vgpr(s32) = COPY $vgpr0
22 %2:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.mulhi.u24), %0, %1
23 S_ENDPGM 0, implicit %2
30 tracksRegLiveness: true
34 liveins: $sgpr0, $vgpr0
35 ; CHECK-LABEL: name: mulhi_u24_vvs
36 ; CHECK: liveins: $sgpr0, $vgpr0
38 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
39 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:sreg_32 = COPY $sgpr0
40 ; CHECK-NEXT: [[V_MUL_HI_U32_U24_e64_:%[0-9]+]]:vgpr_32 = V_MUL_HI_U32_U24_e64 [[COPY]], [[COPY1]], implicit $exec
41 ; CHECK-NEXT: S_ENDPGM 0, implicit [[V_MUL_HI_U32_U24_e64_]]
42 %0:vgpr(s32) = COPY $vgpr0
43 %1:sgpr(s32) = COPY $sgpr0
44 %2:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.mulhi.u24), %0, %1
45 S_ENDPGM 0, implicit %2
52 tracksRegLiveness: true
56 liveins: $vgpr0, $vgpr1
57 ; CHECK-LABEL: name: mulhi_u24_vvv
58 ; CHECK: liveins: $vgpr0, $vgpr1
60 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
61 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vgpr_32 = COPY $vgpr1
62 ; CHECK-NEXT: [[V_MUL_HI_U32_U24_e64_:%[0-9]+]]:vgpr_32 = V_MUL_HI_U32_U24_e64 [[COPY]], [[COPY1]], implicit $exec
63 ; CHECK-NEXT: S_ENDPGM 0, implicit [[V_MUL_HI_U32_U24_e64_]]
64 %0:vgpr(s32) = COPY $vgpr0
65 %1:vgpr(s32) = COPY $vgpr1
66 %2:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.mulhi.u24), %0, %1
67 S_ENDPGM 0, implicit %2