2020-04-08 20:08:52 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
2016-06-24 14:58:01 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=kaveri -verify-machineinstrs < %s | FileCheck %s
|
2016-02-13 01:11:04 +08:00
|
|
|
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @test(i32 %arg, i32 %arg1) {
|
2020-04-08 20:08:52 +08:00
|
|
|
; CHECK-LABEL: test:
|
|
|
|
; CHECK: ; %bb.0: ; %bb
|
|
|
|
; CHECK-NEXT: s_load_dwordx2 s[0:1], s[0:1], 0x9
|
|
|
|
; CHECK-NEXT: s_waitcnt lgkmcnt(0)
|
2020-06-24 22:27:23 +08:00
|
|
|
; CHECK-NEXT: v_cmp_eq_u32_e64 s[2:3], s0, 0
|
|
|
|
; CHECK-NEXT: v_cmp_eq_u32_e64 s[0:1], s1, 0
|
2020-04-08 20:08:52 +08:00
|
|
|
; CHECK-NEXT: s_or_b64 s[0:1], s[2:3], s[0:1]
|
|
|
|
; CHECK-NEXT: s_and_b64 vcc, exec, s[0:1]
|
|
|
|
; CHECK-NEXT: s_cbranch_vccnz BB0_3
|
|
|
|
; CHECK-NEXT: ; %bb.1: ; %bb9
|
|
|
|
; CHECK-NEXT: s_and_b64 vcc, exec, 0
|
|
|
|
; CHECK-NEXT: BB0_2: ; %bb10
|
|
|
|
; CHECK-NEXT: ; =>This Inner Loop Header: Depth=1
|
|
|
|
; CHECK-NEXT: s_cbranch_vccz BB0_2
|
|
|
|
; CHECK-NEXT: BB0_3: ; %DummyReturnBlock
|
|
|
|
; CHECK-NEXT: s_endpgm
|
2016-02-13 01:11:04 +08:00
|
|
|
bb:
|
|
|
|
%tmp = icmp ne i32 %arg, 0
|
|
|
|
%tmp7 = icmp ne i32 %arg1, 0
|
|
|
|
%tmp8 = and i1 %tmp, %tmp7
|
|
|
|
br i1 %tmp8, label %bb9, label %bb11
|
|
|
|
|
|
|
|
bb9: ; preds = %bb
|
|
|
|
br label %bb10
|
|
|
|
|
|
|
|
bb10: ; preds = %bb10, %bb9
|
|
|
|
br label %bb10
|
|
|
|
|
|
|
|
bb11: ; preds = %bb
|
|
|
|
ret void
|
|
|
|
}
|