Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AMDGPU] Add test for instructions unsupported on gfx940. NFC.
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx940 %s 2>&1 | FileCheck --check-prefix=GFX940 --implicit-check-not=error: %s | ||
|
||
v_mac_f32 v0, v1, v2 | ||
// FIXME: error message is incorrect | ||
// GFX940: error: operands are not valid for this GPU or mode | ||
|
||
v_mad_f32 v0, v1, v2, v3 | ||
// GFX940: error: instruction not supported on this GPU | ||
|
||
v_madak_f32 v0, v1, v2, 0 | ||
// GFX940: error: instruction not supported on this GPU | ||
|
||
v_madmk_f32 v0, v1, 0, v2 | ||
// GFX940: error: instruction not supported on this GPU | ||
|
||
v_mad_legacy_f32 v0, v1, v2, v3 | ||
// GFX940: error: instruction not supported on this GPU |