Skip to content

Missing tests for intrinsics. #71669

Closed
Closed

Description

There are a few intrinsics which are not tested.

We also don't test the emitted IR for most intrinsics, e.g. ctlz_nonzero could use ctlz without being noticed.

  • pref_align_of: never used
  • volatile_copy_nonoverlapping_memory: used in a test for write_volatile causes ICE with zero-sized types. #39827 without checking its output or IR
  • volatile_copy_memory: ^
  • volatile_set_memory: ^^
  • unaligned_volatile_load: both IR and use with unaligned addr never checked
  • unaligned_volatile_store: ^
  • nearbyintf32: never used
  • nearbyintf64: ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

A-intrinsicsArea: IntrinsicsC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions