Other Parts Discussed in Thread: LM3S8962
The TivaWare driver library (2.1.4.178) has incorrect and some missing #defines for the analog comparator internal reference setting.
The TivaWare driver library (driverlib/comp.h) internal reference values quoted in the COMP_REF_XXXX #defines do not match the TM4C129E datasheet values in section 25.3.1 and 30.21.
Looking at the StellarisWare driver library, TivaWare is a copy paste from that for this peripheral
This copy/paste didn't take into account the apparent change in comparator reference hardware as the formulas in the datasheets yield different values (TM4C129E vs LM3S8962).