70 lines · plain
1; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1010 -asm-verbose=0 < %s | FileCheck -check-prefixes=GCN,GCN-ASM,GFX10END-ASM %s2; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1010 -filetype=obj < %s | llvm-objdump --arch=amdgcn --mcpu=gfx1010 -d - | FileCheck --check-prefixes=GCN,GCN-OBJ,GFX10END-OBJ %s3; RUN: llc -mtriple=amdgcn-amd-amdpal -mcpu=gfx1010 -asm-verbose=0 < %s | FileCheck -check-prefixes=GCN,GCN-ASM,GFX10END-ASM %s4; RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx1010 -asm-verbose=0 < %s | FileCheck -check-prefixes=GCN,GCN-ASM,GFX10NOEND %s5; RUN: llc -mtriple=amdgcn-- -mcpu=gfx1010 -filetype=obj < %s | llvm-objdump --arch=amdgcn --mcpu=gfx1010 -d - | FileCheck --check-prefixes=GCN,GCN-OBJ,GFX10NOEND,GFX10NOEND-OBJ %s6 7; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1100 -asm-verbose=0 < %s | FileCheck -check-prefixes=GCN,GCN-ASM,GFX11END-ASM %s8; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1100 -filetype=obj < %s | llvm-objdump --arch=amdgcn --mcpu=gfx1100 -d - | FileCheck --check-prefixes=GCN,GCN-OBJ,GFX11END-OBJ %s9 10; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -asm-verbose=0 < %s | FileCheck -check-prefixes=GCN,GCN-ASM,GFX90AEND-ASM %s11; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -filetype=obj < %s | llvm-objdump --arch=amdgcn --mcpu=gfx90a --disassemble - | FileCheck -check-prefixes=GCN,GCN-OBJ,GFX90AEND-OBJ %s12 13; GCN: a_kernel1{{>?}}:14; GCN: s_endpgm15; GCN-ASM: [[END_LABEL1:\.Lfunc_end.*]]:16; GCN-ASM-NEXT: .size a_kernel1, [[END_LABEL1]]-a_kernel117 18; GCN-OBJ-NEXT: s_nop 019 20define amdgpu_kernel void @a_kernel1() #0 {21 ret void22}23 24; GCN: a_kernel2{{>?}}:25; GCN: s_endpgm26; GCN-ASM: [[END_LABEL2:\.Lfunc_end.*]]:27; GCN-ASM-NEXT: .size a_kernel2, [[END_LABEL2]]-a_kernel228 29; GCN-OBJ: {{^$}}30 31define amdgpu_kernel void @a_kernel2() #0 {32 ret void33}34 35; GCN-ASM: .globl a_function36; GCN-ASM-NEXT: .p2align 237; GCN-ASM-NEXT: .type a_function,@function38 39; GCN-NEXT: a_function{{>?}}:40; GCN: s_setpc_b6441; GCN-ASM-NEXT: [[END_LABEL3:\.Lfunc_end.*]]:42; GCN-ASM-NEXT: .size a_function, [[END_LABEL3]]-a_function43; GFX10END-ASM: .p2alignl 6, 321486848044; GFX11END-ASM: .p2alignl 7, 321486848045; GFX90AEND-ASM: .p2alignl 6, 321283686446; GFX10END-ASM-NEXT: .fill 48, 4, 321486848047; GFX11END-ASM-NEXT: .fill 96, 4, 321486848048; GFX90AEND-ASM-NEXT: .fill 256, 4, 321283686449; GFX10NOEND-NOT: .fill50; GFX11NOEND-NOT: .fill51 52; GFX10NOEND-OBJ-NOT: s_code_end53; GFX10END-OBJ-NEXT: s_code_end54; GFX11NOEND-OBJ-NOT: s_code_end55; GFX11END-OBJ-NEXT: s_code_end56; GFX90AEND-OBJ-NEXT: s_nop 057 58; GFX10END-OBJ: s_code_end // 000000000140:59; GFX10END-OBJ-COUNT-47: s_code_end60; GFX11END-OBJ: s_code_end // 000000000140:61; GFX11END-OBJ-COUNT-47: s_code_end62; GFX90AEND-OBJ: s_nop 0 // 000000000140:63; GFX90AEND-OBJ-COUNT-255: s_nop 064 65define void @a_function() #0 {66 ret void67}68 69attributes #0 = { "amdgpu-flat-work-group-size"="1,512" }70