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