• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -O0 -march amdgcn -mcpu=fiji -run-pass=regbankselect %s -o - | FileCheck %s
3
4# Check the default mappings for various instructions.
5
6---
7name:            test_fconstant_f32_1
8legalized:       true
9body: |
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---
16name:            test_fconstant_f64_1
17legalized:       true
18body: |
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---
25name:            test_fconstant_f16_1
26legalized:       true
27body: |
28  bb.0:
29    ; CHECK-LABEL: name: test_fconstant_f16_1
30    ; CHECK: [[C:%[0-9]+]]:sgpr(s32) = G_FCONSTANT half 0xH3C00
31    %0:_(s32) = G_FCONSTANT half 1.0
32...
33
34---
35name:            test_implicit_def_s32
36legalized:       true
37body: |
38  bb.0:
39    ; CHECK-LABEL: name: test_implicit_def_s32
40    ; CHECK: [[DEF:%[0-9]+]]:sgpr(s32) = G_IMPLICIT_DEF
41    %0:_(s32) = G_IMPLICIT_DEF
42...
43
44---
45name:            test_implicit_def_s64
46legalized:       true
47body: |
48  bb.0:
49    ; CHECK-LABEL: name: test_implicit_def_s64
50    ; CHECK: [[DEF:%[0-9]+]]:sgpr(s64) = G_IMPLICIT_DEF
51    %0:_(s64) = G_IMPLICIT_DEF
52...
53