blob: 56da4e3add5c28a265c2249321417ff166cd9a12 [file] [log] [blame]
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -O0 -run-pass=legalizer %s -o - | FileCheck %s
---
name: test_constant_i32
body: |
bb.0:
; CHECK-LABEL: name: test_constant_i32
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 5
; CHECK: $vgpr0 = COPY [[C]](s32)
%0:_(s32) = G_CONSTANT i32 5
$vgpr0 = COPY %0
...
---
name: test_constant_i64
body: |
bb.0:
; CHECK-LABEL: name: test_constant_i64
; CHECK: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 5
; CHECK: $vgpr0_vgpr1 = COPY [[C]](s64)
%0:_(s64) = G_CONSTANT i64 5
$vgpr0_vgpr1 = COPY %0
...
---
name: test_fconstant_f32
body: |
bb.0:
; CHECK-LABEL: name: test_fconstant_f32
; CHECK: [[C:%[0-9]+]]:_(s32) = G_FCONSTANT float 1.000000e+00
; CHECK: $vgpr0 = COPY [[C]](s32)
%0:_(s32) = G_FCONSTANT float 1.0
$vgpr0 = COPY %0
...
---
name: test_fconstant_f64
body: |
bb.0:
; CHECK-LABEL: name: test_fconstant_f64
; CHECK: [[C:%[0-9]+]]:_(s64) = G_FCONSTANT double 1.000000e+00
; CHECK: $vgpr0_vgpr1 = COPY [[C]](s64)
%0:_(s64) = G_FCONSTANT double 1.0
$vgpr0_vgpr1 = COPY %0
...
---
name: test_constant_1
body: |
bb.0:
; CHECK-LABEL: name: test_constant_1
; CHECK: [[C:%[0-9]+]]:_(s1) = G_CONSTANT i1 false
; CHECK: S_ENDPGM implicit [[C]](s1)
%1:_(s1) = G_CONSTANT i1 0
S_ENDPGM implicit %1
...