Skip to content

inefficient rv32i multiply by 10 ? #137023

Closed
@alex-s168

Description

@alex-s168

https://godbolt.org/z/Y4MzcY33n

the code generates a call to __mulsi3, which is definitely slower than (x << 3) + (x << 1).

is there any specific reason for this?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions