forked from OSchip/llvm-project
34 lines
913 B
YAML
34 lines
913 B
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -run-pass=legalizer -global-isel %s -o - | FileCheck %s
|
|
|
|
---
|
|
name: test_uitofp_s32_to_s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0
|
|
|
|
; CHECK-LABEL: name: test_uitofp_s32_to_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[UITOFP:%[0-9]+]]:_(s32) = G_UITOFP [[COPY]](s32)
|
|
; CHECK: $vgpr0 = COPY [[UITOFP]](s32)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = G_UITOFP %0
|
|
$vgpr0 = COPY %1
|
|
...
|
|
|
|
---
|
|
name: test_uitofp_s32_to_s64
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0
|
|
|
|
; CHECK-LABEL: name: test_uitofp_s32_to_s64
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[UITOFP:%[0-9]+]]:_(s64) = G_UITOFP [[COPY]](s32)
|
|
; CHECK: $vgpr0_vgpr1 = COPY [[UITOFP]](s64)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s64) = G_UITOFP %0
|
|
$vgpr0_vgpr1 = COPY %1
|
|
...
|
|
|