1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn -mcpu=hawaii -run-pass=instruction-select -verify-machineinstrs -o - %s | FileCheck %s
5 name: intrinsic_trunc_s32_vv
8 tracksRegLiveness: true
14 ; CHECK-LABEL: name: intrinsic_trunc_s32_vv
15 ; CHECK: liveins: $vgpr0
17 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
18 ; CHECK-NEXT: %1:vgpr_32 = nofpexcept V_TRUNC_F32_e64 0, [[COPY]], 0, 0, implicit $mode, implicit $exec
19 ; CHECK-NEXT: $vgpr0 = COPY %1
20 %0:vgpr(s32) = COPY $vgpr0
21 %1:vgpr(s32) = G_INTRINSIC_TRUNC %0
26 name: intrinsic_trunc_s32_vs
29 tracksRegLiveness: true
35 ; CHECK-LABEL: name: intrinsic_trunc_s32_vs
36 ; CHECK: liveins: $sgpr0
38 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
39 ; CHECK-NEXT: %1:vgpr_32 = nofpexcept V_TRUNC_F32_e64 0, [[COPY]], 0, 0, implicit $mode, implicit $exec
40 ; CHECK-NEXT: $vgpr0 = COPY %1
41 %0:sgpr(s32) = COPY $sgpr0
42 %1:vgpr(s32) = G_INTRINSIC_TRUNC %0
47 name: intrinsic_trunc_s64_sv
50 tracksRegLiveness: true
56 ; CHECK-LABEL: name: intrinsic_trunc_s64_sv
57 ; CHECK: liveins: $sgpr0_sgpr1
59 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sreg_64 = COPY $sgpr0_sgpr1
60 ; CHECK-NEXT: %1:vreg_64 = nofpexcept V_TRUNC_F64_e64 0, [[COPY]], 0, 0, implicit $mode, implicit $exec
61 ; CHECK-NEXT: $vgpr0_vgpr1 = COPY %1
62 %0:sgpr(s64) = COPY $sgpr0_sgpr1
63 %1:vgpr(s64) = G_INTRINSIC_TRUNC %0
64 $vgpr0_vgpr1 = COPY %1
68 name: intrinsic_trunc_s64_vv
71 tracksRegLiveness: true
77 ; CHECK-LABEL: name: intrinsic_trunc_s64_vv
78 ; CHECK: liveins: $vgpr0_vgpr1
80 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vreg_64 = COPY $vgpr0_vgpr1
81 ; CHECK-NEXT: %1:vreg_64 = nofpexcept V_TRUNC_F64_e64 0, [[COPY]], 0, 0, implicit $mode, implicit $exec
82 ; CHECK-NEXT: $vgpr0_vgpr1 = COPY %1
83 %0:vgpr(s64) = COPY $vgpr0_vgpr1
84 %1:vgpr(s64) = G_INTRINSIC_TRUNC %0
85 $vgpr0_vgpr1 = COPY %1