It's the naive branching version (probably for platform independence?), but my installed GCC 4.9.3 does convert it to branchless cdq/xor trick on both -O3 and -O0.
Last time I looked the "naive"[1] version of fizzbuzz, when compiled with GCC or Clang, was converted to a branchless version (for x86 at least). I don't remember what -O level was needed thou.
It's the naive branching version (probably for platform independence?), but my installed GCC 4.9.3 does convert it to branchless cdq/xor trick on both -O3 and -O0.