[llvm] c9f69ee - [AMDGPU] Add some missing tests for GFX10.3 subtargets
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 3 11:19:13 PST 2020
Author: Jay Foad
Date: 2020-11-03T19:18:34Z
New Revision: c9f69ee7f94cfefc373c3c6cae08e51b11e6d3c2
URL: https://github.com/llvm/llvm-project/commit/c9f69ee7f94cfefc373c3c6cae08e51b11e6d3c2
DIFF: https://github.com/llvm/llvm-project/commit/c9f69ee7f94cfefc373c3c6cae08e51b11e6d3c2.diff
LOG: [AMDGPU] Add some missing tests for GFX10.3 subtargets
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 e49ee40782bb..52c6ccac07ed 100644
--- a/llvm/test/tools/llvm-objdump/ELF/AMDGPU/subtarget.ll
+++ b/llvm/test/tools/llvm-objdump/ELF/AMDGPU/subtarget.ll
@@ -6,6 +6,21 @@ define amdgpu_kernel void @test_kernel() {
;
; ----------------------------------GFX10--------------------------------------
;
+; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1033 -filetype=obj -O0 -o %t.o %s
+; RUN: llvm-objdump -D --arch-name=amdgcn --mcpu=gfx1033 %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=gfx1032 -filetype=obj -O0 -o %t.o %s
+; RUN: llvm-objdump -D --arch-name=amdgcn --mcpu=gfx1032 %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=gfx1031 -filetype=obj -O0 -o %t.o %s
+; RUN: llvm-objdump -D --arch-name=amdgcn --mcpu=gfx1031 %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=gfx1030 -filetype=obj -O0 -o %t.o %s
; RUN: llvm-objdump -D --arch-name=amdgcn --mcpu=gfx1030 %t.o > %t-specify.txt
; RUN: llvm-objdump -D %t.o > %t-detect.txt
More information about the llvm-commits
mailing list