45 lines · plain
1# REQUIRES: asserts2# RUN: llc -mtriple=amdgcn -verify-machineinstrs -run-pass si-insert-waitcnts -debug-counter=si-insert-waitcnts-forcelgkm=0 -o - %s | FileCheck -check-prefixes=GCN,LGKM %s3# RUN: llc -mtriple=amdgcn -verify-machineinstrs -run-pass si-insert-waitcnts -debug-counter=si-insert-waitcnts-forceexp=0-1 -o - %s | FileCheck -check-prefixes=GCN,EXP %s4# RUN: llc -mtriple=amdgcn -verify-machineinstrs -run-pass si-insert-waitcnts -debug-counter=si-insert-waitcnts-forcevm=0-2 -o - %s | FileCheck -check-prefixes=GCN,VM %s5# RUN: llc -mtriple=amdgcn -verify-machineinstrs -run-pass si-insert-waitcnts -amdgpu-waitcnt-forcezero=1 -debug-counter=si-insert-waitcnts-forcevm=0-1 -o - %s | FileCheck -check-prefixes=GCN,ZERO %s6 7# check that the waitcnt pass options that force insertion of waitcnt instructions are working as expected8 9...10# GCN-LABEL: name: waitcnt-debug11# LGKM: S_WAITCNT 12712# LGKM-NEXT: S_NOP 013# LGKM-NEXT: S_NOP 014 15# EXP: S_WAITCNT 385516# EXP-NEXT: S_NOP 017# EXP-NEXT: S_WAITCNT 385518# EXP-NEXT: S_NOP 019 20# VM: S_WAITCNT 395221# VM-NEXT: S_NOP 022# VM-NEXT: S_WAITCNT 395223# VM-NEXT: S_NOP 024# VM-NEXT: S_WAITCNT 395225# VM-NEXT: S_NOP 026 27# ZERO: S_WAITCNT 028# ZERO-NEXT: S_NOP 029# ZERO-NEXT: S_WAITCNT 030# ZERO-NEXT: S_NOP 031# ZERO-NEXT: S_WAITCNT 032# ZERO-NEXT: S_NOP 033 34name: waitcnt-debug35liveins:36machineFunctionInfo:37 isEntryFunction: true38body: |39 bb.0:40 S_NOP 041 S_NOP 042 S_NOP 043 S_NOP 044...45