[AMDGPU] Make v8i16/v8f16 legal
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / GlobalISel / regbankselect-intrinsic-trunc.mir
blobd9e6021ebfa5def3c3ac1e2835c9db444bedf97a
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck %s
3 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-greedy | FileCheck %s
5 ---
6 name: intrinsic_trunc_s
7 legalized: true
9 body: |
10   bb.0:
11     liveins: $sgpr0
12     ; CHECK-LABEL: name: intrinsic_trunc_s
13     ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
14     ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)
15     ; CHECK: [[INTRINSIC_TRUNC:%[0-9]+]]:vgpr(s32) = G_INTRINSIC_TRUNC [[COPY1]]
16     %0:_(s32) = COPY $sgpr0
17     %1:_(s32) = G_INTRINSIC_TRUNC %0
18 ...
20 ---
21 name: intrinsic_trunc_v
22 legalized: true
24 body: |
25   bb.0:
26     liveins: $vgpr0
27     ; CHECK-LABEL: name: intrinsic_trunc_v
28     ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
29     ; CHECK: [[INTRINSIC_TRUNC:%[0-9]+]]:vgpr(s32) = G_INTRINSIC_TRUNC [[COPY]]
30     %0:_(s32) = COPY $vgpr0
31     %1:_(s32) = G_INTRINSIC_TRUNC %0
32 ...