2013-12-19 10:41:12 +00:00
|
|
|
; REQUIRES: asserts
|
2013-10-08 18:06:36 +00:00
|
|
|
; XFAIL: *
|
2015-01-06 18:00:21 +00:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs-asm-verbose=false < %s | FileCheck %s
|
2015-01-27 17:27:15 +00:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs-asm-verbose=false < %s | FileCheck %s
|
2013-10-08 18:06:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
define void @test(i32 addrspace(1)* %g, i8 addrspace(3)* %l, i32 %x) nounwind {
|
2014-10-01 17:15:17 +00:00
|
|
|
; CHECK-LABEL: {{^}}test:
|
2013-10-08 18:06:36 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|