Skip to content

bit(field) extract with invertion #31

@jnk0le

Description

@jnk0le

One use case came up for "ring oscillator" benchmark https://pub.pages.cba.mit.edu/ring/

currently extract, invert, insert method requires 3 instructions.

1:	tio.bexti a0, io12, 2
	not a0, a0
	tio.bfinserti io13, a0, 3
	b 1b

note that andn or orn can't be used to invert ios source due to rs2 being the inverted operand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions