| Matt Arsenault | 6ef6614 | 2014-11-13 20:07:40 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s |
| 2 | |
| 3 | ; Make sure we don't assert on empty functions |
| 4 | |
| 5 | ; SI-LABEL: {{^}}empty_function_ret: |
| 6 | ; SI: .text |
| 7 | ; SI: s_endpgm |
| 8 | ; SI: codeLenInByte = 4 |
| 9 | define void @empty_function_ret() #0 { |
| 10 | ret void |
| 11 | } |
| 12 | |
| 13 | ; SI-LABEL: {{^}}empty_function_unreachable: |
| 14 | ; SI: .text |
| 15 | ; SI: codeLenInByte = 0 |
| 16 | define void @empty_function_unreachable() #0 { |
| 17 | unreachable |
| 18 | } |
| 19 | |
| 20 | attributes #0 = { nounwind } |