@@ -584,6 +584,142 @@ INSTANTIATE_TEST_SUITE_P(
584584 " Expected float scalar or vector type as Result Type" ),
585585 BAD_KERNEL_OPERANDS (" %v = OpSpecConstantOp %float ConvertUToF %float_0" ,
586586 " Expected input to be int scalar or vector" ),
587+
588+ BAD_KERNEL_OPERANDS (
589+ " %v = OpSpecConstantOp %float UDiv %uint_0 %uint_0" ,
590+ " Expected unsigned int scalar or vector type as Result Type" ),
591+ BAD_KERNEL_OPERANDS (
592+ " %v = OpSpecConstantOp %uint UDiv %uint_0 %float_0" ,
593+ " Expected arithmetic operands to be of Result Type" ),
594+
595+ BAD_KERNEL_OPERANDS (
596+ " %v = OpSpecConstantOp %float UMod %uint_0 %uint_0" ,
597+ " Expected unsigned int scalar or vector type as Result Type" ),
598+ BAD_KERNEL_OPERANDS (
599+ " %v = OpSpecConstantOp %uint UMod %uint_0 %float_0" ,
600+ " Expected arithmetic operands to be of Result Type" ),
601+
602+ BAD_KERNEL_OPERANDS (
603+ " %v = OpSpecConstantOp %float ISub %uint_0 %uint_0" ,
604+ " Expected int scalar or vector type as Result Type" ),
605+ BAD_KERNEL_OPERANDS (" %v = OpSpecConstantOp %uint ISub %uint_0 %float_0" ,
606+ " Expected int scalar or vector type as operand" ),
607+
608+ BAD_KERNEL_OPERANDS (
609+ " %v = OpSpecConstantOp %float IAdd %uint_0 %uint_0" ,
610+ " Expected int scalar or vector type as Result Type" ),
611+ BAD_KERNEL_OPERANDS (" %v = OpSpecConstantOp %uint IAdd %uint_0 %float_0" ,
612+ " Expected int scalar or vector type as operand" ),
613+
614+ BAD_KERNEL_OPERANDS (
615+ " %v = OpSpecConstantOp %float IMul %uint_0 %uint_0" ,
616+ " Expected int scalar or vector type as Result Type" ),
617+ BAD_KERNEL_OPERANDS (" %v = OpSpecConstantOp %uint IMul %uint_0 %float_0" ,
618+ " Expected int scalar or vector type as operand" ),
619+
620+ BAD_KERNEL_OPERANDS (
621+ " %v = OpSpecConstantOp %float SDiv %uint_0 %uint_0" ,
622+ " Expected int scalar or vector type as Result Type" ),
623+ BAD_KERNEL_OPERANDS (" %v = OpSpecConstantOp %uint SDiv %uint_0 %float_0" ,
624+ " Expected int scalar or vector type as operand" ),
625+
626+ BAD_KERNEL_OPERANDS (
627+ " %v = OpSpecConstantOp %float SRem %uint_0 %uint_0" ,
628+ " Expected int scalar or vector type as Result Type" ),
629+ BAD_KERNEL_OPERANDS (" %v = OpSpecConstantOp %uint SRem %uint_0 %float_0" ,
630+ " Expected int scalar or vector type as operand" ),
631+
632+ BAD_KERNEL_OPERANDS (
633+ " %v = OpSpecConstantOp %float SMod %uint_0 %uint_0" ,
634+ " Expected int scalar or vector type as Result Type" ),
635+ BAD_KERNEL_OPERANDS (" %v = OpSpecConstantOp %uint SMod %uint_0 %float_0" ,
636+ " Expected int scalar or vector type as operand" ),
637+
638+ BAD_KERNEL_OPERANDS (
639+ " %v = OpSpecConstantOp %float SNegate %uint_0" ,
640+ " Expected int scalar or vector type as Result Type" ),
641+ BAD_KERNEL_OPERANDS (" %v = OpSpecConstantOp %uint SNegate %float_0" ,
642+ " Expected int scalar or vector type as operand" ),
643+
644+ BAD_KERNEL_OPERANDS (
645+ " %v = OpSpecConstantOp %uint FAdd %float_0 %float_0" ,
646+ " Expected floating scalar or vector type as Result Type" ),
647+ BAD_KERNEL_OPERANDS (
648+ " %v = OpSpecConstantOp %float FAdd %float_0 %uint_0" ,
649+ " Expected arithmetic operands to be of Result Type" ),
650+ BAD_KERNEL_OPERANDS (
651+ " %v = OpSpecConstantOp %uint FSub %float_0 %float_0" ,
652+ " Expected floating scalar or vector type as Result Type" ),
653+ BAD_KERNEL_OPERANDS (
654+ " %v = OpSpecConstantOp %float FSub %float_0 %uint_0" ,
655+ " Expected arithmetic operands to be of Result Type" ),
656+ BAD_KERNEL_OPERANDS (
657+ " %v = OpSpecConstantOp %uint FMul %float_0 %float_0" ,
658+ " Expected floating scalar or vector type as Result Type" ),
659+ BAD_KERNEL_OPERANDS (
660+ " %v = OpSpecConstantOp %float FMul %float_0 %uint_0" ,
661+ " Expected arithmetic operands to be of Result Type" ),
662+ BAD_KERNEL_OPERANDS (
663+ " %v = OpSpecConstantOp %uint FDiv %float_0 %float_0" ,
664+ " Expected floating scalar or vector type as Result Type" ),
665+ BAD_KERNEL_OPERANDS (
666+ " %v = OpSpecConstantOp %float FDiv %float_0 %uint_0" ,
667+ " Expected arithmetic operands to be of Result Type" ),
668+ BAD_KERNEL_OPERANDS (
669+ " %v = OpSpecConstantOp %uint FRem %float_0 %float_0" ,
670+ " Expected floating scalar or vector type as Result Type" ),
671+ BAD_KERNEL_OPERANDS (
672+ " %v = OpSpecConstantOp %float FRem %float_0 %uint_0" ,
673+ " Expected arithmetic operands to be of Result Type" ),
674+ BAD_KERNEL_OPERANDS (
675+ " %v = OpSpecConstantOp %uint FMod %float_0 %float_0" ,
676+ " Expected floating scalar or vector type as Result Type" ),
677+ BAD_KERNEL_OPERANDS (
678+ " %v = OpSpecConstantOp %float FMod %float_0 %uint_0" ,
679+ " Expected arithmetic operands to be of Result Type" ),
680+
681+ BAD_KERNEL_OPERANDS (
682+ " %v = OpSpecConstantOp %float ShiftRightLogical %uint_0 %uint_0" ,
683+ " Expected int scalar or vector type as Result Type" ),
684+ BAD_KERNEL_OPERANDS (
685+ " %v = OpSpecConstantOp %uint ShiftRightLogical %uint_0 %float_0" ,
686+ " Expected Shift to be int scalar or vector" ),
687+ BAD_KERNEL_OPERANDS (
688+ " %v = OpSpecConstantOp %float ShiftRightArithmetic %uint_0 %uint_0" ,
689+ " Expected int scalar or vector type as Result Type" ),
690+ BAD_KERNEL_OPERANDS (
691+ " %v = OpSpecConstantOp %uint ShiftRightArithmetic %uint_0 %float_0" ,
692+ " Expected Shift to be int scalar or vector" ),
693+ BAD_KERNEL_OPERANDS (
694+ " %v = OpSpecConstantOp %float ShiftLeftLogical %uint_0 %uint_0" ,
695+ " Expected int scalar or vector type as Result Type" ),
696+ BAD_KERNEL_OPERANDS (
697+ " %v = OpSpecConstantOp %uint ShiftLeftLogical %uint_0 %float_0" ,
698+ " Expected Shift to be int scalar or vector" ),
699+
700+ BAD_KERNEL_OPERANDS (
701+ " %v = OpSpecConstantOp %float BitwiseOr %uint_0 %uint_0" ,
702+ " Expected int scalar or vector type as Result Type" ),
703+ BAD_KERNEL_OPERANDS (
704+ " %v = OpSpecConstantOp %uint BitwiseOr %uint_0 %float_0" ,
705+ " Expected int scalar or vector as operand" ),
706+ BAD_KERNEL_OPERANDS (
707+ " %v = OpSpecConstantOp %float BitwiseXor %uint_0 %uint_0" ,
708+ " Expected int scalar or vector type as Result Type" ),
709+ BAD_KERNEL_OPERANDS (
710+ " %v = OpSpecConstantOp %uint BitwiseXor %uint_0 %float_0" ,
711+ " Expected int scalar or vector as operand" ),
712+ BAD_KERNEL_OPERANDS (
713+ " %v = OpSpecConstantOp %float BitwiseAnd %uint_0 %uint_0" ,
714+ " Expected int scalar or vector type as Result Type" ),
715+ BAD_KERNEL_OPERANDS (
716+ " %v = OpSpecConstantOp %uint BitwiseAnd %uint_0 %float_0" ,
717+ " Expected int scalar or vector as operand" ),
718+ BAD_KERNEL_OPERANDS (
719+ " %v = OpSpecConstantOp %float Not %uint_0" ,
720+ " Expected int scalar or vector type as Result Type" ),
721+ BAD_KERNEL_OPERANDS (" %v = OpSpecConstantOp %uint Not %float_0" ,
722+ " Expected int scalar or vector as operand" ),
587723 }));
588724
589725} // namespace
0 commit comments