[llvm] f769899 - [AMDGPU] Add test for instructions unsupported on gfx940. NFC.

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 3 11:01:43 PST 2022


Author: Stanislav Mekhanoshin
Date: 2022-03-03T11:01:29-08:00
New Revision: f7698991157e23d619c22be5dd2b9230f94717b3

URL: https://github.com/llvm/llvm-project/commit/f7698991157e23d619c22be5dd2b9230f94717b3
DIFF: https://github.com/llvm/llvm-project/commit/f7698991157e23d619c22be5dd2b9230f94717b3.diff

LOG: [AMDGPU] Add test for instructions unsupported on gfx940. NFC.

Added: 
    llvm/test/MC/AMDGPU/gfx940_err.s

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/llvm/test/MC/AMDGPU/gfx940_err.s b/llvm/test/MC/AMDGPU/gfx940_err.s
new file mode 100644
index 0000000000000..867aa7bcc6da7
--- /dev/null
+++ b/llvm/test/MC/AMDGPU/gfx940_err.s
@@ -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


        


More information about the llvm-commits mailing list