test/CodeGen/X86/red-zone.ll: Add explicit -mtriple=x86_64-linux.
[oota-llvm.git] / test / CodeGen / PowerPC / 2008-10-31-PPCF128Libcalls.ll
index 20683b9019e02e0ff5bc2ee5065000ba1acb619d..8322a84308150492e3fd06bbe20d3a2bf6fac111 100644 (file)
@@ -35,3 +35,10 @@ declare ppc_fp128 @"\01_sinl$LDBL128"(ppc_fp128) nounwind readonly
 declare ppc_fp128 @"\01_cosl$LDBL128"(ppc_fp128) nounwind readonly
 
 declare ppc_fp128 @llvm.pow.ppcf128(ppc_fp128, ppc_fp128) nounwind readonly
+
+declare ppc_fp128 @copysignl(ppc_fp128, ppc_fp128)
+
+define ppc_fp128 @cs(ppc_fp128 %from, ppc_fp128 %to) {
+  %tmp = call ppc_fp128 @copysignl(ppc_fp128 %from, ppc_fp128 %to)
+  ret ppc_fp128 %tmp
+}