aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-24 16:05:23 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-24 16:05:23 -0800
commitc24e2e41943f1a2968ac686d0d164fb6585d754f (patch)
tree63a6b6047a00cec197fc3d0268b3b5ea0a5ba45d
parent5dbcaabf71b885926a105db3ab725d4bd76c8f41 (diff)
test
-rwxr-xr-xtests/runner.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index a1307acd..6f1eed48 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -1163,6 +1163,7 @@ m_divisor is 1091269979
extern unsigned int llvm_bswap_i32(unsigned int x);
extern int32_t llvm_ctlz_i32(int32_t x);
extern int64_t llvm_ctlz_i64(int64_t x);
+ extern int llvm_expect_i32(int x, int y);
}
int main(void) {
@@ -1177,6 +1178,9 @@ m_divisor is 1091269979
printf("%x,%x,%x,%x\n", y&0xff, (y>>8)&0xff, (y>>16)&0xff, (y>>24)&0xff);
printf("%d,%d\n", (int)llvm_ctlz_i64(((int64_t)1) << 40), llvm_ctlz_i32(1<<10));
+
+ printf("%d\n", llvm_expect_i32(x % 27, 3));
+
return 0;
}
'''
@@ -1185,6 +1189,7 @@ c8,ef
8a,15,de,c5
c5,de,15,8a
23,21
+13
''')
def test_sha1(self):