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