source: icGREP/icgrep-devel/llvm-3.6.1.src/test/CodeGen/R600/i1-copy-phi.ll @ 4664

Last change on this file since 4664 was 4664, checked in by cameron, 4 years ago

Upgrade LLVM to 3.6.1

File size: 977 bytes
Line 
1; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
2; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
3
4; SI-LABEL: {{^}}br_i1_phi:
5; SI: v_mov_b32_e32 [[REG:v[0-9]+]], 0{{$}}
6; SI: s_and_saveexec_b64
7; SI: s_xor_b64
8; SI: v_mov_b32_e32 [[REG]], -1{{$}}
9; SI: v_cmp_ne_i32_e64 {{s\[[0-9]+:[0-9]+\]}}, [[REG]], 0
10; SI: s_and_saveexec_b64
11; SI: s_xor_b64
12; SI: s_endpgm
13define void @br_i1_phi(i32 %arg, i1 %arg1) #0 {
14bb:
15  br i1 %arg1, label %bb2, label %bb3
16
17bb2:                                              ; preds = %bb
18  br label %bb3
19
20bb3:                                              ; preds = %bb2, %bb
21  %tmp = phi i1 [ true, %bb2 ], [ false, %bb ]
22  br i1 %tmp, label %bb4, label %bb6
23
24bb4:                                              ; preds = %bb3
25  %tmp5 = mul i32 undef, %arg
26  br label %bb6
27
28bb6:                                              ; preds = %bb4, %bb3
29  ret void
30}
Note: See TracBrowser for help on using the repository browser.