summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/NeonEmitter.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-12-02 01:18:15 +0000
committerBob Wilson <bob.wilson@apple.com>2010-12-02 01:18:15 +0000
commita9ea9ef840d7dba39a8e7a3099b1bc486181512c (patch)
tree83525aa690d8e9737e1ac368420ecd6d794c4c0b /llvm/utils/TableGen/NeonEmitter.cpp
parent87b9114f496a6b8877973f73464e89b7428d33bb (diff)
downloadbcm5719-llvm-a9ea9ef840d7dba39a8e7a3099b1bc486181512c.tar.gz
bcm5719-llvm-a9ea9ef840d7dba39a8e7a3099b1bc486181512c.zip
Add casts in arm_neon.h for result values in inline functions as well as macros.
We should not rely on lax-vector-conversions for these intrinsics to work. llvm-svn: 120638
Diffstat (limited to 'llvm/utils/TableGen/NeonEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/NeonEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/NeonEmitter.cpp b/llvm/utils/TableGen/NeonEmitter.cpp
index c57580da573..651802a0602 100644
--- a/llvm/utils/TableGen/NeonEmitter.cpp
+++ b/llvm/utils/TableGen/NeonEmitter.cpp
@@ -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 + ")";
}
}
OpenPOWER on IntegriCloud