Fix a bug in the LLVM bswap builtin.

Also adds tests for the new builtins.