Add some ISA predicates for Intel CPUID features.

Guard the popcnt instruction on the proper CPUID bits.
This commit is contained in:
Jakob Stoklund Olesen
2017-07-12 16:05:20 -07:00
parent 435a15b88d
commit 5cbcd59cf0
5 changed files with 41 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
; binary emission of 32-bit code.
test binemit
isa intel
isa intel has_sse42 has_popcnt
; The binary encodings can be verified with the command:
;

View File

@@ -1,7 +1,7 @@
; binary emission of 64-bit code.
test binemit
set is_64bit
isa intel
isa intel has_sse42 has_popcnt
; The binary encodings can be verified with the command:
;

View File

@@ -2,10 +2,10 @@
test compile
set is_64bit=0
isa intel
isa intel has_sse42 has_popcnt
set is_64bit=1
isa intel
isa intel has_sse42 has_popcnt
; Constants.