]> granicus.if.org Git - clang/commitdiff
[AArch64] Refactor the NEON floating-point absolute difference LLVM AArch64
authorChad Rosier <mcrosier@codeaurora.org>
Tue, 10 Dec 2013 21:34:23 +0000 (21:34 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Tue, 10 Dec 2013 21:34:23 +0000 (21:34 +0000)
intrinsic to use f32/f64 types, rather than their vector equivalents.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196969 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGBuiltin.cpp

index 45b4b928ab811bb2bc7a1a844d08afc4b92d5ca3..66e0133f539f628be841f911660e8156a4a865df 100644 (file)
@@ -2361,7 +2361,7 @@ static Value *EmitAArch64ScalarBuiltinExpr(CodeGenFunction &CGF,
   case AArch64::BI__builtin_neon_vabds_f32:
   case AArch64::BI__builtin_neon_vabdd_f64:
     Int = Intrinsic::aarch64_neon_vabd;
-    s = "vabd"; IntTypes = VectorRet; break;
+    s = "vabd"; IntTypes = ScalarRet; break;
   // Scalar Signed Saturating Absolute Value
   case AArch64::BI__builtin_neon_vqabsb_s8:
   case AArch64::BI__builtin_neon_vqabsh_s16: