codegen test: implement conditionals

- code generation for IF/ENDIF/ELSE
- input register permutation for PS
- generate passthrough shader without code if OUT[x]=IN[x]