Skip to content

gccrs: Support repr simd to setup a gcc vector type - #4795

Merged
philberty merged 1 commit into
masterfrom
phil/simd
Aug 18, 2026
Merged

gccrs: Support repr simd to setup a gcc vector type#4795
philberty merged 1 commit into
masterfrom
phil/simd

Conversation

@philberty

Copy link
Copy Markdown
Member

GCC makes this stuff really straight forward which is nice.

Fixes #4794

gcc/rust/ChangeLog:

* backend/rust-compile-type.cc (TyTyResolveCompile::visit): make vector
* rust-gcc.cc (struct_field_expression): we use bit field acces for lanes
(constructor_expression): special case VECTOR
(convert_tree): likewise for canonical main variant

gcc/testsuite/ChangeLog:

* rust/compile/issue-4794.rs: New test.

GCC makes this stuff really straight forward which is nice.

Fixes #4794

gcc/rust/ChangeLog:

	* backend/rust-compile-type.cc (TyTyResolveCompile::visit): make vector
	* rust-gcc.cc (struct_field_expression): we use bit field acces for lanes
	(constructor_expression): special case VECTOR
	(convert_tree): likewise for canonical main variant

gcc/testsuite/ChangeLog:

	* rust/compile/issue-4794.rs: New test.

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
@philberty philberty added this to the Lowering fixes core 1.49 milestone Aug 17, 2026
@philberty
philberty added this pull request to the merge queue Aug 18, 2026
Merged via the queue into master with commit af4b290 Aug 18, 2026
13 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in libcore 1.49 Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

support repr simd

1 participant