Skip to content

Commit

Permalink
[AMDGPU] Add some missing testing for new subtargets gfx90a and gfx90c
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D99647
  • Loading branch information
jayfoad committed Apr 6, 2021
1 parent cc26943 commit 94d0fc3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions llvm/test/tools/llvm-objdump/ELF/AMDGPU/subtarget.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 94d0fc3

Please sign in to comment.