-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Unify instruction set definition #33730
Changes from 1 commit
6952c06
4f14632
be186f9
26a9810
6a65d97
c799dc9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
|
||
; Definition of X86 instruction sets | ||
|
||
definearch ,X86 ,32Bit ,X64 | ||
instructionset ,X86 ,Sse , ,1 ,SSE | ||
instructionset ,X86 ,Sse2 , ,2 ,SSE2 | ||
implication ,X86 ,SSE2 ,SSE | ||
|
@@ -46,18 +47,21 @@ implication ,X86 ,POPCNT ,SSE42 | |
instructionset ,X86 , , , ,Vector128 | ||
instructionset ,X86 , , , ,Vector256 | ||
|
||
; Definition of X64 instruction sets | ||
; Definition of X64 instruction sets (Define ) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems strange to define There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, custom dsls are weird. But avoiding very large diffs that don't really provide value is worth it. |
||
definearch ,X64 ,64Bit ,X64 | ||
instructionset64bit,X86 ,BMI1 | ||
instructionset64bit,X86 ,BMI2 | ||
instructionset64bit,X86 ,LZCNT | ||
instructionset64bit,X86 ,POPCNT | ||
instructionset64bit,X86 ,SSE | ||
instructionset64bit,X86 ,SSE2 | ||
instructionset64bit,X86 ,SSE41 | ||
instructionset64bit,X86 ,SSE42 | ||
|
||
copyinstructionsets,X86 ,X64 | ||
instructionset64bit,X64 ,BMI1 | ||
instructionset64bit,X64 ,BMI2 | ||
instructionset64bit,X64 ,LZCNT | ||
instructionset64bit,X64 ,POPCNT | ||
instructionset64bit,X64 ,SSE | ||
instructionset64bit,X64 ,SSE2 | ||
instructionset64bit,X64 ,SSE41 | ||
instructionset64bit,X64 ,SSE42 | ||
|
||
; Definition of the Arm64 instruction sets | ||
definearch ,ARM64 ,64Bit ,Arm64 | ||
instructionset ,ARM64 ,ArmBase , ,16 ,ArmBase | ||
instructionset64bit,ARM64 ,ArmBase | ||
instructionset ,ARM64 ,AdvSimd , ,17 ,AdvSimd | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just making sure, do these need to be defined so x86 can report
false
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. I got everything working, but I still couldn't build x86 …. and the amount of idefs that were going to be required was entirely unreasonable.