Skip to content

Commit

Permalink
[BinaryPlatforms] More accurate pentium4 name for base i686 arch (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Oct 27, 2020
1 parent 4989056 commit 7e42d51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion base/binaryplatforms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ const arch_march_isa_mapping = let
end
Dict(
"i686" => [
"i686" => get_set("i686", "i686"),
"pentium4" => get_set("i686", "pentium4"),
"prescott" => get_set("i686", "prescott"),
],
"x86_64" => [
Expand Down
7 changes: 4 additions & 3 deletions base/cpuid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ include(string(length(Core.ARGS) >= 2 ? Core.ARGS[2] : "", "features_h.jl")) #
# Keep in sync with `arch_march_isa_mapping`.
const ISAs_by_family = Dict(
"i686" => [
# Implicit in all sets, because always required: mmx, sse, sse2
"i686" => ISA(Set{UInt32}()),
# Source: https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html.
# Implicit in all sets, because always required by Julia: mmx, sse, sse2
"pentium4" => ISA(Set{UInt32}()),
"prescott" => ISA(Set((JL_X86_sse3,))),
],
"x86_64" => [
# Source: https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html.
# Implicit in all sets, because always required: mmx, sse, sse2
# Implicit in all sets, because always required by x86-64 architecture: mmx, sse, sse2
"x86_64" => ISA(Set{UInt32}()),
"core2" => ISA(Set((JL_X86_sse3, JL_X86_ssse3))),
"nehalem" => ISA(Set((JL_X86_sse3, JL_X86_ssse3, JL_X86_sse41, JL_X86_sse42, JL_X86_popcnt))),
Expand Down

0 comments on commit 7e42d51

Please sign in to comment.