Skip to content
Browse files

test

  • Loading branch information...
1 parent 5dbcaab commit c24e2e41943f1a2968ac686d0d164fb6585d754f @kripken committed Dec 24, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 tests/runner.py
View
5 tests/runner.py
@@ -1163,6 +1163,7 @@ def test_llvm_intrinsics(self):
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 @@ def test_llvm_intrinsics(self):
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 @@ def test_llvm_intrinsics(self):
8a,15,de,c5
c5,de,15,8a
23,21
+13
''')
def test_sha1(self):

0 comments on commit c24e2e4

Please sign in to comment.
Something went wrong with that request. Please try again.