1;; Entirely zeroed kernel descriptor (for GFX10).
2
3; RUN: llvm-mc %s --triple=amdgcn-amd-amdhsa -mcpu=gfx1010 -filetype=obj -o %t
4; RUN: llvm-objdump -s -j .text %t | FileCheck --check-prefix=OBJDUMP %s
5
6;; TODO:
7;; This file and kd-zeroed-raw.s should produce the same output for the kernel
8;; descriptor - a block of 64 zeroed bytes. But looks like the assembler sets
9;; the FWD_PROGRESS bit in COMPUTE_PGM_RSRC1 to 1 even when the directive
10;; mentions 0 (see line 36).
11
12;; Check the raw bytes right now.
13
14; OBJDUMP:      0000 00000000 00000000 00000000 00000000
15; OBJDUMP-NEXT: 0010 00000000 00000000 00000000 00000000
16; OBJDUMP-NEXT: 0020 00000000 00000000 00000000 00000000
17; OBJDUMP-NEXT: 0030 01000000 00000000 00000000 00000000
18
19.amdhsa_kernel my_kernel
20  .amdhsa_group_segment_fixed_size 0
21  .amdhsa_private_segment_fixed_size 0
22  .amdhsa_next_free_vgpr 8
23  .amdhsa_reserve_vcc 0
24  .amdhsa_reserve_flat_scratch 0
25  .amdhsa_reserve_xnack_mask 0
26  .amdhsa_next_free_sgpr 8
27  .amdhsa_float_round_mode_32 0
28  .amdhsa_float_round_mode_16_64 0
29  .amdhsa_float_denorm_mode_32 0
30  .amdhsa_float_denorm_mode_16_64 0
31  .amdhsa_dx10_clamp 0
32  .amdhsa_ieee_mode 0
33  .amdhsa_fp16_overflow 0
34  .amdhsa_workgroup_processor_mode 0
35  .amdhsa_memory_ordered 0
36  .amdhsa_forward_progress 0
37  .amdhsa_system_sgpr_private_segment_wavefront_offset 0
38  .amdhsa_system_sgpr_workgroup_id_x 0
39  .amdhsa_system_sgpr_workgroup_id_y 0
40  .amdhsa_system_sgpr_workgroup_id_z 0
41  .amdhsa_system_sgpr_workgroup_info 0
42  .amdhsa_system_vgpr_workitem_id 0
43  .amdhsa_exception_fp_ieee_invalid_op 0
44  .amdhsa_exception_fp_denorm_src 0
45  .amdhsa_exception_fp_ieee_div_zero 0
46  .amdhsa_exception_fp_ieee_overflow 0
47  .amdhsa_exception_fp_ieee_underflow 0
48  .amdhsa_exception_fp_ieee_inexact 0
49  .amdhsa_exception_int_div_zero 0
50  .amdhsa_user_sgpr_private_segment_buffer 0
51  .amdhsa_user_sgpr_dispatch_ptr 0
52  .amdhsa_user_sgpr_queue_ptr 0
53  .amdhsa_user_sgpr_kernarg_segment_ptr 0
54  .amdhsa_user_sgpr_dispatch_id 0
55  .amdhsa_user_sgpr_flat_scratch_init 0
56  .amdhsa_user_sgpr_private_segment_size 0
57  .amdhsa_wavefront_size32 0
58.end_amdhsa_kernel
59