fix exception strings. (#39491)
authorManish Godse <61718172+mangod9@users.noreply.github.com>
Fri, 17 Jul 2020 01:18:35 +0000 (18:18 -0700)
committerGitHub <noreply@github.com>
Fri, 17 Jul 2020 01:18:35 +0000 (18:18 -0700)
src/coreclr/src/gc/vxsort/smallsort/codegen/avx2.py
src/coreclr/src/gc/vxsort/smallsort/codegen/avx512.py

index 11ab818..5f941d3 100644 (file)
@@ -54,7 +54,7 @@ class AVX2BitonicISA(BitonicISA):
     def i2s(self, v):
         t = self.type
         if t == "double":
-            raise Exception("WTF")
+            raise Exception("Incorrect Type")
         elif t == "float":
             return f"i2s({v})"
         return v
@@ -70,7 +70,7 @@ class AVX2BitonicISA(BitonicISA):
     def s2i(self, v):
         t = self.type
         if t == "double":
-            raise Exception("WTF")
+            raise Exception("Incorrect Type")
         elif t == "float":
             return f"s2i({v})"
         return v
@@ -137,14 +137,14 @@ class AVX2BitonicISA(BitonicISA):
             else:
                 return self.i2s(f"_mm256_blend_epi32({self.s2i(v2)}, {self.s2i(v1)}, 0xF0)")
         elif size == 4:
-            raise Exception("WTF")
+            raise Exception("Incorrect Size")
 
     def generate_cross(self, v):
         size = self.vector_size()
         if size == 8:
             return self.d2i(f"_mm256_permute4x64_pd({self.i2d(v)}, 0x4E)")
         elif size == 4:
-            raise Exception("WTF")
+            raise Exception("Incorrect Size")
 
     def generate_reverse(self, v):
         size = self.vector_size()
index f90433c..f08fda8 100644 (file)
@@ -48,13 +48,13 @@ class AVX512BitonicISA(BitonicISA):
         if t == "double":
             return v
         elif t == "float":
-            raise Exception("WTF")
+            raise Exception("Incorrect Type")
         return f"i2d({v})"
 
     def i2s(self, v):
         t = self.type
         if t == "double":
-            raise Exception("WTF")
+            raise Exception("Incorrect Type")
         elif t == "float":
             return f"i2s({v})"
         return v
@@ -64,13 +64,13 @@ class AVX512BitonicISA(BitonicISA):
         if t == "double":
             return v
         elif t == "float":
-            raise Exception("WTF")
+            raise Exception("Incorrect Type")
         return f"d2i({v})"
 
     def s2i(self, v):
         t = self.type
         if t == "double":
-            raise Exception("WTF")
+            raise Exception("Incorrect Type")
         elif t == "float":
             return f"s2i({v})"
         return v