• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3
4---
5name: intrinsic_trunc_s16_vv
6legalized: true
7regBankSelected: true
8tracksRegLiveness: true
9
10body: |
11  bb.0:
12    liveins: $vgpr0
13
14    ; GCN-LABEL: name: intrinsic_trunc_s16_vv
15    ; GCN: liveins: $vgpr0
16    ; GCN: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
17    ; GCN: %2:vgpr_32 = nofpexcept V_TRUNC_F16_e64 0, [[COPY]], 0, 0, implicit $mode, implicit $exec
18    ; GCN: $vgpr0 = COPY %2
19    %0:vgpr(s32) = COPY $vgpr0
20    %1:vgpr(s16) = G_TRUNC %0
21    %2:vgpr(s16) = G_INTRINSIC_TRUNC %1
22    %3:vgpr(s32) = G_ANYEXT %2
23    $vgpr0 = COPY %3
24...
25
26---
27name: intrinsic_trunc_s16_vs
28legalized: true
29regBankSelected: true
30tracksRegLiveness: true
31
32body: |
33  bb.0:
34    liveins: $sgpr0
35
36    ; GCN-LABEL: name: intrinsic_trunc_s16_vs
37    ; GCN: liveins: $sgpr0
38    ; GCN: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr0
39    ; GCN: %2:vgpr_32 = nofpexcept V_TRUNC_F16_e64 0, [[COPY]], 0, 0, implicit $mode, implicit $exec
40    ; GCN: $vgpr0 = COPY %2
41    %0:sgpr(s32) = COPY $sgpr0
42    %1:sgpr(s16) = G_TRUNC %0
43    %2:vgpr(s16) = G_INTRINSIC_TRUNC %1
44    %3:vgpr(s32) = G_ANYEXT %2
45    $vgpr0 = COPY %3
46...
47
48---
49name: intrinsic_trunc_fneg_s16_vv
50legalized: true
51regBankSelected: true
52tracksRegLiveness: true
53
54body: |
55  bb.0:
56    liveins: $vgpr0
57
58    ; GCN-LABEL: name: intrinsic_trunc_fneg_s16_vv
59    ; GCN: liveins: $vgpr0
60    ; GCN: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
61    ; GCN: %3:vgpr_32 = nofpexcept V_TRUNC_F16_e64 1, [[COPY]], 0, 0, implicit $mode, implicit $exec
62    ; GCN: $vgpr0 = COPY %3
63    %0:vgpr(s32) = COPY $vgpr0
64    %1:vgpr(s16) = G_TRUNC %0
65    %2:vgpr(s16) = G_FNEG %1
66    %3:vgpr(s16) = G_INTRINSIC_TRUNC %2
67    %4:vgpr(s32) = G_ANYEXT %3
68    $vgpr0 = COPY %4
69...
70