File: triv-disjoint-mem-access-neg-offset.mir

package info (click to toggle)
llvm-toolchain-17 1%3A17.0.6-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,799,624 kB
  • sloc: cpp: 6,428,607; ansic: 1,383,196; asm: 793,408; python: 223,504; objc: 75,364; f90: 60,502; lisp: 33,869; pascal: 15,282; sh: 9,684; perl: 7,453; ml: 4,937; awk: 3,523; makefile: 2,889; javascript: 2,149; xml: 888; fortran: 619; cs: 573
file content (37 lines) | stat: -rw-r--r-- 1,564 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# RUN: llc -march=amdgcn -mcpu=gfx900 -verify-machineinstrs -enable-misched --debug-only=machine-scheduler -run-pass=machine-scheduler -o /dev/null %s 2>&1 | FileCheck %s
# REQUIRES: asserts

# Make sure handling of unsigned immediate values interpreted as negative values
# still works for SIInstrInfo::areMemAccessesTriviallyDisjoint.

# LABEL: {{^}}no_reorder_flat_load_local_store_local_load:
# CHECK:      SU(5):   %5:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
# CHECK:      SU(6):   DS_WRITE_B128_gfx9 %5:vgpr_32, %4:vreg_128, 512, 0, implicit $exec
# CHECK:      SU(7):   %6:vreg_64 = DS_READ2_B32_gfx9 %5:vgpr_32, -127, -126, 0, implicit $exec
# CHECK:      Predecessors:
# CHECK-NEXT: SU(6): Ord
# CHECK-NEXT: SU(5): Data
---
name:            no_reorder_flat_load_local_store_local_load
tracksRegLiveness: true
body:             |
  bb.0:
    liveins: $sgpr0_sgpr1

    %1:sgpr_64(p4) = COPY $sgpr0_sgpr1
    %4:sreg_32_xm0_xexec = S_LOAD_DWORD_IMM %1(p4), 36, 0
    %5:sreg_64_xexec = S_LOAD_DWORDX2_IMM %1(p4), 44, 0
    %7:vreg_64 = COPY %5
    %6:vreg_128 = FLAT_LOAD_DWORDX4 killed %7, 0, 0, implicit $exec, implicit $flat_scr
    %8:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
    DS_WRITE_B128_gfx9 %8, killed %6, 512, 0, implicit $exec
    %9:vreg_64 = DS_READ2_B32_gfx9 %8, -127, -126, 0, implicit $exec
    %10:sreg_32 = COPY %9.sub1
    %11:sreg_32 = COPY %9.sub0
    %12:vgpr_32 = COPY %4
    %13:vgpr_32 = COPY %11
    %14:vgpr_32 = COPY %10
    DS_WRITE2_B32_gfx9 killed %12, killed %13, killed %14, 0, 1, 0, implicit $exec
    S_ENDPGM 0

...