authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-22 18:40:34-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-22 18:40:34-05:00
log9845264a0bcb1347216a00dad0fd67fe79555485
tree8d5cc2402164c29e90834b39c3273615ee810c6d
parent0c477f3c793d483c3917f08971b867e19c8c88a9
signaturelock-open Commit is signed but in an unrecognized format.

aarch64: less feature-full baseline CPU


3 files changed, 8 insertions(+), 1 deletions(-)

lib/std/target.zig+1-1
...@@ -468,7 +468,7 @@ pub const Target = union(enum) {...@@ -468,7 +468,7 @@ pub const Target = union(enum) {
468 };468 };
469 const cpu = switch (arch) {469 const cpu = switch (arch) {
470 .arm, .armeb, .thumb, .thumbeb => &arm.cpu.generic,470 .arm, .armeb, .thumb, .thumbeb => &arm.cpu.generic,
471 .aarch64, .aarch64_be, .aarch64_32 => &aarch64.cpu.generic,471 .aarch64, .aarch64_be, .aarch64_32 => &aarch64.cpu.baseline,
472 .avr => &avr.cpu.avr1,472 .avr => &avr.cpu.avr1,
473 .bpfel, .bpfeb => &bpf.cpu.generic,473 .bpfel, .bpfeb => &bpf.cpu.generic,
474 .hexagon => &hexagon.cpu.generic,474 .hexagon => &hexagon.cpu.generic,
lib/std/target/aarch64.zig+6
...@@ -1225,6 +1225,11 @@ pub const cpu = struct {...@@ -1225,6 +1225,11 @@ pub const cpu = struct {
1225 .cyclone,1225 .cyclone,
1226 }),1226 }),
1227 };1227 };
1228 pub const baseline = Cpu{
1229 .name = "baseline",
1230 .llvm_name = null,
1231 .features = featureSet(&[_]Feature{}),
1232 };
1228 pub const cortex_a35 = Cpu{1233 pub const cortex_a35 = Cpu{
1229 .name = "cortex_a35",1234 .name = "cortex_a35",
1230 .llvm_name = "cortex-a35",1235 .llvm_name = "cortex-a35",
...@@ -1411,6 +1416,7 @@ pub const cpu = struct {...@@ -1411,6 +1416,7 @@ pub const cpu = struct {
1411/// compiler has inefficient memory and CPU usage, affecting build times.1416/// compiler has inefficient memory and CPU usage, affecting build times.
1412pub const all_cpus = &[_]*const Cpu{1417pub const all_cpus = &[_]*const Cpu{
1413 &cpu.apple_latest,1418 &cpu.apple_latest,
1419 &cpu.baseline,
1414 &cpu.cortex_a35,1420 &cpu.cortex_a35,
1415 &cpu.cortex_a53,1421 &cpu.cortex_a53,
1416 &cpu.cortex_a55,1422 &cpu.cortex_a55,
src/codegen.cpp+1
...@@ -8795,6 +8795,7 @@ static void init(CodeGen *g) {...@@ -8795,6 +8795,7 @@ static void init(CodeGen *g) {
8795 target_specific_features = stage2_cpu_features_get_llvm_features(g->zig_target->cpu_features);8795 target_specific_features = stage2_cpu_features_get_llvm_features(g->zig_target->cpu_features);
8796 }8796 }
8797 if (g->verbose_llvm_cpu_features) {8797 if (g->verbose_llvm_cpu_features) {
8798 fprintf(stderr, "name=%s triple=%s\n", buf_ptr(g->root_out_name), buf_ptr(&g->llvm_triple_str));
8798 fprintf(stderr, "name=%s target_specific_cpu_args=%s\n", buf_ptr(g->root_out_name), target_specific_cpu_args);8799 fprintf(stderr, "name=%s target_specific_cpu_args=%s\n", buf_ptr(g->root_out_name), target_specific_cpu_args);
8799 fprintf(stderr, "name=%s target_specific_features=%s\n", buf_ptr(g->root_out_name), target_specific_features);8800 fprintf(stderr, "name=%s target_specific_features=%s\n", buf_ptr(g->root_out_name), target_specific_features);
8800 }8801 }