2016-11-08 03:09:33 +08:00
|
|
|
; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
|
2015-01-28 01:27:15 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
|
2014-11-15 02:43:41 +08:00
|
|
|
|
|
|
|
; SILowerI1Copies was not handling IMPLICIT_DEF
|
2014-11-19 05:06:58 +08:00
|
|
|
; SI-LABEL: {{^}}br_implicit_def:
|
2017-12-05 01:18:51 +08:00
|
|
|
; SI: %bb.0:
|
2016-12-16 05:57:11 +08:00
|
|
|
; SI-NEXT: s_cbranch_scc1
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @br_implicit_def(i32 addrspace(1)* %out, i32 %arg) #0 {
|
2014-11-15 02:43:41 +08:00
|
|
|
bb:
|
|
|
|
br i1 undef, label %bb1, label %bb2
|
|
|
|
|
|
|
|
bb1:
|
|
|
|
store volatile i32 123, i32 addrspace(1)* %out
|
|
|
|
ret void
|
|
|
|
|
|
|
|
bb2:
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
attributes #0 = { nounwind }
|