File tree 2 files changed +9
-0
lines changed
test/tools/llvm-objdump/ELF/AMDGPU
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,8 @@ unsigned getAMDHSACodeObjectVersion(unsigned ABIVersion) {
182
182
return 4 ;
183
183
case ELF::ELFABIVERSION_AMDGPU_HSA_V5:
184
184
return 5 ;
185
+ case ELF::ELFABIVERSION_AMDGPU_HSA_V6:
186
+ return 6 ;
185
187
default :
186
188
return getDefaultAMDHSACodeObjectVersion ();
187
189
}
Original file line number Diff line number Diff line change 6
6
; RUN: | llvm-mc --triple=amdgcn-amd-amdhsa -mcpu=gfx1010 -mattr=-xnack,+wavefrontsize32,-wavefrontsize64 -filetype=obj > %t.o
7
7
; RUN: llvm-objdump --disassemble-symbols=kernel.kd %t.o | FileCheck %s --check-prefixes=COV4,CHECK
8
8
9
+ ;; Make sure we override the default COV in the disassembler on COV6 (there
10
+ ;; currently aren't any differences between 5 and 6, so set the default to 4 so
11
+ ;; we can verify that the default is at least overridden)
12
+ ; RUN: sed 's/CODE_OBJECT_VERSION/6/g' %s \
13
+ ; RUN: | llvm-mc --triple=amdgcn-amd-amdhsa -mcpu=gfx1010 -mattr=-xnack,+wavefrontsize32,-wavefrontsize64 -filetype=obj > %t.o
14
+ ; RUN: llvm-objdump -mllvm --amdhsa-code-object-version=4 --disassemble-symbols=kernel.kd %t.o | FileCheck %s --check-prefixes=COV5,CHECK
15
+
9
16
;; Verify that .amdhsa_uses_dynamic_stack is only printed on COV5+.
10
17
11
18
; CHECK: .amdhsa_kernel kernel
You can’t perform that action at this time.
0 commit comments