1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=instruction-select -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s
5 name: intrinsic_trunc_s16_vv
8 tracksRegLiveness: true
14 ; GCN-LABEL: name: intrinsic_trunc_s16_vv
15 ; GCN: liveins: $vgpr0
17 ; GCN-NEXT: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
18 ; GCN-NEXT: %2:vgpr_32 = nofpexcept V_TRUNC_F16_e64 0, [[COPY]], 0, 0, implicit $mode, implicit $exec
19 ; GCN-NEXT: $vgpr0 = COPY %2
20 %0:vgpr(s32) = COPY $vgpr0
21 %1:vgpr(s16) = G_TRUNC %0
22 %2:vgpr(s16) = G_INTRINSIC_TRUNC %1
23 %3:vgpr(s32) = G_ANYEXT %2
28 name: intrinsic_trunc_s16_vs
31 tracksRegLiveness: true
37 ; GCN-LABEL: name: intrinsic_trunc_s16_vs
38 ; GCN: liveins: $sgpr0
40 ; GCN-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
41 ; GCN-NEXT: %2:vgpr_32 = nofpexcept V_TRUNC_F16_e64 0, [[COPY]], 0, 0, implicit $mode, implicit $exec
42 ; GCN-NEXT: $vgpr0 = COPY %2
43 %0:sgpr(s32) = COPY $sgpr0
44 %1:sgpr(s16) = G_TRUNC %0
45 %2:vgpr(s16) = G_INTRINSIC_TRUNC %1
46 %3:vgpr(s32) = G_ANYEXT %2
51 name: intrinsic_trunc_fneg_s16_vv
54 tracksRegLiveness: true
60 ; GCN-LABEL: name: intrinsic_trunc_fneg_s16_vv
61 ; GCN: liveins: $vgpr0
63 ; GCN-NEXT: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
64 ; GCN-NEXT: %3:vgpr_32 = nofpexcept V_TRUNC_F16_e64 1, [[COPY]], 0, 0, implicit $mode, implicit $exec
65 ; GCN-NEXT: $vgpr0 = COPY %3
66 %0:vgpr(s32) = COPY $vgpr0
67 %1:vgpr(s16) = G_TRUNC %0
68 %2:vgpr(s16) = G_FNEG %1
69 %3:vgpr(s16) = G_INTRINSIC_TRUNC %2
70 %4:vgpr(s32) = G_ANYEXT %3