Skip to content

[AMDGPU] Create dir for amdgpu specific machineverifier tests #106960

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions llvm/test/MachineVerifier/AMDGPU/lit.local.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
if not "AMDGPU" in config.root.targets:
config.unsupported = True
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# FIXME: This should fail the verifier
# XFAIL: *
# REQUIRES: amdgpu-registered-target
# RUN: not --crash llc -o - -mtriple=amdgcn-amd-amdhsa -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s

# %1 is live out of %bb.1 through the loop edge, and therefore the kill flag is invalid.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -o - -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
# REQUIRES: amdgpu-registered-target

---
name: test_bitcast
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# RUN: not --crash llc -o - -mtriple=amdgcn -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
# REQUIRES: amdgpu-registered-target

---
name: test_intrinsic
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# RUN: not --crash llc -o - -mtriple=amdgcn -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
# REQUIRES: amdgpu-registered-target

---
name: test_intrinsic_w_side_effects
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# REQUIRES: amdgpu-registered-target
# RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -run-pass=none -o /dev/null %s 2>&1 | FileCheck %s

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# XFAIL: *
# REQUIRES: amdgpu-registered-target
# RUN: not --crash llc -o - -mtriple=amdgcn-amd-amdhsa -run-pass=none -verify-machineinstrs %s

# FIXME: This should catch the undefined use of %0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# FIXME: This should fail the verifier
# XFAIL: *
# REQUIRES: amdgpu-registered-target
# RUN: not --crash llc -o - -mtriple=amdgcn-amd-amdhsa -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s

# CHECK: *** Bad machine code: Virtual register defs don't dominate all uses. ***
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# RUN: llc -mtriple amdgcn-amd-amdhsa -run-pass=liveintervals,pipeliner -verify-machineinstrs -o - %s | FileCheck %s
# REQUIRES: amdgpu-registered-target

# This test checks that the verifier doesn't crash on early clobbered subreg arguments.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -verify-machineinstrs -o /dev/null %s 2>&1 | FileCheck -check-prefix=ERROR %s
# REQUIRES: amdgpu-registered-target

# When the verifier was detecting the invalid liveness for vcc, it would assert when trying to iterate the subregisters of the implicit virtual register use.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# RUN: not --crash llc -mtriple=amdgcn -run-pass=verify -o - %s 2>&1 | FileCheck %s
# REQUIRES: amdgpu-registered-target

# Make sure that mismatched successors are caught when a _term
# instruction is used
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# REQUIRES: amdgpu-registered-target
# RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -run-pass=none -o /dev/null %s 2>&1 | FileCheck %s

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# REQUIRES: amdgpu-registered-target
# RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -run-pass=none -o /dev/null %s 2>&1 | FileCheck %s

---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1100 -verify-machineinstrs -run-pass=none -o - %s | FileCheck %s
# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1200 -verify-machineinstrs -run-pass=none -o - %s | FileCheck %s

# REQUIRES: amdgpu-registered-target

---

name: writelane_m0
Expand Down
Loading