diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-17 20:21:32 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-17 20:21:32 -0800 |
commit | a2a0b540bc7b8dbdf91ae5e039c039a34dd56a7e (patch) | |
tree | e1881f3f891bcdbdeecc133b711c39f8669cad49 /tests/runner.py | |
parent | bea26f1a9e138163225da1c1c8bb7e94fe055f3f (diff) |
add test for bswap64
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 61503467..97efdbc5 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -1166,6 +1166,8 @@ m_divisor is 1091269979 def test_llvm_intrinsics(self): if self.emcc_args == None: return self.skip('needs ta2') + Settings.PRECISE_I64_MATH = 2 # for bswap64 + src = r''' #include <stdio.h> #include <sys/types.h> @@ -1193,6 +1195,10 @@ m_divisor is 1091269979 printf("%d\n", llvm_expect_i32(x % 27, 3)); + int64_t a = 1; + a = __builtin_bswap64(a); + printf("%lld\n", a); + return 0; } ''' @@ -1202,6 +1208,7 @@ c8,ef c5,de,15,8a 23,21 13 +72057594037927936 ''') def test_bswap64(self): |