brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 4f341fa Raw
41 lines · plain
1; RUN: sed 's/CODE_OBJECT_VERSION/500/g' %s | opt -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -O2 | llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 | FileCheck -check-prefix=OPT %s2; RUN: sed 's/CODE_OBJECT_VERSION/400/g' %s | opt -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -O0 | llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 | FileCheck -check-prefix=NOOPT %s3; RUN: sed 's/CODE_OBJECT_VERSION/500/g' %s | opt -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -O0 | llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 | FileCheck -check-prefix=NOOPT %s4 5; Check that AMDGPUAttributor is not run with -O0.6; OPT: .amdhsa_user_sgpr_private_segment_buffer 17; OPT: .amdhsa_user_sgpr_dispatch_ptr 08; OPT: .amdhsa_user_sgpr_queue_ptr 09; OPT: .amdhsa_user_sgpr_kernarg_segment_ptr 010; OPT: .amdhsa_user_sgpr_dispatch_id 011; OPT: .amdhsa_user_sgpr_flat_scratch_init 012; OPT: .amdhsa_user_sgpr_private_segment_size 013; OPT: .amdhsa_system_sgpr_private_segment_wavefront_offset 014; OPT: .amdhsa_system_sgpr_workgroup_id_x 115; OPT: .amdhsa_system_sgpr_workgroup_id_y 016; OPT: .amdhsa_system_sgpr_workgroup_id_z 017; OPT: .amdhsa_system_sgpr_workgroup_info 018; OPT: .amdhsa_system_vgpr_workitem_id 019 20; NOOPT: .amdhsa_user_sgpr_private_segment_buffer 121; NOOPT: .amdhsa_user_sgpr_dispatch_ptr 122; NOOPT: .amdhsa_user_sgpr_queue_ptr 123; NOOPT: .amdhsa_user_sgpr_kernarg_segment_ptr 124; NOOPT: .amdhsa_user_sgpr_dispatch_id 125; NOOPT: .amdhsa_user_sgpr_flat_scratch_init 026; NOOPT: .amdhsa_user_sgpr_private_segment_size 027; NOOPT: .amdhsa_system_sgpr_private_segment_wavefront_offset 028; NOOPT: .amdhsa_system_sgpr_workgroup_id_x 129; NOOPT: .amdhsa_system_sgpr_workgroup_id_y 130; NOOPT: .amdhsa_system_sgpr_workgroup_id_z 131; NOOPT: .amdhsa_system_sgpr_workgroup_info 032; NOOPT: .amdhsa_system_vgpr_workitem_id 233define amdgpu_kernel void @foo() #0 {34  ret void35}36 37attributes #0 = { "amdgpu-no-flat-scratch-init" }38 39!llvm.module.flags = !{!0}40!0 = !{i32 1, !"amdhsa_code_object_version", i32 CODE_OBJECT_VERSION}41