Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does clang have an equivalent of GCC's -mno-vzeroupper flag?

Tags:

gcc

avx

clang

The title says it all! Does clang have an equivalent of GCC's -mno-vzeroupper flag? I use 3.5, perhaps it will be in 3.6 ?

like image 539
Gábor Buella Avatar asked Jan 18 '15 01:01

Gábor Buella


1 Answers

The following works for me: clang++ -mllvm -x86-use-vzeroupper=0

like image 161
Wenzel Jakob Avatar answered Nov 11 '22 08:11

Wenzel Jakob