brintos

brintos / llvm-project-archived public Read only

0
0
Text · 545 B · 088effc Raw
22 lines · plain
1; RUN: llc -mtriple=amdgcn -mcpu=tahiti < %s | FileCheck -check-prefix=SI %s2; RUN: llc -mtriple=amdgcn -mcpu=tonga < %s | FileCheck -check-prefix=SI %s3 4; Make sure we don't assert on empty functions5 6; SI: .text7; SI-LABEL: {{^}}empty_function_ret:8; SI: s_endpgm9; SI: codeLenInByte = 410define amdgpu_kernel void @empty_function_ret() #0 {11  ret void12}13 14; SI: .text15; SI-LABEL: {{^}}empty_function_unreachable:16; SI: codeLenInByte = 017define amdgpu_kernel void @empty_function_unreachable() #0 {18  unreachable19}20 21attributes #0 = { nounwind }22