@@ -727,12 +727,19 @@ foreach rnd = ["", "_rte", "_rtn", "_rtp", "_rtz"] in {
727
727
}
728
728
}
729
729
730
+ <<<<<<< HEAD
730
731
foreach IType = TLSignedInts.List in {
731
732
foreach FType = TLFloat.List in {
732
733
foreach sat = ["", "_sat"] in {
733
734
def : SPVBuiltin<"ConvertFToS_R" # IType.Name # sat # rnd, [IType, FType], Attr.Const>;
734
735
}
735
736
def : SPVBuiltin<"ConvertSToF_R" # FType.Name # rnd, [FType, IType], Attr.Const>;
737
+ =======
738
+ foreach InType = TLAll.List in {
739
+ foreach OutType = TLUnsignedInts.List in {
740
+ if !ne(OutType.ElementSize, InType.ElementSize) then {
741
+ def : SPVBuiltin<"UConvert_R" # OutType.Name, [OutType, InType], Attr.Const>;
742
+ >>>>>>> Builtins fix
736
743
foreach v = [2, 3, 4, 8, 16] in {
737
744
foreach sat = ["", "_sat"] in {
738
745
def : SPVBuiltin<"ConvertFToS_R" # IType.Name # v # sat # rnd,
@@ -745,6 +752,7 @@ foreach rnd = ["", "_rte", "_rtn", "_rtp", "_rtz"] in {
745
752
}
746
753
}
747
754
}
755
+ <<<<<<< HEAD
748
756
749
757
foreach InType = TLFloat.List in {
750
758
foreach OutType = TLFloat.List in {
@@ -755,6 +763,15 @@ foreach rnd = ["", "_rte", "_rtn", "_rtp", "_rtz"] in {
755
763
[VectorType<OutType, v>, VectorType<InType, v>],
756
764
Attr.Const>;
757
765
}
766
+ =======
767
+ foreach OutType = TLSignedInts.List in {
768
+ if !ne(OutType.ElementSize, InType.ElementSize) then {
769
+ def : SPVBuiltin<"SConvert_R" # OutType.Name, [OutType, InType], Attr.Const>;
770
+ foreach v = [2, 3, 4, 8, 16] in {
771
+ def : SPVBuiltin<"SConvert_R" # OutType.Name # v,
772
+ [VectorType<OutType, v>, VectorType<InType, v>],
773
+ Attr.Const>;
774
+ >>>>>>> Builtins fix
758
775
}
759
776
}
760
777
}
0 commit comments