davemgreen wrote: Well I wrote some changes and in the process got i16 working from i128 integers. This is the first time I've seen ConstantFoldLoadFromConst so let me know if you were thinking of something else. https://github.com/llvm/llvm-project/pull/150896