1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc -march=amdgcn -mcpu=kaveri -verify-machineinstrs < %s | FileCheck %s
3
4define amdgpu_kernel void @test(i32 %arg, i32 %arg1) {
5; CHECK-LABEL: test:
6; CHECK:       ; %bb.0: ; %bb
7; CHECK-NEXT:    s_load_dwordx2 s[0:1], s[0:1], 0x9
8; CHECK-NEXT:    s_waitcnt lgkmcnt(0)
9; CHECK-NEXT:    v_cmp_eq_u32_e64 s[2:3], s0, 0
10; CHECK-NEXT:    v_cmp_eq_u32_e64 s[0:1], s1, 0
11; CHECK-NEXT:    s_or_b64 s[0:1], s[2:3], s[0:1]
12; CHECK-NEXT:    s_and_b64 vcc, exec, s[0:1]
13; CHECK-NEXT:    s_cbranch_vccnz BB0_3
14; CHECK-NEXT:  ; %bb.1: ; %bb9
15; CHECK-NEXT:    s_and_b64 vcc, exec, 0
16; CHECK-NEXT:  BB0_2: ; %bb10
17; CHECK-NEXT:    ; =>This Inner Loop Header: Depth=1
18; CHECK-NEXT:    s_mov_b64 vcc, vcc
19; CHECK-NEXT:    s_cbranch_vccz BB0_2
20; CHECK-NEXT:  BB0_3: ; %DummyReturnBlock
21; CHECK-NEXT:    s_endpgm
22bb:
23  %tmp = icmp ne i32 %arg, 0
24  %tmp7 = icmp ne i32 %arg1, 0
25  %tmp8 = and i1 %tmp, %tmp7
26  br i1 %tmp8, label %bb9, label %bb11
27
28bb9:                                              ; preds = %bb
29  br label %bb10
30
31bb10:                                             ; preds = %bb10, %bb9
32  br label %bb10
33
34bb11:                                             ; preds = %bb
35  ret void
36}
37