testsuite: Split out known-misaligned V2QI store target [PR124342] [PR124619] #215

Open
azoff wants to merge 1 commit from azoff/gcc:pr/Wstringop-overflow into trunk
Member

Changes since v1:

  • Renamed define TEST_V2QI to TEST_V2QI_ALIGN
  • Renamed define TEST_V2QI_2 to TEST_V2QI_UNALIGN

I've tested this change on top of r17-3738-gaaa0f6b1e87bc6 and r16-9620-g04c3e1efd4917e.

Ok for trunk and releases/gcc-16?

--
CC: Richard.Earnshaw@arm.com
CC: richard.guenther@gmail.com

Changes since v1: - Renamed define TEST_V2QI to TEST_V2QI_ALIGN - Renamed define TEST_V2QI_2 to TEST_V2QI_UNALIGN I've tested this change on top of r17-3738-gaaa0f6b1e87bc6 and r16-9620-g04c3e1efd4917e. Ok for trunk and releases/gcc-16? -- CC: Richard.Earnshaw@arm.com CC: richard.guenther@gmail.com
testsuite: Split out known-misaligned V2QI store target [PR124342] [PR124619]
All checks were successful
/ format-checks (pull_request) Successful in 1m43s
1a3f4342b3
vect_slp_v2qi_store_unalign tests whether the vectorizer handles a V2QI
store through a byte-aligned base, but some -Wstringop-overflow tests
instead depend on a V2QI store at a known one-byte misalignment from a
defined object.

These two variants are not the same on armv7ve with -mfloat-abi=hard.
Add a separate effective target for the latter case.

	PR testsuite/124342
	PR testsuite/124619

gcc/ChangeLog:

	* doc/sourcebuild.texi (vect_slp_v2qi_store_unalign): Document.
	(vect_slp_v2qi_store_misalign): Likewise.

gcc/testsuite/ChangeLog:

	* lib/target-supports.exp (check_vect_slp_store_usage): Add
	TEST_V2QI_MISALIGN.
	(check_effective_target_vect_slp_v2qi_store_misalign): New proc.
	* c-c++-common/Wstringop-overflow-2.c: Use it.
	* g++.dg/warn/Wstringop-overflow-3.C: Likewise.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Member

Hi @azoff. This bot helps send your PR as a patch series to the mailing list.

Next steps

  1. Write a clear PR description. It will be used as the cover letter.
  2. To CC extra people, add lines like this at the end of the PR description: CC: Reviewer1 <revi.ewer@example.com>, Reviewer2 <an.other@example.com>.
  3. To preview the emails, comment with /preview.
  4. When ready, request review in the Reviewers section. Or, if you just want to send the series, comment with /submit.
  5. Use the cover-letter links below to follow replies.
  6. For a new patch series, push your changes, update the PR description with a Changes since vX section, and comment with /submit again.

See Submitting Patches and UsingForge.

Consider joining the gcc and gcc-patches mailing lists..
For real time communication, check the gcc irc channels.

Or join #overseers on Libera Chat, particularly if this automation is not working (stay online to get replies, IRC does not save messages if people are not online).

<!-- pr-welcome --> Hi @azoff. This bot helps send your PR as a patch series to the mailing list. ## Next steps 1. Write a clear PR description. It will be used as the cover letter. 2. To CC extra people, add lines like this **at the end** of the PR description: `CC: Reviewer1 <revi.ewer@example.com>, Reviewer2 <an.other@example.com>`. 3. To preview the emails, comment with `/preview`. 4. When ready, request review in the Reviewers section. Or, if you just want to send the series, comment with `/submit`. 5. Use the cover-letter links below to follow replies. 6. For a new patch series, push your changes, update the PR description with a `Changes since vX` section, and comment with `/submit` again. See [Submitting Patches](https://gcc.gnu.org/contribute.html#patches) and [UsingForge](https://gcc.gnu.org/wiki/UsingForge). Consider joining the [gcc and gcc-patches mailing lists.](https://gcc.gnu.org/lists.html). For real time communication, check the [gcc irc channels](https://gcc.gnu.org/wiki/GCConIRC). Or join [`#overseers`](https://web.libera.chat/#overseers) on Libera Chat, particularly if this automation is not working (stay online to get replies, IRC does not save messages if people are not online).
Author
Member

/submit

/submit
Member

Version 1 of this pull request has been stored. It includes the following commits:

<!-- pr-new-version --> Version 1 of this pull request has been stored. It includes the following commits: - testsuite: Split out known-misaligned V2QI store target [PR124342] [PR124619] - 1a3f4342b3ffa28514704ca226fdef1fda46a477
Member

Sent patch version 1 as a single email to gcc-patches mailing list gcc-patches@gcc.gnu.org and cc'd Richard.Earnshaw@arm.com.
Cover letter

Sent patch version 1 as a single email to gcc-patches mailing list <gcc-patches@gcc.gnu.org> and cc'd Richard.Earnshaw@arm.com. [Cover letter](https://inbox.sourceware.org/gcc-patches/bmm.hl7xxlh4ko.gcc.gcc.azoff.215.1.0@forge-stage.sourceware.org)
Author
Member

Gentle ping! :)

Gentle ping! :)
azoff force-pushed pr/Wstringop-overflow from 1a3f4342b3
All checks were successful
/ format-checks (pull_request) Successful in 1m43s
to 3f5592502b
All checks were successful
/ format-checks (pull_request) Successful in 1m35s
2026-09-02 09:59:04 +00:00
Compare
Author
Member

/submit

/submit
Member

Version 2 of this pull request has been stored. It includes the following commits:

<!-- pr-new-version --> Version 2 of this pull request has been stored. It includes the following commits: - testsuite: Split out known-misaligned V2QI store target [PR124342] [PR124619] - 3f5592502b2ba71cb4088daeae109915f431b6a9
Member

Pull Request versions:

# Base Head
1 32657f29f9 1a3f4342b3 (diff)
2 aaa0f6b1e8 3f5592502b (diff)

In order to compare , clone this repository and run

PR=215
git fetch origin "refs/versioned_pull/${PR}/*:refs/versioned_pull/${PR}/*"
PRV1=1
PRV2=2
git range-diff "refs/versioned_pull/${PR}/${PRV1}/base..refs/versioned_pull/${PR}/${PRV1}/head"  "refs/versioned_pull/${PR}/${PRV2}/base..refs/versioned_pull/${PR}/${PRV2}/head"
<!-- pr-versions --> Pull Request versions: | # | Base | Head | | | - | ---- | ---- | - | | 1 | 32657f29f918712ad7110bd54d8ebb3bf6b0a2a8 | 1a3f4342b3ffa28514704ca226fdef1fda46a477 | [(diff)](https://forge.sourceware.org/gcc/gcc.git/compare/32657f29f918712ad7110bd54d8ebb3bf6b0a2a8...1a3f4342b3ffa28514704ca226fdef1fda46a477) | | 2 | aaa0f6b1e87bc62ea15da6eab431af6dcebf6414 | 3f5592502b2ba71cb4088daeae109915f431b6a9 | [(diff)](https://forge.sourceware.org/gcc/gcc.git/compare/aaa0f6b1e87bc62ea15da6eab431af6dcebf6414...3f5592502b2ba71cb4088daeae109915f431b6a9) | In order to compare , clone this repository and run ``` PR=215 git fetch origin "refs/versioned_pull/${PR}/*:refs/versioned_pull/${PR}/*" PRV1=1 PRV2=2 git range-diff "refs/versioned_pull/${PR}/${PRV1}/base..refs/versioned_pull/${PR}/${PRV1}/head" "refs/versioned_pull/${PR}/${PRV2}/base..refs/versioned_pull/${PR}/${PRV2}/head" ```
Member

Sent patch version 2 as a single email to gcc-patches mailing list gcc-patches@gcc.gnu.org and cc'd richard.guenther@gmail.com, Richard.Earnshaw@arm.com.
Cover letter

Sent patch version 2 as a single email to gcc-patches mailing list <gcc-patches@gcc.gnu.org> and cc'd richard.guenther@gmail.com, Richard.Earnshaw@arm.com. [Cover letter](https://inbox.sourceware.org/gcc-patches/bmm.hlwznjdomm.gcc.gcc.azoff.215.2.0@forge-stage.sourceware.org)
All checks were successful
/ format-checks (pull_request) Successful in 1m35s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u pr/Wstringop-overflow:azoff-pr/Wstringop-overflow
git switch azoff-pr/Wstringop-overflow

Merge

Merge the changes and update on Forgejo.
git switch trunk
git merge --no-ff azoff-pr/Wstringop-overflow
git switch azoff-pr/Wstringop-overflow
git rebase trunk
git switch trunk
git merge --ff-only azoff-pr/Wstringop-overflow
git switch azoff-pr/Wstringop-overflow
git rebase trunk
git switch trunk
git merge --no-ff azoff-pr/Wstringop-overflow
git switch trunk
git merge --squash azoff-pr/Wstringop-overflow
git switch trunk
git merge --ff-only azoff-pr/Wstringop-overflow
git switch trunk
git merge azoff-pr/Wstringop-overflow
git push origin trunk
Sign in to join this conversation.
No reviewers
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gcc/gcc!215
No description provided.