Bump version to 19.1.0-rc3
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / GlobalISel / regbankselect-fcanonicalize.mir
bloba03086fbcc145968eb1db99624459af44aa6f218
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn -run-pass=amdgpu-regbankselect -regbankselect-fast -verify-machineinstrs -o - %s | FileCheck %s
3 # RUN: llc -mtriple=amdgcn -run-pass=amdgpu-regbankselect -regbankselect-greedy -verify-machineinstrs -o - %s | FileCheck %s
5 ---
6 name: fcanonicalize_s
7 legalized: true
9 body: |
10   bb.0:
11     liveins: $sgpr0_sgpr1
12     ; CHECK-LABEL: name: fcanonicalize_s
13     ; CHECK: liveins: $sgpr0_sgpr1
14     ; CHECK-NEXT: {{  $}}
15     ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
16     ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)
17     ; CHECK-NEXT: [[FCANONICALIZE:%[0-9]+]]:vgpr(s32) = G_FCANONICALIZE [[COPY1]]
18     ; CHECK-NEXT: $vgpr0 = COPY [[FCANONICALIZE]](s32)
19     %0:_(s32) = COPY $sgpr0
20     %1:_(s32) = G_FCANONICALIZE %0
21     $vgpr0 = COPY %1
22 ...
24 ---
25 name: fcanonicalize_v
26 legalized: true
28 body: |
29   bb.0:
30     liveins: $vgpr0_vgpr1
31     ; CHECK-LABEL: name: fcanonicalize_v
32     ; CHECK: liveins: $vgpr0_vgpr1
33     ; CHECK-NEXT: {{  $}}
34     ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
35     ; CHECK-NEXT: [[FCANONICALIZE:%[0-9]+]]:vgpr(s32) = G_FCANONICALIZE [[COPY]]
36     ; CHECK-NEXT: $vgpr0 = COPY [[FCANONICALIZE]](s32)
37     %0:_(s32) = COPY $vgpr0
38     %1:_(s32) = G_FCANONICALIZE %0
39     $vgpr0 = COPY %1
40 ...