Mercurial > hg > CbC > CbC_llvm
diff llvm/test/CodeGen/AMDGPU/xor3-i1-const.ll @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children | 1f2b6ac9f198 |
line wrap: on
line diff
--- a/llvm/test/CodeGen/AMDGPU/xor3-i1-const.ll Wed Jul 21 10:27:27 2021 +0900 +++ b/llvm/test/CodeGen/AMDGPU/xor3-i1-const.ll Wed Nov 09 17:45:10 2022 +0900 @@ -1,10 +1,22 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; RUN: llc -march=amdgcn -mcpu=bonaire -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s ; This test used to crash -; GCN-LABEL: {{^}}xor3_i1_const: -; GCN: s_xor_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}], -1 -; GCN: s_xor_b64 s[{{[0-9:]+}}], s[{{[0-9:]+}}], -1 define amdgpu_ps float @xor3_i1_const(float inreg %arg1, i32 inreg %arg2) { +; GCN-LABEL: xor3_i1_const: +; GCN: ; %bb.0: ; %main_body +; GCN-NEXT: s_mov_b32 m0, s1 +; GCN-NEXT: v_mov_b32_e32 v1, 0x42640000 +; GCN-NEXT: v_cmp_nlt_f32_e64 s[2:3], s0, 0 +; GCN-NEXT: v_interp_p2_f32 v0, v0, attr0.x +; GCN-NEXT: v_cmp_nlt_f32_e32 vcc, s0, v1 +; GCN-NEXT: v_cmp_gt_f32_e64 s[0:1], 0, v0 +; GCN-NEXT: s_or_b64 s[2:3], s[2:3], vcc +; GCN-NEXT: s_and_b64 s[0:1], s[0:1], s[2:3] +; GCN-NEXT: s_xor_b64 s[2:3], s[2:3], s[0:1] +; GCN-NEXT: s_or_b64 s[0:1], s[2:3], s[0:1] +; GCN-NEXT: v_cndmask_b32_e64 v0, 0, 1.0, s[0:1] +; GCN-NEXT: ; return to shader part epilog main_body: %tmp26 = fcmp nsz olt float %arg1, 0.000000e+00 %tmp28 = call nsz float @llvm.amdgcn.interp.p2(float undef, float undef, i32 0, i32 0, i32 %arg2)