Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segmentation fault on Apple M1 Ultra #3

Open
jdomke opened this issue Jun 12, 2023 · 5 comments
Open

segmentation fault on Apple M1 Ultra #3

jdomke opened this issue Jun 12, 2023 · 5 comments

Comments

@jdomke
Copy link

jdomke commented Jun 12, 2023

g++ --version
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.3.0
# AArch64 latency / throughput benchmark report
# Generated by https://github.com/ocxtal/insn_bench_aarch64 (commit: unknown).
# CPU frequency estimation
# measuring CPU frequency, assuming latency of 64bit addition is 1 cycle(s):
# - 3224.58 MHz
# - 3224.62 MHz
# - 3224.76 MHz
# Scalar load
# instruction	latency	throughput
zsh: segmentation fault  src/insn_bench_aarch64
@ocxtal
Copy link
Owner

ocxtal commented Jun 15, 2023

thank you for reporting. it reproduced on my M2 MacBook. it looks using x18 as a general-purpose register is not good, but not sure. I'll take a further look this Saturday.

@ocxtal
Copy link
Owner

ocxtal commented Jul 22, 2023

@jdomke could you try the current master? I modified the register usage in 7b8c2ee so that it won't touch x18, which is reserved for platform-specific usage. It looks it now runs on my M2 MacBook.

@jdomke
Copy link
Author

jdomke commented Jul 24, 2023

@ocxtal thanks, I tested the new version and it runs for a bit, but then crashes with "abort" message, and the last line I'm seeing is:
ld1.b (multi; 3 reg) 5.57 1.00
based on logs from other systems the next should be ld1.b (multi; 4 reg)

@jdomke
Copy link
Author

jdomke commented Jul 24, 2023

Small update, it works when I remove all the
ld1.[b|h|s|d] (multi; 4 reg)
from src/load.cc, as well as all
st1.b (multi; 4 regs) and st4.[b|h|s|d] (multi)
from src/store.cc

@ocxtal
Copy link
Owner

ocxtal commented Jul 26, 2023

thanks, I'll check it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants