fun superoptimizer result from @hyperoptimizer, this occurs in ImageMagick
https://godbolt.org/z/75sYhYsKq
@steve
Don't forget the glorious way of doing this thanks to C/C++: using scientific notation!
https://cpp.compiler-explorer.com/z/Pfhrxn9Kn
@CanLehmann @regehr @hyperoptimizer
bool test(short x) { return x == 1e3; }