blob: b11a211376423c9cbc31064568b8956dcee75007 [file] [log] [blame]
Tom Stellard49f8bfd2015-01-06 18:00:21 +00001; RUN: llc -march=amdgcn -mcpu=SI -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:
7; SI-NEXT: s_and_saveexec_b64
8; SI-NEXT: s_xor_b64
9; SI-NEXT: BB#1:
10define void @br_implicit_def(i32 addrspace(1)* %out, i32 %arg) #0 {
11bb:
12 br i1 undef, label %bb1, label %bb2
13
14bb1:
15 store volatile i32 123, i32 addrspace(1)* %out
16 ret void
17
18bb2:
19 ret void
20}
21
22attributes #0 = { nounwind }