Projects
Mega:23.03
gcc
_service:tar_scm:0071-PHIOPT-Disable-the-match-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0071-PHIOPT-Disable-the-match-A-CST1-0-when-the-CST1-is-n.patch of Package gcc
From b57c55b282e7a9a7b2cc0d3843e58fd7998685e6 Mon Sep 17 00:00:00 2001 From: zhongyunde <zhongyunde@huawei.com> Date: Fri, 4 Nov 2022 23:19:44 +0800 Subject: [PATCH 23/35] [PHIOPT] Disable the match A?CST1:0 when the CST1 is negitive value Fix the regression of gcc.target/aarch64/sve/vcond_3.c gcc: * match.pd (A?CST1:CST2): Disable the simplifcations A? (-CST1):0 --- gcc/match.pd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/match.pd b/gcc/match.pd index 79a0228d2..fc1a34dd3 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -3347,7 +3347,8 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) (if (integer_onep (@1)) (convert (convert:boolean_type_node @0))) /* a ? powerof2cst : 0 -> a << (log2(powerof2cst)) */ - (if (INTEGRAL_TYPE_P (type) && integer_pow2p (@1)) + (if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (TREE_TYPE (@1)) + && integer_pow2p (@1)) (with { tree shift = build_int_cst (integer_type_node, tree_log2 (@1)); } -- 2.27.0.windows.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2