• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -march=amdgcn -run-pass=regbankselect -regbankselect-fast -verify-machineinstrs -o - %s | FileCheck %s
3# RUN: llc -march=amdgcn -run-pass=regbankselect -regbankselect-greedy -verify-machineinstrs -o - %s | FileCheck %s
4
5---
6name: fcanonicalize_s
7legalized: true
8
9body: |
10  bb.0:
11    liveins: $sgpr0_sgpr1
12    ; CHECK-LABEL: name: fcanonicalize_s
13    ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
14    ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)
15    ; CHECK: [[FCANONICALIZE:%[0-9]+]]:vgpr(s32) = G_FCANONICALIZE [[COPY1]]
16    ; CHECK: $vgpr0 = COPY [[FCANONICALIZE]](s32)
17    %0:_(s32) = COPY $sgpr0
18    %1:_(s32) = G_FCANONICALIZE %0
19    $vgpr0 = COPY %1
20...
21
22---
23name: fcanonicalize_v
24legalized: true
25
26body: |
27  bb.0:
28    liveins: $vgpr0_vgpr1
29    ; CHECK-LABEL: name: fcanonicalize_v
30    ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
31    ; CHECK: [[FCANONICALIZE:%[0-9]+]]:vgpr(s32) = G_FCANONICALIZE [[COPY]]
32    ; CHECK: $vgpr0 = COPY [[FCANONICALIZE]](s32)
33    %0:_(s32) = COPY $vgpr0
34    %1:_(s32) = G_FCANONICALIZE %0
35    $vgpr0 = COPY %1
36...
37