brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 5600bcd Raw
29 lines · plain
1; RUN: sed 's/CODE_OBJECT_VERSION/5/g' %s \2; RUN:   | llvm-mc --triple=amdgcn-amd-amdhsa -mcpu=gfx1010 -mattr=-xnack,+wavefrontsize32,-wavefrontsize64 -filetype=obj > %t.o3; RUN: llvm-objdump --disassemble-symbols=kernel.kd %t.o | FileCheck %s --check-prefixes=COV5,CHECK4 5; RUN: sed 's/CODE_OBJECT_VERSION/4/g' %s \6; RUN:   | llvm-mc --triple=amdgcn-amd-amdhsa -mcpu=gfx1010 -mattr=-xnack,+wavefrontsize32,-wavefrontsize64 -filetype=obj > %t.o7; RUN: llvm-objdump --disassemble-symbols=kernel.kd %t.o | FileCheck %s --check-prefixes=COV4,CHECK8 9;; Make sure we override the default COV in the disassembler on COV6 (there10;; currently aren't any differences between 5 and 6, so set the default to 4 so11;; 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.o14; RUN: llvm-objdump -mllvm --amdhsa-code-object-version=4 --disassemble-symbols=kernel.kd %t.o | FileCheck %s --check-prefixes=COV5,CHECK15 16;; Verify that .amdhsa_uses_dynamic_stack is only printed on COV5+.17 18; CHECK: .amdhsa_kernel kernel19; COV5: .amdhsa_uses_dynamic_stack 020; COV4-NOT: .amdhsa_uses_dynamic_stack21; CHECK: .end_amdhsa_kernel22 23.amdhsa_code_object_version CODE_OBJECT_VERSION24 25.amdhsa_kernel kernel26  .amdhsa_next_free_vgpr 3227  .amdhsa_next_free_sgpr 3228.end_amdhsa_kernel29