swiftlang/swift

[SR-10817] Gaps in arithmetic benchmarking / testing

Open

#53 207 ouverte le 1 juin 2019

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)Swift (10 719 forks)batch import
benchmarksbuggood first issuestandard library

Métriques du dépôt

Stars
 (69 989 stars)
Métriques de merge PR
 (Merge moyen 8j 17h) (510 PRs mergées en 30 j)

Description

Previous ID SR-10817
Radar None
Original Reporter @stephentyrone
Type Bug
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).

Guide contributeur