blob: 5a2130006ab9d597c716c69026120ac3258d3cf4 [file] [log] [blame]
Matt Arsenaultf530e8b2016-11-07 19:09:33 +00001; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
Marek Olsak75170772015-01-27 17:27:15 +00002; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
Matt Arsenault72858932014-11-14 18:43:41 +00003
4; SILowerI1Copies was not handling IMPLICIT_DEF
Matt Arsenault162c1012014-11-18 21:06:58 +00005; SI-LABEL: {{^}}br_implicit_def:
Matt Arsenault72858932014-11-14 18:43:41 +00006; SI: BB#0:
Tom Stellardbc4497b2016-02-12 23:45:29 +00007; SI-NEXT: s_cbranch_vccnz
Matt Arsenault72858932014-11-14 18:43:41 +00008define void @br_implicit_def(i32 addrspace(1)* %out, i32 %arg) #0 {
9bb:
10 br i1 undef, label %bb1, label %bb2
11
12bb1:
13 store volatile i32 123, i32 addrspace(1)* %out
14 ret void
15
16bb2:
17 ret void
18}
19
20attributes #0 = { nounwind }