fixed foreach_unique and local_atomics

This commit is contained in:
Evghenii
2014-01-23 21:57:20 +01:00
parent f0d3501dbd
commit 1cf1dab649
6 changed files with 41 additions and 22 deletions

View File

@@ -722,16 +722,14 @@ svml_stubs(double,d,WIDTH)
define i64 @__movmsk(<1 x i1>) nounwind readnone alwaysinline {
%v = extractelement <1 x i1> %0, i32 0
;; if 0
;; this one fails with ./tests/popcnt-4.ispc and others ...
;; %v0 = call i32 @__ballot_nvptx(i1 %v)
;; %v64 = zext i32 %v0 to i64
;; else
;; this one just copies mask
%v64 = zext i1 %v to i64
;; endif
ret i64 %v64
%v64 = zext i1 %v to i64
ret i64 %v64
}
define i64 @__movmsk_ptx(<1 x i1>) nounwind readnone alwaysinline {
%v = extractelement <1 x i1> %0, i32 0
%v0 = call i32 @__ballot_nvptx(i1 %v)
%v64 = zext i32 %v0 to i64
ret i64 %v64
}
define i1 @__any(<1 x i1>) nounwind readnone alwaysinline {