identified issue with __movmsk.

This commit is contained in:
Evghenii
2014-01-23 10:45:10 +01:00
parent 2e7609156a
commit e87e332d2f
2 changed files with 14 additions and 41 deletions

View File

@@ -722,9 +722,16 @@ svml_stubs(double,d,WIDTH)
define i64 @__movmsk(<1 x i1>) nounwind readnone alwaysinline {
%v = extractelement <1 x i1> %0, i32 0
%call = call i32 @__ballot_nvptx(i1 zeroext %v)
%v64 = zext i32 %call to i64
ret i64 %v64
;; 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
}
define i1 @__any(<1 x i1>) nounwind readnone alwaysinline {