Index: lib/Target/AMDGPU/SIInstrInfo.td =================================================================== --- lib/Target/AMDGPU/SIInstrInfo.td +++ lib/Target/AMDGPU/SIInstrInfo.td @@ -2382,10 +2382,10 @@ // Special case for class instructions which only have modifiers on // the 1st source operand. -multiclass VOPC_Class_Helper pat32, +multiclass VOPC_Class_Helper pat64, bit DefExec, string revOp, VOPProfile p, list sched> { - defm _e32 : VOPC_m ; + defm _e32 : VOPC_m ; defm _e64 : VOP3_C_m , @@ -2417,15 +2417,14 @@ multiclass VOPCClassInst sched> : VOPC_Class_Helper < - op, opName, [], - !if(P.HasModifiers, - [(set i1:$sdst, - (AMDGPUfp_class (P.Src0VT (VOP3Mods0Clamp0OMod P.Src0VT:$src0, i32:$src0_modifiers)), P.Src1VT:$src1))], - [(set i1:$sdst, (AMDGPUfp_class P.Src0VT:$src0, P.Src1VT:$src1))]), + op, opName, + [(set i1:$sdst, + (AMDGPUfp_class + (P.Src0VT (VOP3Mods0Clamp0OMod P.Src0VT:$src0, i32:$src0_modifiers)), + P.Src1VT:$src1))], DefExec, opName, P, sched >; - multiclass VOPC_F32 : VOPCInst ;