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) {
468468 };
469469 const cpu = switch (arch) {
470470 .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,
472472 .avr => &avr.cpu.avr1,
473473 .bpfel, .bpfeb => &bpf.cpu.generic,
474474 .hexagon => &hexagon.cpu.generic,
lib/std/target/aarch64.zig+6
......@@ -1225,6 +1225,11 @@ pub const cpu = struct {
12251225 .cyclone,
12261226 }),
12271227 };
1228 pub const baseline = Cpu{
1229 .name = "baseline",
1230 .llvm_name = null,
1231 .features = featureSet(&[_]Feature{}),
1232 };
12281233 pub const cortex_a35 = Cpu{
12291234 .name = "cortex_a35",
12301235 .llvm_name = "cortex-a35",
......@@ -1411,6 +1416,7 @@ pub const cpu = struct {
14111416/// compiler has inefficient memory and CPU usage, affecting build times.
14121417pub const all_cpus = &[_]*const Cpu{
14131418 &cpu.apple_latest,
1419 &cpu.baseline,
14141420 &cpu.cortex_a35,
14151421 &cpu.cortex_a53,
14161422 &cpu.cortex_a55,
src/codegen.cpp+1
......@@ -8795,6 +8795,7 @@ static void init(CodeGen *g) {
87958795 target_specific_features = stage2_cpu_features_get_llvm_features(g->zig_target->cpu_features);
87968796 }
87978797 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));
87988799 fprintf(stderr, "name=%s target_specific_cpu_args=%s\n", buf_ptr(g->root_out_name), target_specific_cpu_args);
87998800 fprintf(stderr, "name=%s target_specific_features=%s\n", buf_ptr(g->root_out_name), target_specific_features);
88008801 }