Skip to content

3.3: haven't you heard of set(cc) instruction? #310

Open
@IAmAThousandTrees

Description

@IAmAThousandTrees

in section 3.3, "branchless programming" the statement "There are no Boolean types in assembly, nor any instructions that yield either one or zero based on the result of the comparison" is patently false. Although there are frequently better ways to implement predication than using set, claiming it doesn't exist is at least 20 years out of date. every ISA I know of has some equivalent condition-code→value coversion.

I notice you don't seem to look at or fix issues raised here any more, but I raise the issue anyway since I don't know how much of the following text and code samples would have to be changed...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions