Add casts in arm_neon.h for result values in inline functions as well as macros.
authorBob Wilson <bob.wilson@apple.com>
Thu, 2 Dec 2010 01:18:15 +0000 (01:18 +0000)
committerBob Wilson <bob.wilson@apple.com>
Thu, 2 Dec 2010 01:18:15 +0000 (01:18 +0000)
We should not rely on lax-vector-conversions for these intrinsics to work.

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

utils/TableGen/NeonEmitter.cpp

index c57580da5730c6fc46d03b0c0794d39fdfc3fc0c..651802a0602876c580eb77e3ae506837a5751fca 100644 (file)
@@ -734,7 +734,7 @@ static std::string GenBuiltin(const std::string &name, const std::string &proto,
     } else if (sret) {
       s += ts + " r; ";
     } else {
-      s += ts + " r; r = ";
+      s += ts + " r; r = (" + ts + ")";
     }
   }