[Git][ghc/ghc][wip/mp-9.2.5-backports] Fix core lint errors to do with SIMD vector indexing in T22187_run.

Zubin (@wz1000) gitlab at gitlab.haskell.org
Thu Nov 3 11:48:44 UTC 2022



Zubin pushed to branch wip/mp-9.2.5-backports at Glasgow Haskell Compiler / GHC


Commits:
c35d3f80 by Zubin Duggal at 2022-11-03T17:15:22+05:30
Fix core lint errors to do with SIMD vector indexing in T22187_run.

This patch was originally from 6d7d91817795d7ee7f45557411368a1738daa488,
but all the changes in that commit can't make it because we don't want to
change the interface of primops in a backport.

- - - - -


1 changed file:

- compiler/GHC/Cmm/MachOp.hs


Changes:

=====================================
compiler/GHC/Cmm/MachOp.hs
=====================================
@@ -515,8 +515,8 @@ machOpArgReps platform op =
     MO_FS_Conv from _   -> [from]
     MO_FF_Conv from _   -> [from]
 
-    MO_V_Insert  l r    -> [typeWidth (vec l (cmmBits r)),r,wordWidth platform]
-    MO_V_Extract l r    -> [typeWidth (vec l (cmmBits r)),wordWidth platform]
+    MO_V_Insert   l r   -> [typeWidth (vec l (cmmBits r)),r, W32]
+    MO_V_Extract  l r   -> [typeWidth (vec l (cmmBits r)), W32]
 
     MO_V_Add _ r        -> [r,r]
     MO_V_Sub _ r        -> [r,r]
@@ -529,8 +529,8 @@ machOpArgReps platform op =
     MO_VU_Quot _ r      -> [r,r]
     MO_VU_Rem  _ r      -> [r,r]
 
-    MO_VF_Insert  l r   -> [typeWidth (vec l (cmmFloat r)),r,wordWidth platform]
-    MO_VF_Extract l r   -> [typeWidth (vec l (cmmFloat r)),wordWidth platform]
+    MO_VF_Insert  l r   -> [typeWidth (vec l (cmmFloat r)),r,W32]
+    MO_VF_Extract l r   -> [typeWidth (vec l (cmmFloat r)),W32]
 
     MO_VF_Add  _ r      -> [r,r]
     MO_VF_Sub  _ r      -> [r,r]



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c35d3f805da2f70cf76fca1d76d984c7a428f42b

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c35d3f805da2f70cf76fca1d76d984c7a428f42b
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20221103/66b0936b/attachment-0001.html>


More information about the ghc-commits mailing list