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 b6f2f0d862
commit d8e2cb2b42
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:
;