brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1006 B · 1a32953 Raw
26 lines · plain
1; RUN: sed 's/CODE_OBJECT_VERSION/400/g' %s | llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 | FileCheck --check-prefix=DOORBELL %s2; RUN: sed 's/CODE_OBJECT_VERSION/400/g' %s | llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 | FileCheck --check-prefix=DOORBELL %s3 4declare void @llvm.trap() #05 6; DOORBELL:      .amdhsa_kernel trap7; DOORBELL-NEXT:     .amdhsa_group_segment_fixed_size 08; DOORBELL-NEXT:     .amdhsa_private_segment_fixed_size 09; DOORBELL-NEXT:     .amdhsa_kernarg_size 810; DOORBELL-NEXT:     .amdhsa_user_sgpr_count 1411; DOORBELL-NEXT:     .amdhsa_user_sgpr_private_segment_buffer 112; DOORBELL:      .end_amdhsa_kernel13 14define amdgpu_kernel void @trap(ptr addrspace(1) nocapture readonly %arg0) #0 {15  store volatile i32 1, ptr addrspace(1) %arg016  call void @llvm.trap()17  unreachable18  store volatile i32 2, ptr addrspace(1) %arg019  ret void20}21 22attributes #0 = { "amdgpu-no-implicitarg-ptr" }23 24!llvm.module.flags = !{!0}25!0 = !{i32 1, !"amdhsa_code_object_version", i32 CODE_OBJECT_VERSION}26