[PATCH] D99647: [AMDGPU] Add some missing testing for new subtargets gfx90a and gfx90c

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 31 03:40:00 PDT 2021


foad created this revision.
foad added a reviewer: rampitec.
Herald added subscribers: kerbowa, rupprecht, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl, emaste.
Herald added a reviewer: jhenderson.
Herald added a reviewer: MaskRay.
foad requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99647

Files:
  llvm/test/tools/llvm-objdump/ELF/AMDGPU/subtarget.ll


Index: llvm/test/tools/llvm-objdump/ELF/AMDGPU/subtarget.ll
===================================================================
--- llvm/test/tools/llvm-objdump/ELF/AMDGPU/subtarget.ll
+++ llvm/test/tools/llvm-objdump/ELF/AMDGPU/subtarget.ll
@@ -44,6 +44,16 @@
 
 ; ----------------------------------GFX9---------------------------------------
 ;
+; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90c -filetype=obj -O0 -o %t.o %s
+; RUN: llvm-objdump -D --arch-name=amdgcn --mcpu=gfx90c %t.o > %t-specify.txt
+; RUN: llvm-objdump -D %t.o > %t-detect.txt
+; RUN: diff %t-specify.txt %t-detect.txt
+
+; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -filetype=obj -O0 -o %t.o %s
+; RUN: llvm-objdump -D --arch-name=amdgcn --mcpu=gfx90a %t.o > %t-specify.txt
+; RUN: llvm-objdump -D %t.o > %t-detect.txt
+; RUN: diff %t-specify.txt %t-detect.txt
+
 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx909 -filetype=obj -O0 -o %t.o %s
 ; RUN: llvm-objdump -D --arch-name=amdgcn --mcpu=gfx909 %t.o > %t-specify.txt
 ; RUN: llvm-objdump -D %t.o > %t-detect.txt


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99647.334399.patch
Type: text/x-patch
Size: 1050 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210331/2213c297/attachment.bin>


More information about the llvm-commits mailing list