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.