]> git.lizzy.rs Git - rust.git/commitdiff
Add support for Vector 2 Raised to the Exponent 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:27 +0000 (13:33 +0000)
src/etc/platform-intrinsics/powerpc.json
src/librustc_platform_intrinsics/powerpc.rs

index 3ebaf0f7f6db54ca0a524673f50565aeeaa4b0c4..cd0e27a238eb625b4e41665038f2ab5ff8e007f7 100644 (file)
             "llvm": "vmaddfp",
             "ret": "f32",
             "args": ["0", "0", "0"]
+        },
+        {
+            "intrinsic": "expte",
+            "width": [128],
+            "llvm": "vexptefp",
+            "ret": "f32",
+            "args": ["0"]
         }
     ]
 }
index 4aee1146a2f3e84d999b3dc9f49030ad251ebe2a..86df9780c7a4a3cb38f5d28780cab691254dd178 100644 (file)
@@ -402,6 +402,11 @@ pub fn find(name: &str) -> Option<Intrinsic> {
             output: &::F32x4,
             definition: Named("llvm.ppc.altivec.vmaddfp")
         },
+        "_vec_expte" => Intrinsic {
+            inputs: { static INPUTS: [&'static Type; 1] = [&::F32x4]; &INPUTS },
+            output: &::F32x4,
+            definition: Named("llvm.ppc.altivec.vexptefp")
+        },
         _ => return None,
     })
 }