2016-11-07 20:09:33 +01:00
|
|
|
; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
|
2015-01-27 18:27:15 +01:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
|
2014-11-14 19:43:41 +01:00
|
|
|
|
|
|
|
; SILowerI1Copies was not handling IMPLICIT_DEF
|
2014-11-18 22:06:58 +01:00
|
|
|
; SI-LABEL: {{^}}br_implicit_def:
|
2014-11-14 19:43:41 +01:00
|
|
|
; SI: BB#0:
|
2016-12-15 22:57:11 +01:00
|
|
|
; SI-NEXT: s_cbranch_scc1
|
2014-11-14 19:43:41 +01:00
|
|
|
define void @br_implicit_def(i32 addrspace(1)* %out, i32 %arg) #0 {
|
|
|
|
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 }
|