forked from OSchip/llvm-project
66 lines
1.7 KiB
Plaintext
66 lines
1.7 KiB
Plaintext
|
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
||
|
# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -run-pass=legalizer %s -o - | FileCheck %s
|
||
|
|
||
|
---
|
||
|
name: test_anyext_s32_to_s64
|
||
|
body: |
|
||
|
bb.0.entry:
|
||
|
liveins: $vgpr0
|
||
|
|
||
|
; CHECK-LABEL: name: test_anyext_s32_to_s64
|
||
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
||
|
; CHECK: [[ANYEXT:%[0-9]+]]:_(s64) = G_ANYEXT [[COPY]](s32)
|
||
|
; CHECK: $vgpr0_vgpr1 = COPY [[ANYEXT]](s64)
|
||
|
%0:_(s32) = COPY $vgpr0
|
||
|
%1:_(s64) = G_ANYEXT %0
|
||
|
$vgpr0_vgpr1 = COPY %1
|
||
|
...
|
||
|
|
||
|
---
|
||
|
name: test_anyext_s16_to_s64
|
||
|
body: |
|
||
|
bb.0.entry:
|
||
|
liveins: $vgpr0
|
||
|
|
||
|
; CHECK-LABEL: name: test_anyext_s16_to_s64
|
||
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
||
|
; CHECK: [[ANYEXT:%[0-9]+]]:_(s64) = G_ANYEXT [[COPY]](s32)
|
||
|
; CHECK: $vgpr0_vgpr1 = COPY [[ANYEXT]](s64)
|
||
|
%0:_(s32) = COPY $vgpr0
|
||
|
%1:_(s16) = G_TRUNC %0
|
||
|
%2:_(s64) = G_ANYEXT %1
|
||
|
$vgpr0_vgpr1 = COPY %2
|
||
|
...
|
||
|
|
||
|
---
|
||
|
name: test_anyext_s16_to_s32
|
||
|
body: |
|
||
|
bb.0.entry:
|
||
|
liveins: $vgpr0
|
||
|
|
||
|
; CHECK-LABEL: name: test_anyext_s16_to_s32
|
||
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
||
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
|
||
|
; CHECK: $vgpr0 = COPY [[COPY1]](s32)
|
||
|
%0:_(s32) = COPY $vgpr0
|
||
|
%1:_(s16) = G_TRUNC %0
|
||
|
%2:_(s32) = G_ANYEXT %1
|
||
|
$vgpr0 = COPY %2
|
||
|
...
|
||
|
|
||
|
---
|
||
|
name: test_anyext_i1_to_s32
|
||
|
body: |
|
||
|
bb.0.entry:
|
||
|
liveins: $vgpr0
|
||
|
|
||
|
; CHECK-LABEL: name: test_anyext_i1_to_s32
|
||
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
||
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
|
||
|
; CHECK: $vgpr0 = COPY [[COPY1]](s32)
|
||
|
%0:_(s32) = COPY $vgpr0
|
||
|
%1:_(s1) = G_TRUNC %0
|
||
|
%2:_(s32) = G_ANYEXT %1
|
||
|
$vgpr0 = COPY %2
|
||
|
...
|