add decompose methods for new comparisons (#8463)
fixed promotion
Merge pull request #14 from simonbyrne/master

add decompose methods for new comparisons (#8463)