Index: lib/Target/SystemZ/SystemZISelLowering.cpp =================================================================== --- lib/Target/SystemZ/SystemZISelLowering.cpp +++ lib/Target/SystemZ/SystemZISelLowering.cpp @@ -2171,14 +2171,14 @@ case ISD::SETOGE: case ISD::SETGE: - return IsFP ? SystemZISD::VFCMPHE : 0; + return IsFP ? (unsigned)SystemZISD::VFCMPHE : 0; case ISD::SETOGT: case ISD::SETGT: return IsFP ? SystemZISD::VFCMPH : SystemZISD::VICMPH; case ISD::SETUGT: - return IsFP ? 0 : SystemZISD::VICMPHL; + return IsFP ? 0 : (unsigned)SystemZISD::VICMPHL; default: return 0;