1 // RUN
: llvm-mc
-triple amdgcn-
-amdhsa
-mcpu
=kaveri
-show-encoding
%s | FileCheck
%s
--check-prefix
=ASM
2 // RUN
: llvm-mc
-filetype
=obj
-triple amdgcn-
-amdhsa
-mcpu
=kaveri
-show-encoding
%s | llvm-readobj
--symbols
-S
--sd
- | FileCheck
%s
--check-prefix
=ELF
6 // ELF
: Type
: SHT_PROGBITS
(0x1)
8 // ELF
: SHF_ALLOC
(0x2)
9 // ELF
: SHF_EXECINSTR
(0x4)
13 // ELF
: Section
: .text
16 .amdgcn_target "amdgcn-unknown-amdhsa--gfx700"
17 // ASM
: .amdgcn_target "amdgcn-unknown-amdhsa--gfx700"
19 .amdhsa_code_object_version 4
20 // ASM
: .amdhsa_code_object_version 4
25 .set my_next_free_vgpr, 4
27 .set my_next_free_vgpr, 8
33 .amdhsa_kernel minimal
34 .amdhsa_next_free_vgpr 1+(my_next_free_vgpr-1)
35 // Make sure
a blank line won
't break anything:
37 .amdhsa_next_free_sgpr my_sgpr/2+3
41 ; ASM: .amdhsa_kernel minimal
42 ; ASM: .amdhsa_group_segment_fixed_size 0
43 ; ASM: .amdhsa_private_segment_fixed_size 0
44 ; ASM: .amdhsa_kernarg_size 0
45 ; ASM: .amdhsa_user_sgpr_count 0
46 ; ASM: .amdhsa_user_sgpr_private_segment_buffer 0
47 ; ASM: .amdhsa_user_sgpr_dispatch_ptr 0
48 ; ASM: .amdhsa_user_sgpr_queue_ptr 0
49 ; ASM: .amdhsa_user_sgpr_kernarg_segment_ptr 0
50 ; ASM: .amdhsa_user_sgpr_dispatch_id 0
51 ; ASM: .amdhsa_user_sgpr_flat_scratch_init 0
52 ; ASM: .amdhsa_user_sgpr_private_segment_size 0
53 ; ASM: .amdhsa_system_sgpr_private_segment_wavefront_offset 0
54 ; ASM: .amdhsa_system_sgpr_workgroup_id_x 1
55 ; ASM: .amdhsa_system_sgpr_workgroup_id_y 0
56 ; ASM: .amdhsa_system_sgpr_workgroup_id_z 0
57 ; ASM: .amdhsa_system_sgpr_workgroup_info 0
58 ; ASM: .amdhsa_system_vgpr_workitem_id 0
59 ; ASM: .amdhsa_next_free_vgpr 8
60 ; ASM: .amdhsa_next_free_sgpr 6
61 ; ASM: .amdhsa_float_round_mode_32 0
62 ; ASM: .amdhsa_float_round_mode_16_64 0
63 ; ASM: .amdhsa_float_denorm_mode_32 0
64 ; ASM: .amdhsa_float_denorm_mode_16_64 3
65 ; ASM: .amdhsa_dx10_clamp 1
66 ; ASM: .amdhsa_ieee_mode 1
67 ; ASM: .amdhsa_exception_fp_ieee_invalid_op 0
68 ; ASM: .amdhsa_exception_fp_denorm_src 0
69 ; ASM: .amdhsa_exception_fp_ieee_div_zero 0
70 ; ASM: .amdhsa_exception_fp_ieee_overflow 0
71 ; ASM: .amdhsa_exception_fp_ieee_underflow 0
72 ; ASM: .amdhsa_exception_fp_ieee_inexact 0
73 ; ASM: .amdhsa_exception_int_div_zero 0
74 ; ASM: .end_amdhsa_kernel