Skip to content

Implement automatic verification for ARM/AArch64 intrinsics#626

Merged
alexcrichton merged 1 commit intorust-lang:masterfrom
alexcrichton:verify-arm
Dec 20, 2018
Merged

Implement automatic verification for ARM/AArch64 intrinsics#626
alexcrichton merged 1 commit intorust-lang:masterfrom
alexcrichton:verify-arm

Conversation

@alexcrichton
Copy link
Member

This commit implements automatic verification of implement ARM/AArch64
intrinsics. Or it's at least a start! This downloads a snapshot of ARM's
online documentation and implements necessary logic to parse
that and use it to verify all the intrinsics. Almost everything
checked out A-OK but a few minor tweaks were needed to the neon
intrinsics and the crc ones needed some renaming.

This commit implements automatic verification of implement ARM/AArch64
intrinsics. Or it's at least a start! This downloads a snapshot of ARM's
[online documentation][docs] and implements necessary logic to parse
that and use it to verify all the intrinsics. Almost everything
checked out A-OK but a few minor tweaks were needed to the neon
intrinsics and the crc ones needed some renaming.

[docs]: https://developer.arm.com/technologies/neon/intrinsics
@alexcrichton
Copy link
Member Author

All green! I'm gonna go ahead and merge this and use it to update the NEON intrinsic listing

@alexcrichton alexcrichton merged commit abcdfe3 into rust-lang:master Dec 20, 2018
@alexcrichton
Copy link
Member Author

cc @myfreeweb for the crc intrinsic naming changes on AArch64

@alexcrichton alexcrichton deleted the verify-arm branch December 20, 2018 20:11
@valpackett
Copy link
Contributor

hm, the ones in neon.rs don't start with __?

@gnzlbg
Copy link
Contributor

gnzlbg commented Dec 20, 2018

hm, the ones in neon.rs don't start with __?

now they do AFAICT, or which neon.rs do you mean? In the intrinsics guide they also have an __:

screen shot 2018-12-20 at 21 58 45

@valpackett
Copy link
Contributor

Not the CRC ones, the NEON ones, visible in the diff here on github: e.g. vaddd_s64

@alexcrichton
Copy link
Member Author

For whatever reason ARM seems to specify __crc32cd yet also specifies vaddd_s64 (no leading underscores). I'm not really sure why...

@gnzlbg
Copy link
Contributor

gnzlbg commented Dec 20, 2018

But those do not have underscores in the intrinsics guide, right?

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

Successfully merging this pull request may close these issues.

3 participants