]> git.lizzy.rs Git - rust.git/commitdiff
Add support for Vector Reciprocal Estimate Float on PowerPC
authorLuca Barbato <lu_zero@gentoo.org>
Fri, 4 Aug 2017 00:19:58 +0000 (00:19 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 27 Sep 2017 13:33:31 +0000 (13:33 +0000)
src/etc/platform-intrinsics/powerpc.json
src/librustc_platform_intrinsics/powerpc.rs

index 49c9c3714fcad53a3c99e8de3276b96b7207e8b4..e8b1e5bda695f9e8bf385548f6e07329f0884db3 100644 (file)
             "llvm": "vlogefp",
             "ret": "f32",
             "args": ["0"]
+        },
+        {
+            "intrinsic": "re",
+            "width": [128],
+            "llvm": "vrefp",
+            "ret": "f32",
+            "args": ["0"]
         }
     ]
 }
index e336b45da80fc5ef48af45633ad56f40d988767a..7e0ceb8acc8fffbda68ebc6d81f87dd60a6e8085 100644 (file)
@@ -417,6 +417,11 @@ pub fn find(name: &str) -> Option<Intrinsic> {
             output: &::F32x4,
             definition: Named("llvm.ppc.altivec.vlogefp")
         },
+        "_vec_re" => Intrinsic {
+            inputs: { static INPUTS: [&'static Type; 1] = [&::F32x4]; &INPUTS },
+            output: &::F32x4,
+            definition: Named("llvm.ppc.altivec.vrefp")
+        },
         _ => return None,
     })
 }