HomeFreeBSD

arm64: simplify expression

Description

arm64: simplify expression

!a != !b -> a != b; this part was lifted from NetBSD, and I clearly did
not reconsider that these are bools (I'm guessing they were ints in an
earlier iteration of the NetBSD implementation).

while we're here, it should be easy to see that we've covered all of the
cases but let's add in an __assert_unreachable() to make it easier on
the eyes.

Reported by: jrtc27

Details

Provenance
kevansAuthored on May 15 2023, 3:54 PM
Parents
rGccb59683b983: arm64: add tests for swp/swpb emulation
Branches
Unknown
Tags
Unknown