summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/fneg-combines.ll
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2019-07-10 14:53:47 +0000
committerJay Foad <jay.foad@gmail.com>2019-07-10 14:53:47 +0000
commitbba37e89a57acfb161549b5a57acbe2a228331b8 (patch)
tree404373619450a04851aca76e6f92d37803358380 /llvm/test/CodeGen/AMDGPU/fneg-combines.ll
parenta23c5694fbb5b96d0e1a5063b104cc9274611274 (diff)
downloadbcm5719-llvm-bba37e89a57acfb161549b5a57acbe2a228331b8.tar.gz
bcm5719-llvm-bba37e89a57acfb161549b5a57acbe2a228331b8.zip
[AMDGPU] Allow abs/neg source modifiers on v_cndmask_b32
Summary: D59191 added support for these modifiers in the assembler and disassembler. This patch just teaches instruction selection that it can use them. Reviewers: arsenm, tstellar Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D64497 llvm-svn: 365640
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/fneg-combines.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/fneg-combines.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/fneg-combines.ll b/llvm/test/CodeGen/AMDGPU/fneg-combines.ll
index d2edfa566c8..e60bf4476a8 100644
--- a/llvm/test/CodeGen/AMDGPU/fneg-combines.ll
+++ b/llvm/test/CodeGen/AMDGPU/fneg-combines.ll
@@ -217,8 +217,8 @@ define amdgpu_kernel void @v_fneg_add_multi_use_fneg_x_f32(float addrspace(1)* %
; This one asserted with -enable-no-signed-zeros-fp-math
; GCN-LABEL: {{^}}fneg_fadd_0:
; GCN-SAFE-DAG: v_mad_f32 [[A:v[0-9]+]],
-; GCN-SAFE-DAG: v_xor_b32_e32 [[B:v[0-9]+]], 0x80000000
; GCN-SAFE-DAG: v_cmp_ngt_f32_e32 {{.*}}, [[A]]
+; GCN-SAFE-DAG: v_cndmask_b32_e64 v{{[0-9]+}}, -[[A]]
; GCN-NSZ-DAG: v_mac_f32_e32 [[C:v[0-9]+]],
; GCN-NSZ-DAG: v_cmp_nlt_f32_e64 {{.*}}, -[[C]]
OpenPOWER on IntegriCloud