summaryrefslogtreecommitdiffstats
path: root/vec_builtin.h
diff options
context:
space:
mode:
Diffstat (limited to 'vec_builtin.h')
-rw-r--r--vec_builtin.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/vec_builtin.h b/vec_builtin.h
index 2f1ff90..e810ddd 100644
--- a/vec_builtin.h
+++ b/vec_builtin.h
@@ -296,7 +296,10 @@ template <typename T, int N> struct realbuiltinvec : floatprops<T> {
return name_.c_str();
}
#endif
- void barrier() { volatile vector_t x __attribute__((__unused__)) = v; }
+ void barrier() {
+ volatile vector_t x = v;
+ v = x;
+ }
typedef boolbuiltinvec<real_t, size> boolvec_t;
typedef intbuiltinvec<real_t, size> intvec_t;
OpenPOWER on IntegriCloud