Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
IAmAThousandTrees opened this issue Dec 3, 2024 · 0 comments
Open

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

IAmAThousandTrees opened this issue Dec 3, 2024 · 0 comments

Comments

@IAmAThousandTrees
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant