Skip to content

Instantly share code, notes, and snippets.

@lukegb
Created April 16, 2021 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukegb/d6bf0479ca9cdece46b34279a6089b69 to your computer and use it in GitHub Desktop.
Save lukegb/d6bf0479ca9cdece46b34279a6089b69 to your computer and use it in GitHub Desktop.

Thoughts

This is part of testing things; it's possible this has been broken for a while so I'd be interested in knowing if running this test is broken with the "current" nixos-unstable llvmPackages_12.llvm.

I think the best way to test this is effectively to grab a nixpkgs.git checkout at dcdf30a78a52, and do something like:

$ nix run -f . llvmPackages_12.llvm
$ llvm-exegesis -mode=uops -opcode-name=CMOV16rm  -benchmarks-file=CMOV16rm-uops.yaml
$ llvm-exegesis -mcpu=bdver2 -mode=analysis -benchmarks-file=CMOV16rm-uops.yaml -analysis-clusters-output-file=- -analysis-clustering-epsilon=0.1 -analysis-inconsistency-epsilon=0.1 -analysis-numpoints=1 -analysis-clustering=naive

which is basically executing what I think the core of the test logic is, but with the old version of llvm-exegesis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment