[llvm] 94d0fc3 - [AMDGPU] Add some missing testing for new subtargets gfx90a and gfx90c
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 6 00:39:11 PDT 2021
Author: Jay Foad
Date: 2021-04-06T08:38:59+01:00
New Revision: 94d0fc32f54bb390550bfd2e33676ab78c5ab24f
URL: https://github.com/llvm/llvm-project/commit/94d0fc32f54bb390550bfd2e33676ab78c5ab24f
DIFF: https://github.com/llvm/llvm-project/commit/94d0fc32f54bb390550bfd2e33676ab78c5ab24f.diff
LOG: [AMDGPU] Add some missing testing for new subtargets gfx90a and gfx90c
Differential Revision: https://reviews.llvm.org/D99647
Added:
Modified:
llvm/test/tools/llvm-objdump/ELF/AMDGPU/subtarget.ll
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-objdump/ELF/AMDGPU/subtarget.ll b/llvm/test/tools/llvm-objdump/ELF/AMDGPU/subtarget.ll
index 52c6ccac07ed..f9575c40492b 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
More information about the llvm-commits
mailing list