55 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -O0 -march amdgcn -mcpu=fiji -run-pass="amdgpu-regbankselect,amdgpu-regbanklegalize" %s -o - | FileCheck %s3 4# Check the default mappings for various instructions.5 6---7name: test_fconstant_f32_18legalized: true9body: |10 bb.0:11 ; CHECK-LABEL: name: test_fconstant_f32_112 ; CHECK: [[C:%[0-9]+]]:sgpr(s32) = G_FCONSTANT float 1.000000e+0013 %0:_(s32) = G_FCONSTANT float 1.014...15---16name: test_fconstant_f64_117legalized: true18body: |19 bb.0:20 ; CHECK-LABEL: name: test_fconstant_f64_121 ; CHECK: [[C:%[0-9]+]]:sgpr(s64) = G_FCONSTANT double 1.000000e+0022 %0:_(s64) = G_FCONSTANT double 1.023...24---25name: test_fconstant_f16_126legalized: true27body: |28 bb.0:29 ; CHECK-LABEL: name: test_fconstant_f16_130 ; CHECK: [[C:%[0-9]+]]:sgpr(s16) = G_FCONSTANT half 0xH3C0031 ; CHECK-NEXT: [[ANYEXT:%[0-9]+]]:sgpr(s32) = G_ANYEXT [[C]](s16)32 %0:_(s16) = G_FCONSTANT half 1.033 %1:_(s32) = G_ANYEXT %034...35 36---37name: test_implicit_def_s3238legalized: true39body: |40 bb.0:41 ; CHECK-LABEL: name: test_implicit_def_s3242 ; CHECK: [[DEF:%[0-9]+]]:sgpr(s32) = G_IMPLICIT_DEF43 %0:_(s32) = G_IMPLICIT_DEF44...45 46---47name: test_implicit_def_s6448legalized: true49body: |50 bb.0:51 ; CHECK-LABEL: name: test_implicit_def_s6452 ; CHECK: [[DEF:%[0-9]+]]:sgpr(s64) = G_IMPLICIT_DEF53 %0:_(s64) = G_IMPLICIT_DEF54...55