Bump version to 19.1.0-rc3
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / GlobalISel / regbankselect-trunc.mir
blob041621bb193ff766637a3be91be72ae42f74665e
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn -mcpu=fiji -run-pass=amdgpu-regbankselect %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck %s
3 # RUN: llc -mtriple=amdgcn -mcpu=fiji -run-pass=amdgpu-regbankselect %s -verify-machineinstrs -o - -regbankselect-greedy | FileCheck %s
5 ---
6 name: trunc_i64_to_i32_s
7 legalized: true
9 body: |
10   bb.0:
11     liveins: $sgpr0_sgpr1
12     ; CHECK-LABEL: name: trunc_i64_to_i32_s
13     ; CHECK: liveins: $sgpr0_sgpr1
14     ; CHECK-NEXT: {{  $}}
15     ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s64) = COPY $sgpr0_sgpr1
16     ; CHECK-NEXT: [[TRUNC:%[0-9]+]]:sgpr(s32) = G_TRUNC [[COPY]](s64)
17     %0:_(s64) = COPY $sgpr0_sgpr1
18     %1:_(s32) = G_TRUNC %0
19 ...
21 ---
22 name: trunc_i64_to_i32_v
23 legalized: true
25 body: |
26   bb.0:
27     liveins: $vgpr0_vgpr1
28     ; CHECK-LABEL: name: trunc_i64_to_i32_v
29     ; CHECK: liveins: $vgpr0_vgpr1
30     ; CHECK-NEXT: {{  $}}
31     ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s64) = COPY $vgpr0_vgpr1
32     ; CHECK-NEXT: [[TRUNC:%[0-9]+]]:vgpr(s32) = G_TRUNC [[COPY]](s64)
33     %0:_(s64) = COPY $vgpr0_vgpr1
34     %1:_(s32) = G_TRUNC %0
35 ...
36 ---
37 name: trunc_i64_to_i1_s
38 legalized: true
40 body: |
41   bb.0:
42     liveins: $sgpr0_sgpr1
43     ; CHECK-LABEL: name: trunc_i64_to_i1_s
44     ; CHECK: liveins: $sgpr0_sgpr1
45     ; CHECK-NEXT: {{  $}}
46     ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s64) = COPY $sgpr0_sgpr1
47     ; CHECK-NEXT: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[COPY]](s64)
48     %0:_(s64) = COPY $sgpr0_sgpr1
49     %1:_(s1) = G_TRUNC %0
50 ...
52 ---
53 name: trunc_i64_to_i1_v
54 legalized: true
56 body: |
57   bb.0:
58     liveins: $vgpr0_vgpr1
59     ; CHECK-LABEL: name: trunc_i64_to_i1_v
60     ; CHECK: liveins: $vgpr0_vgpr1
61     ; CHECK-NEXT: {{  $}}
62     ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s64) = COPY $vgpr0_vgpr1
63     ; CHECK-NEXT: [[TRUNC:%[0-9]+]]:vgpr(s1) = G_TRUNC [[COPY]](s64)
64     %0:_(s64) = COPY $vgpr0_vgpr1
65     %1:_(s1) = G_TRUNC %0
66 ...
68 ---
69 name: trunc_i32_to_i1_s
70 legalized: true
72 body: |
73   bb.0:
74     liveins: $sgpr0
75     ; CHECK-LABEL: name: trunc_i32_to_i1_s
76     ; CHECK: liveins: $sgpr0
77     ; CHECK-NEXT: {{  $}}
78     ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
79     ; CHECK-NEXT: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[COPY]](s32)
80     %0:_(s32) = COPY $sgpr0
81     %1:_(s1) = G_TRUNC %0
82 ...
84 ---
85 name: trunc_i32_to_i1_v
86 legalized: true
88 body: |
89   bb.0:
90     liveins: $vgpr0
91     ; CHECK-LABEL: name: trunc_i32_to_i1_v
92     ; CHECK: liveins: $vgpr0
93     ; CHECK-NEXT: {{  $}}
94     ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
95     ; CHECK-NEXT: [[TRUNC:%[0-9]+]]:vgpr(s1) = G_TRUNC [[COPY]](s32)
96     %0:_(s32) = COPY $vgpr0
97     %1:_(s1) = G_TRUNC %0
98 ...