aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2021-03-31 11:39:25 +0100
committerJay Foad <jay.foad@amd.com>2021-04-06 08:38:59 +0100
commit94d0fc32f54bb390550bfd2e33676ab78c5ab24f (patch)
treec958cf208cdfa5c77ebab03de40b4dc7a9c80c48
parentcc26943313def7a985f72eadc7499ac981daabc6 (diff)
downloadllvm-94d0fc32f54bb390550bfd2e33676ab78c5ab24f.zip
llvm-94d0fc32f54bb390550bfd2e33676ab78c5ab24f.tar.gz
llvm-94d0fc32f54bb390550bfd2e33676ab78c5ab24f.tar.bz2
[AMDGPU] Add some missing testing for new subtargets gfx90a and gfx90c
Differential Revision: https://reviews.llvm.org/D99647
-rw-r--r--llvm/test/tools/llvm-objdump/ELF/AMDGPU/subtarget.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/ELF/AMDGPU/subtarget.ll b/llvm/test/tools/llvm-objdump/ELF/AMDGPU/subtarget.ll
index 52c6cca..f9575c4 100644
--- a/llvm/test/tools/llvm-objdump/ELF/AMDGPU/subtarget.ll
+++ b/llvm/test/tools/llvm-objdump/ELF/AMDGPU/subtarget.ll
@@ -44,6 +44,16 @@ define amdgpu_kernel void @test_kernel() {
; ----------------------------------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