[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AMDGPU / hsa-exp.s
blob2c8dd6f8eeb4848dedf738db9ec41ce4b70d4a3c
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
4 // ELF: Section {
5 // ELF: Name: .text
6 // ELF: Type: SHT_PROGBITS (0x1)
7 // ELF: Flags [ (0x6)
8 // ELF: SHF_ALLOC (0x2)
9 // ELF: SHF_EXECINSTR (0x4)
11 // ELF: Symbol {
12 // ELF: Name: minimal
13 // ELF: Section: .text
14 // ELF: }
16 .text
17 // ASM: .text
19 .amdgcn_target "amdgcn-unknown-amdhsa--gfx700"
20 // ASM: .amdgcn_target "amdgcn-unknown-amdhsa--gfx700"
22 .amdhsa_code_object_version 4
23 // ASM: .amdhsa_code_object_version 4
25 .set my_is_ptr64, 1
27 .if my_is_ptr64 == 0
28 .set my_next_free_vgpr, 4
29 .else
30 .set my_next_free_vgpr, 8
31 .endif
33 .set my_sgpr, 6
35 minimal:
36 .amdhsa_kernel minimal
37 .amdhsa_next_free_vgpr 1+(my_next_free_vgpr-1)
38 // Make sure a blank line won't break anything:
40 .amdhsa_next_free_sgpr my_sgpr/2+3
41 .end_amdhsa_kernel
43 ; ASM-LABEL: minimal:
44 ; ASM: .amdhsa_kernel minimal
45 ; ASM: .amdhsa_group_segment_fixed_size 0
46 ; ASM: .amdhsa_private_segment_fixed_size 0
47 ; ASM: .amdhsa_kernarg_size 0
48 ; ASM: .amdhsa_user_sgpr_count 0
49 ; ASM: .amdhsa_user_sgpr_private_segment_buffer 0
50 ; ASM: .amdhsa_user_sgpr_dispatch_ptr 0
51 ; ASM: .amdhsa_user_sgpr_queue_ptr 0
52 ; ASM: .amdhsa_user_sgpr_kernarg_segment_ptr 0
53 ; ASM: .amdhsa_user_sgpr_dispatch_id 0
54 ; ASM: .amdhsa_user_sgpr_flat_scratch_init 0
55 ; ASM: .amdhsa_user_sgpr_private_segment_size 0
56 ; ASM: .amdhsa_system_sgpr_private_segment_wavefront_offset 0
57 ; ASM: .amdhsa_system_sgpr_workgroup_id_x 1
58 ; ASM: .amdhsa_system_sgpr_workgroup_id_y 0
59 ; ASM: .amdhsa_system_sgpr_workgroup_id_z 0
60 ; ASM: .amdhsa_system_sgpr_workgroup_info 0
61 ; ASM: .amdhsa_system_vgpr_workitem_id 0
62 ; ASM: .amdhsa_next_free_vgpr 8
63 ; ASM: .amdhsa_next_free_sgpr 6
64 ; ASM: .amdhsa_float_round_mode_32 0
65 ; ASM: .amdhsa_float_round_mode_16_64 0
66 ; ASM: .amdhsa_float_denorm_mode_32 0
67 ; ASM: .amdhsa_float_denorm_mode_16_64 3
68 ; ASM: .amdhsa_dx10_clamp 1
69 ; ASM: .amdhsa_ieee_mode 1
70 ; ASM: .amdhsa_exception_fp_ieee_invalid_op 0
71 ; ASM: .amdhsa_exception_fp_denorm_src 0
72 ; ASM: .amdhsa_exception_fp_ieee_div_zero 0
73 ; ASM: .amdhsa_exception_fp_ieee_overflow 0
74 ; ASM: .amdhsa_exception_fp_ieee_underflow 0
75 ; ASM: .amdhsa_exception_fp_ieee_inexact 0
76 ; ASM: .amdhsa_exception_int_div_zero 0
77 ; ASM: .end_amdhsa_kernel