aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/R600/si-annotate-cf-assertion.ll
blob: 9886fe9169bb9ffddfde7c1fa9b9487bf206deae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
; XFAIL: *
; RUN: llc -march=r600 -mcpu=SI -asm-verbose=false < %s | FileCheck %s


define void @test(i32 addrspace(1)* %g, i8 addrspace(3)* %l, i32 %x) nounwind {
; CHECK-LABEL: @test:

entry:
  switch i32 %x, label %sw.default [
    i32 0, label %sw.bb
    i32 60, label %sw.bb
  ]

sw.bb:
  unreachable

sw.default:
  unreachable

sw.epilog:
  ret void
}