blob: 7c5bc04b6cb374e7ee720bff6deb605bd7da9c30 [file] [log] [blame]
Matt Arsenault72858932014-11-14 18:43:41 +00001; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
2
3; SILowerI1Copies was not handling IMPLICIT_DEF
Matt Arsenault162c1012014-11-18 21:06:58 +00004; SI-LABEL: {{^}}br_implicit_def:
Matt Arsenault72858932014-11-14 18:43:41 +00005; SI: BB#0:
6; SI-NEXT: s_and_saveexec_b64
7; SI-NEXT: s_xor_b64
8; SI-NEXT: BB#1:
9define void @br_implicit_def(i32 addrspace(1)* %out, i32 %arg) #0 {
10bb:
11 br i1 undef, label %bb1, label %bb2
12
13bb1:
14 store volatile i32 123, i32 addrspace(1)* %out
15 ret void
16
17bb2:
18 ret void
19}
20
21attributes #0 = { nounwind }