Lines Matching refs:operands

301       assert(ir->operands[i] == NULL);
305 assert(ir->operands[i] != NULL);
310 assert(ir->operands[0]->type == ir->type);
314 assert(ir->operands[0]->type->is_boolean());
318 assert(ir->type == ir->operands[0]->type);
323 assert(ir->operands[0]->type->is_int_16_32_64() ||
324 ir->operands[0]->type->is_float_16_32_64());
325 assert(ir->type == ir->operands[0]->type);
332 assert(ir->type == ir->operands[0]->type);
340 assert(ir->operands[0]->type->is_float_16_32());
341 assert(ir->type == ir->operands[0]->type);
345 assert(ir->operands[0]->type->is_float_16_32());
349 assert(ir->operands[0]->type->is_float_16_32());
353 assert(ir->operands[0]->type->is_int_16_32());
357 assert(ir->operands[0]->type->is_float_16_32());
361 assert(ir->operands[0]->type->base_type ==
366 assert(ir->operands[0]->type->is_boolean());
370 assert(ir->operands[0]->type->is_boolean());
374 assert(ir->operands[0]->type->is_int_16_32());
378 assert(ir->operands[0]->type->is_boolean());
382 assert(ir->operands[0]->type->is_uint_16_32());
386 assert(ir->operands[0]->type->is_int_16_32());
390 assert(ir->operands[0]->type->is_uint_16_32());
394 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT);
398 assert(ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT);
402 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT);
406 assert(ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT);
411 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT64);
415 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT64);
419 assert(ir->operands[0]->type->is_double());
423 assert(ir->operands[0]->type->is_double());
427 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT64);
431 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT64);
435 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT64);
439 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT64);
443 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT64);
447 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT64);
451 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT64);
455 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT64);
459 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT64);
463 assert(ir->operands[0]->type->is_int_16_32());
467 assert(ir->operands[0]->type->is_uint_16_32());
471 assert(ir->operands[0]->type->is_boolean());
475 assert(ir->operands[0]->type->is_float());
479 assert(ir->operands[0]->type->is_double());
483 assert(ir->operands[0]->type->is_int_16_32());
487 assert(ir->operands[0]->type->is_uint_16_32());
491 assert(ir->operands[0]->type->is_float());
495 assert(ir->operands[0]->type->is_double());
499 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT64);
503 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT64);
511 assert(ir->operands[0]->type->is_float_16_32_64());
512 assert(ir->operands[0]->type == ir->type);
522 assert(ir->operands[0]->type->is_float_16_32());
523 assert(ir->operands[0]->type == ir->type);
530 assert(ir->operands[0]->type == glsl_type::vec2_type);
536 assert(ir->operands[0]->type == glsl_type::vec4_type);
541 assert(ir->operands[0]->type == glsl_type::uvec2_type);
546 assert(ir->operands[0]->type == glsl_type::ivec2_type);
551 assert(ir->operands[0]->type == glsl_type::uvec2_type);
556 assert(ir->operands[0]->type == glsl_type::uvec2_type);
561 assert(ir->operands[0]->type == glsl_type::uvec2_type);
568 assert(ir->operands[0]->type == glsl_type::uint_type);
574 assert(ir->operands[0]->type == glsl_type::uint_type);
579 assert(ir->operands[0]->type == glsl_type::double_type);
584 assert(ir->operands[0]->type == glsl_type::int64_t_type);
589 assert(ir->operands[0]->type == glsl_type::uint64_t_type);
594 assert(ir->operands[0]->type->is_sampler());
599 assert(ir->operands[0]->type->is_image());
603 assert(ir->operands[0]->type == ir->type);
610 assert(ir->operands[0]->type->vector_elements == ir->type->vector_elements);
611 assert(ir->operands[0]->type->is_integer_16_32());
616 assert(ir->operands[0]->type == ir->type);
621 assert(ir->operands[0]->type == ir->type);
622 assert(ir->operands[0]->type->is_float_16_32());
627 assert(ir->operands[0]->type == glsl_type::uint_type);
632 assert(ir->operands[0]->type->is_array());
633 assert(ir->operands[0]->type->is_unsized_array());
638 assert(ir->operands[0]->type->is_array());
642 assert(ir->operands[0]->type->is_double());
646 assert(ir->operands[0]->type->is_float());
650 assert(ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT16);
655 assert(ir->operands[0]->type->is_float());
659 assert(ir->operands[0]->type->is_int_16_32());
661 assert(ir->type->base_type != ir->operands[0]->type->base_type);
664 assert(ir->operands[0]->type->is_uint_16_32());
666 assert(ir->type->base_type != ir->operands[0]->type->base_type);
669 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT);
673 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT);
677 assert(ir->operands[0]->type->is_double());
681 assert(ir->operands[0]->type->is_int_16_32());
685 assert(ir->operands[0]->type->is_double());
689 assert(ir->operands[0]->type->is_uint_16_32());
693 assert(ir->operands[0]->type->is_double());
698 assert(ir->operands[0]->type->is_float_32_64());
702 assert(ir->operands[0]->type->is_float_32_64());
706 assert(ir->operands[0]->type->base_type == GLSL_TYPE_SUBROUTINE);
711 assert(ir->operands[0]->type->is_float_16_32_64());
712 assert(ir->type == ir->operands[0]->type);
723 assert(ir->operands[0]->type->base_type ==
724 ir->operands[1]->type->base_type);
729 (ir->operands[0]->type->is_int_16_32()||
730 ir->operands[1]->type->is_int_16_32()||
731 ir->operands[0]->type->is_uint_16_32() ||
732 ir->operands[1]->type->is_uint_16_32())) {
733 assert(ir->operands[0]->type == ir->operands[1]->type);
737 if (ir->operands[0]->type->is_scalar())
738 assert(ir->operands[1]->type == ir->type);
739 else if (ir->operands[1]->type->is_scalar())
740 assert(ir->operands[0]->type == ir->type);
741 else if (ir->operands[0]->type->is_vector() &&
742 ir->operands[1]->type->is_vector()) {
743 assert(ir->operands[0]->type == ir->operands[1]->type);
744 assert(ir->operands[0]->type == ir->type);
749 assert(ir->operands[0]->type == ir->operands[1]->type);
750 assert(ir->operands[0]->type->is_integer_16_32_64());
751 assert(ir->operands[0]->type->vector_elements ==
760 assert(ir->type == ir->operands[0]->type);
761 assert(ir->type == ir->operands[1]->type);
767 assert(ir->type == ir->operands[0]->type);
768 assert(ir->type == ir->operands[1]->type);
774 assert(ir->type == ir->operands[0]->type);
775 assert(ir->type == ir->operands[1]->type);
789 assert(ir->operands[0]->type == ir->operands[1]->type);
790 assert(ir->operands[0]->type->is_vector()
791 || ir->operands[0]->type->is_scalar());
792 assert(ir->operands[0]->type->vector_elements
802 assert(ir->operands[0]->type == ir->operands[1]->type);
807 assert(ir->operands[0]->type->is_integer_16_32_64() &&
808 ir->operands[1]->type->is_integer_16_32());
809 if (ir->operands[0]->type->is_scalar()) {
810 assert(ir->operands[1]->type->is_scalar());
812 if (ir->operands[0]->type->is_vector() &&
813 ir->operands[1]->type->is_vector()) {
814 assert(ir->operands[0]->type->components() ==
815 ir->operands[1]->type->components());
817 assert(ir->type == ir->operands[0]->type);
823 assert(ir->operands[0]->type->base_type ==
824 ir->operands[1]->type->base_type);
826 if (ir->operands[0]->type->is_vector() &&
827 ir->operands[1]->type->is_vector()) {
828 assert(ir->operands[0]->type->vector_elements ==
829 ir->operands[1]->type->vector_elements);
837 assert(ir->operands[0]->type->is_boolean());
838 assert(ir->operands[1]->type->is_boolean());
845 assert(ir->operands[0]->type->is_float_16_32_64());
846 assert(ir->operands[0]->type->is_vector());
847 assert(ir->operands[0]->type == ir->operands[1]->type);
851 assert(ir->operands[0]->type == glsl_type::uint_type);
853 assert(ir->operands[1]->type == glsl_type::uint_type);
857 assert(ir->operands[0]->type == ir->type);
858 assert(ir->operands[0]->type->is_float_32_64());
859 assert(ir->operands[1]->type->base_type == GLSL_TYPE_INT);
860 assert(ir->operands[0]->type->components() ==
861 ir->operands[1]->type->components());
865 assert(ir->operands[0]->type->is_vector());
866 assert(ir->operands[1]->type->is_scalar()
867 && ir->operands[1]->type->is_integer_16_32());
871 assert(ir->operands[0]->type == ir->type);
872 assert(ir->operands[0]->type->is_float_16_32());
873 assert(ir->operands[1]->type->components() == 2);
874 assert(ir->operands[1]->type->is_float_16_32());
878 assert(ir->operands[0]->type == ir->type);
879 assert(ir->operands[0]->type->is_float_16_32());
880 assert(ir->operands[1]->type == glsl_type::int_type ||
881 ir->operands[1]->type == glsl_type::int16_t_type);
885 assert(ir->operands[0]->type->is_float_16_32_64());
886 assert(ir->operands[1]->type == ir->operands[0]->type);
887 assert(ir->type == ir->operands[0]->type);
892 assert(ir->type == ir->operands[0]->type);
893 assert(ir->type == ir->operands[1]->type);
894 assert(ir->type == ir->operands[2]->type);
898 assert(ir->operands[0]->type->is_float_16_32_64());
899 assert(ir->operands[0]->type == ir->operands[1]->type);
900 assert(ir->operands[2]->type == ir->operands[0]->type ||
901 ir->operands[2]->type == glsl_type::float_type ||
902 ir->operands[2]->type == glsl_type::double_type ||
903 ir->operands[2]->type == glsl_type::float16_t_type);
907 assert(ir->operands[0]->type->is_boolean());
908 assert(ir->type->vector_elements == ir->operands[0]->type->vector_elements);
909 assert(ir->type == ir->operands[1]->type);
910 assert(ir->type == ir->operands[2]->type);
915 assert(ir->operands[0]->type == ir->type);
916 assert(ir->operands[1]->type == ir->type);
917 assert(ir->operands[2]->type == ir->type);
921 assert(ir->operands[0]->type->is_vector());
922 assert(ir->operands[1]->type->is_scalar());
923 assert(ir->operands[0]->type->base_type == ir->operands[1]->type->base_type);
924 assert(ir->operands[2]->type->is_scalar()
925 && ir->operands[2]->type->is_integer_16_32());
926 assert(ir->type == ir->operands[0]->type);
931 assert(ir->operands[0]->type == ir->type);
932 assert(ir->operands[1]->type == ir->type);
933 assert(ir->operands[2]->type == ir->type);
934 assert(ir->operands[3]->type == ir->type);
941 * - All of the operands must be scalar.
942 * - Number of operands must matche the size of the resulting vector.
943 * - Base type of the operands must match the base type of the result.
947 assert(ir->operands[0]->type->is_scalar());
948 assert(ir->operands[0]->type->base_type == ir->type->base_type);
949 assert(ir->operands[1] == NULL);
950 assert(ir->operands[2] == NULL);
951 assert(ir->operands[3] == NULL);
954 assert(ir->operands[0]->type->is_scalar());
955 assert(ir->operands[0]->type->base_type == ir->type->base_type);
956 assert(ir->operands[1]->type->is_scalar());
957 assert(ir->operands[1]->type->base_type == ir->type->base_type);
958 assert(ir->operands[2] == NULL);
959 assert(ir->operands[3] == NULL);
962 assert(ir->operands[0]->type->is_scalar());
963 assert(ir->operands[0]->type->base_type == ir->type->base_type);
964 assert(ir->operands[1]->type->is_scalar());
965 assert(ir->operands[1]->type->base_type == ir->type->base_type);
966 assert(ir->operands[2]->type->is_scalar());
967 assert(ir->operands[2]->type->base_type == ir->type->base_type);
968 assert(ir->operands[3] == NULL);
971 assert(ir->operands[0]->type->is_scalar());
972 assert(ir->operands[0]->type->base_type == ir->type->base_type);
973 assert(ir->operands[1]->type->is_scalar());
974 assert(ir->operands[1]->type->base_type == ir->type->base_type);
975 assert(ir->operands[2]->type->is_scalar());
976 assert(ir->operands[2]->type->base_type == ir->type->base_type);
977 assert(ir->operands[3]->type->is_scalar());
978 assert(ir->operands[3]->type->base_type == ir->type->base_type);