quick nerdsnipe for compiler and testing nerds:

I have a simple LLVM IR generator that I'm using to fuzz a few things (including LLVM's middle end and AArch64 backend) and I want to generate maximally hostile integer constants. a uniform random 64-bit constant is suboptimal since it is unlikely to trigger optimizations that key on e.g. -1.

my current idea is 50% uniform random and 50% values that are very close to a power of 2.

anyone got a better plan?

I'm going to implement all of the suggestions I've received so far and then "generate constant" is going to be by far the largest and most complex part of my fuzzer

using all of these ideas, the constants coming out of my fuzzer will be so strong that they're crash the compiler all by themselves

Sign in to participate in the conversation
Mastodon

General topic personal server.