Bump version to 19.1.0-rc3
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / GlobalISel / regbankselect-default.mir
blobec59f40eff1071e424530adb5e3b7497278af8d0
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -march amdgcn -mcpu=fiji -run-pass=amdgpu-regbankselect %s -o - | FileCheck %s
4 # Check the default mappings for various instructions.
6 ---
7 name:            test_fconstant_f32_1
8 legalized:       true
9 body: |
10   bb.0:
11     ; CHECK-LABEL: name: test_fconstant_f32_1
12     ; CHECK: [[C:%[0-9]+]]:sgpr(s32) = G_FCONSTANT float 1.000000e+00
13     %0:_(s32) = G_FCONSTANT float 1.0
14 ...
15 ---
16 name:            test_fconstant_f64_1
17 legalized:       true
18 body: |
19   bb.0:
20     ; CHECK-LABEL: name: test_fconstant_f64_1
21     ; CHECK: [[C:%[0-9]+]]:sgpr(s64) = G_FCONSTANT double 1.000000e+00
22     %0:_(s64) = G_FCONSTANT double 1.0
23 ...
24 ---
25 name:            test_fconstant_f16_1
26 legalized:       true
27 body: |
28   bb.0:
29     ; CHECK-LABEL: name: test_fconstant_f16_1
30     ; CHECK: [[C:%[0-9]+]]:sgpr(s16) = G_FCONSTANT half 0xH3C00
31     ; CHECK-NEXT: [[ANYEXT:%[0-9]+]]:sgpr(s32) = G_ANYEXT [[C]](s16)
32     %0:_(s16) = G_FCONSTANT half 1.0
33     %1:_(s32) = G_ANYEXT %0
34 ...
36 ---
37 name:            test_implicit_def_s32
38 legalized:       true
39 body: |
40   bb.0:
41     ; CHECK-LABEL: name: test_implicit_def_s32
42     ; CHECK: [[DEF:%[0-9]+]]:sgpr(s32) = G_IMPLICIT_DEF
43     %0:_(s32) = G_IMPLICIT_DEF
44 ...
46 ---
47 name:            test_implicit_def_s64
48 legalized:       true
49 body: |
50   bb.0:
51     ; CHECK-LABEL: name: test_implicit_def_s64
52     ; CHECK: [[DEF:%[0-9]+]]:sgpr(s64) = G_IMPLICIT_DEF
53     %0:_(s64) = G_IMPLICIT_DEF
54 ...