swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.29k stars 10.34k forks source link

[SR-10817] Gaps in arithmetic benchmarking / testing #53207

Open stephentyrone opened 5 years ago

stephentyrone commented 5 years ago
Previous ID SR-10817
Radar None
Original Reporter @stephentyrone
Type Bug
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | Standard Library | |Labels | Bug, Benchmark, StarterBug, Test | |Assignee | None | |Priority | Medium | md5: af326874c16fabc95a608b2cf02675cf

Issue Description:

We are in need of tests and/or benchmarks to ensure that arithmetic operations in Swift compile down to single instructions (when a single instruction on the target captures the necessary semantics).

These could plausibly take the form of either benchmarks or regression tests; regression tests are good because we can directly validate that we get single IR or assembly operations where appropriate, benchmarks are also good in some cases, where we don't necessarily have a single instruction replacement for an operation (integer smart shifts, for example).

swift-ci commented 4 years ago

Comment by Michael Verges (JIRA)

@stephentyrone, I'm new to this project. I see this labeled as a StarterBug. Do you have any additional references to get started on this?