mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
cc12b285b6
This will currently accept the old number of bytes syntax, and convert it to a scalar. This should be removed in the near future (I think I converted all of the tests already, but likely missed a few). Not sure what the exact syntax and policy should be. We can continue printing the number of bytes for non-generic instructions to avoid test churn and only allow non-scalar types for generic instructions. This will currently print the LLT in parentheses, but accept parsing the existing integers and implicitly converting to scalar. The parentheses are a bit ugly, but the parser logic seems unable to deal without either parentheses or some keyword to indicate the start of a type.
87 lines
3.9 KiB
YAML
87 lines
3.9 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx906 -verify-machineinstrs -run-pass=machine-scheduler -verify-misched -o - %s | FileCheck %s
|
|
|
|
# Deciding which lanes are killed needs to account for other defs in the
|
|
# instruction.
|
|
#
|
|
# addVRegDefDeps would encounter the %0.sub0 def and erase %0 from
|
|
# current vreg uses because it shared no lanes with %0.sub1 use on the
|
|
# nop. It then didn't see the lanemask when it reached the second
|
|
# subreg def, and failed to add the necessary dependency between the
|
|
# asm and S_NOP
|
|
|
|
---
|
|
name: no_live_subrange_at_use
|
|
tracksRegLiveness: true
|
|
machineFunctionInfo:
|
|
isEntryFunction: true
|
|
body: |
|
|
; CHECK-LABEL: name: no_live_subrange_at_use
|
|
; CHECK: bb.0:
|
|
; CHECK: successors: %bb.1(0x80000000)
|
|
; CHECK: undef %0.sub0:vreg_64 = V_MOV_B32_e32 0, implicit $exec
|
|
; CHECK: %0.sub1:vreg_64 = V_MOV_B32_e32 0, implicit $exec
|
|
; CHECK: [[V_MOV_B32_e32_:%[0-9]+]]:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
|
|
; CHECK: bb.1:
|
|
; CHECK: successors: %bb.1(0x80000000)
|
|
; CHECK: [[DS_READ_B32_gfx9_:%[0-9]+]]:vgpr_32 = DS_READ_B32_gfx9 [[V_MOV_B32_e32_]], 0, 0, implicit $exec :: (load (s32), addrspace 3)
|
|
; CHECK: INLINEASM &"", 1 /* sideeffect attdialect */, 851978 /* regdef:VGPR_LO16 */, def %0, 2147549193 /* reguse tiedto:$1 */, %0(tied-def 3)
|
|
; CHECK: INLINEASM &"", 1 /* sideeffect attdialect */, 851977 /* reguse:VGPR_LO16 */, [[DS_READ_B32_gfx9_]]
|
|
; CHECK: INLINEASM &"", 1 /* sideeffect attdialect */, 851978 /* regdef:VGPR_LO16 */, def undef %0.sub0, 851978 /* regdef:VGPR_LO16 */, def undef %0.sub1
|
|
; CHECK: S_NOP 0, implicit %0.sub1
|
|
; CHECK: $sgpr10 = S_MOV_B32 -1
|
|
; CHECK: S_BRANCH %bb.1
|
|
bb.0:
|
|
undef %0.sub0:vreg_64 = V_MOV_B32_e32 0, implicit $exec
|
|
%0.sub1:vreg_64 = V_MOV_B32_e32 0, implicit $exec
|
|
%1:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
|
|
|
|
bb.1:
|
|
%2:vgpr_32 = DS_READ_B32_gfx9 %1, 0, 0, implicit $exec :: (load (s32), addrspace 3)
|
|
INLINEASM &"", 1, 851978, def %0, 2147549193, %0(tied-def 3)
|
|
INLINEASM &"", 1, 851977, %2
|
|
INLINEASM &"", 1, 851978, def undef %0.sub0, 851978, def %0.sub1
|
|
S_NOP 0, implicit %0.sub1
|
|
$sgpr10 = S_MOV_B32 -1
|
|
S_BRANCH %bb.1
|
|
|
|
...
|
|
|
|
# Different operand order
|
|
---
|
|
name: no_live_subrange_at_use_swap
|
|
tracksRegLiveness: true
|
|
machineFunctionInfo:
|
|
isEntryFunction: true
|
|
body: |
|
|
; CHECK-LABEL: name: no_live_subrange_at_use_swap
|
|
; CHECK: bb.0:
|
|
; CHECK: successors: %bb.1(0x80000000)
|
|
; CHECK: undef %0.sub0:vreg_64 = V_MOV_B32_e32 0, implicit $exec
|
|
; CHECK: %0.sub1:vreg_64 = V_MOV_B32_e32 0, implicit $exec
|
|
; CHECK: [[V_MOV_B32_e32_:%[0-9]+]]:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
|
|
; CHECK: bb.1:
|
|
; CHECK: successors: %bb.1(0x80000000)
|
|
; CHECK: [[DS_READ_B32_gfx9_:%[0-9]+]]:vgpr_32 = DS_READ_B32_gfx9 [[V_MOV_B32_e32_]], 0, 0, implicit $exec :: (load (s32), addrspace 3)
|
|
; CHECK: INLINEASM &"", 1 /* sideeffect attdialect */, 851978 /* regdef:VGPR_LO16 */, def %0, 2147549193 /* reguse tiedto:$1 */, %0(tied-def 3)
|
|
; CHECK: INLINEASM &"", 1 /* sideeffect attdialect */, 851977 /* reguse:VGPR_LO16 */, [[DS_READ_B32_gfx9_]]
|
|
; CHECK: INLINEASM &"", 1 /* sideeffect attdialect */, 851978 /* regdef:VGPR_LO16 */, def undef %0.sub1, 851978 /* regdef:VGPR_LO16 */, def undef %0.sub0
|
|
; CHECK: S_NOP 0, implicit %0.sub1
|
|
; CHECK: $sgpr10 = S_MOV_B32 -1
|
|
; CHECK: S_BRANCH %bb.1
|
|
bb.0:
|
|
undef %0.sub0:vreg_64 = V_MOV_B32_e32 0, implicit $exec
|
|
%0.sub1:vreg_64 = V_MOV_B32_e32 0, implicit $exec
|
|
%1:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
|
|
|
|
bb.1:
|
|
%2:vgpr_32 = DS_READ_B32_gfx9 %1, 0, 0, implicit $exec :: (load (s32), addrspace 3)
|
|
INLINEASM &"", 1, 851978, def %0, 2147549193, %0(tied-def 3)
|
|
INLINEASM &"", 1, 851977, %2
|
|
INLINEASM &"", 1, 851978, def %0.sub1, 851978, def undef %0.sub0
|
|
S_NOP 0, implicit %0.sub1
|
|
$sgpr10 = S_MOV_B32 -1
|
|
S_BRANCH %bb.1
|
|
|
|
...
|