Skip to content

Commit 094e808

Browse files
committed
[AMDGPU] Regenerate xor3-i1-const.ll test(NFC)
1 parent d09d297 commit 094e808

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

llvm/test/CodeGen/AMDGPU/xor3-i1-const.ll

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
12
; RUN: llc -march=amdgcn -mcpu=bonaire -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
23

34
; This test used to crash
4-
; GCN-LABEL: {{^}}xor3_i1_const:
5-
; GCN: s_xor_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}], -1
6-
; GCN: s_xor_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}], -1
75
define amdgpu_ps float @xor3_i1_const(float inreg %arg1, i32 inreg %arg2) {
6+
; GCN-LABEL: xor3_i1_const:
7+
; GCN: ; %bb.0: ; %main_body
8+
; GCN-NEXT: v_mov_b32_e32 v1, 0x42640000
9+
; GCN-NEXT: s_mov_b32 m0, s1
10+
; GCN-NEXT: v_cmp_lt_f32_e64 s[2:3], s0, 0
11+
; GCN-NEXT: v_cmp_lt_f32_e32 vcc, s0, v1
12+
; GCN-NEXT: v_interp_p2_f32 v0, v0, attr0.x
13+
; GCN-NEXT: s_and_b64 s[2:3], s[2:3], vcc
14+
; GCN-NEXT: v_cmp_gt_f32_e64 s[0:1], 0, v0
15+
; GCN-NEXT: s_xor_b64 s[4:5], s[2:3], -1
16+
; GCN-NEXT: s_and_b64 s[0:1], s[0:1], s[4:5]
17+
; GCN-NEXT: s_xor_b64 s[2:3], s[0:1], s[2:3]
18+
; GCN-NEXT: s_xor_b64 s[2:3], s[2:3], -1
19+
; GCN-NEXT: s_or_b64 s[0:1], s[2:3], s[0:1]
20+
; GCN-NEXT: v_cndmask_b32_e64 v0, 0, 1.0, s[0:1]
21+
; GCN-NEXT: ; return to shader part epilog
822
main_body:
923
%tmp26 = fcmp nsz olt float %arg1, 0.000000e+00
1024
%tmp28 = call nsz float @llvm.amdgcn.interp.p2(float undef, float undef, i32 0, i32 0, i32 %arg2)

0 commit comments

Comments
 (0)