Hi James, bug reports with attached test cases are awesome :) I can confirm the problem with latest Mesa and LLVM master and am going to investigate.