Mercurial > hg > CbC > CbC_llvm
view test/CodeGen/R600/empty-function.ll @ 83:60c9769439b8 LLVM3.7
LLVM 3.7
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 18 Feb 2015 14:55:36 +0900 |
parents | |
children |
line wrap: on
line source
; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s ; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s ; Make sure we don't assert on empty functions ; SI-LABEL: {{^}}empty_function_ret: ; SI: .text ; SI: s_endpgm ; SI: codeLenInByte = 4 define void @empty_function_ret() #0 { ret void } ; SI-LABEL: {{^}}empty_function_unreachable: ; SI: .text ; SI: codeLenInByte = 0 define void @empty_function_unreachable() #0 { unreachable } attributes #0 = { nounwind }