char *test_myHash_big(const char **_ja_name) {
  char word[1024];
  int i;
  for (i = 0; i < 100; i++) {
    word[4 * i + 0] = 'f';
    word[4 * i + 1] = 'i';
    word[4 * i + 2] = 's';
    word[4 * i + 3] = 'h';
  }
  word[4 * i] = '\0';
  do {
    *_ja_name = __func__;
    if (!(myHash(word) == 400))
      return "myHash(word) == 400";
  } while (0);
  return 0;
}


x86 assembly (clang, -O0):
<test_myHash_big>:
push   %rbp
mov    %rsp,%rbp
sub    $0x420,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x414(%rbp)
cmpl   $0x64,-0x414(%rbp)
jge    11a2 <test_myHash_big+0x92>
mov    -0x414(%rbp),%eax
shl    $0x2,%eax
add    $0x0,%eax
cltq
movb   $0x66,-0x410(%rbp,%rax,1)
66
mov    -0x414(%rbp),%eax
shl    $0x2,%eax
add    $0x1,%eax
cltq
movb   $0x69,-0x410(%rbp,%rax,1)
69
mov    -0x414(%rbp),%eax
shl    $0x2,%eax
add    $0x2,%eax
cltq
movb   $0x73,-0x410(%rbp,%rax,1)
73
mov    -0x414(%rbp),%eax
shl    $0x2,%eax
add    $0x3,%eax
cltq
movb   $0x68,-0x410(%rbp,%rax,1)
68
mov    -0x414(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x414(%rbp)
jmp    1129 <test_myHash_big+0x19>
mov    -0x414(%rbp),%eax
shl    $0x2,%eax
cltq
movb   $0x0,-0x410(%rbp,%rax,1)
mov    -0x10(%rbp),%rax
lea    0xe40(%rip),%rcx
mov    %rcx,(%rax)
lea    -0x410(%rbp),%rdi
mov    $0x0,%al
call   1030 <myHash@plt>
cmp    $0x190,%eax
je     11ec <test_myHash_big+0xdc>
lea    0xe2d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11f9 <test_myHash_big+0xe9>
jmp    11f1 <test_myHash_big+0xe1>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_myHash_big>:
push   %rbx
sub    $0x400,%rsp
xor    %eax,%eax
movabs $0x6873696668736966,%rcx
69 73 68
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rcx,(%rsp,%rax,4)
add    $0x2,%rax
cmp    $0x64,%rax
jne    1130 <test_myHash_big+0x20>
movb   $0x0,0x190(%rsp)
lea    0xeb3(%rip),%rax
mov    %rax,(%rdi)
xor    %ebx,%ebx
mov    %rsp,%rdi
xor    %eax,%eax
call   1030 <myHash@plt>
cmp    $0x190,%eax
lea    0xea8(%rip),%rax
cmovne %rax,%rbx
mov    %rbx,%rax
add    $0x400,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__func__.test_myHash_big = [16 x i8] c"test_myHash_big\00"
@.str = [20 x i8] c"myHash(word) == 400\00"
define i8* @test_myHash_big(i8** %0) {
%2 = alloca i8*
%3 = alloca i8**
%4 = alloca [1024 x i8]
%5 = alloca i32
store i8** %0, i8*** %3
store i32 0, i32* %5
br label %6
6: ; preds = %30, %1
%7 = load i32, i32* %5
%8 = icmp slt i32 %7, 100
br i1 %8, label %9, label %33
9: ; preds = %6
%10 = load i32, i32* %5
%11 = mul nsw i32 4, %10
%12 = add nsw i32 %11, 0
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 %13
store i8 102, i8* %14
%15 = load i32, i32* %5
%16 = mul nsw i32 4, %15
%17 = add nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 %18
store i8 105, i8* %19
%20 = load i32, i32* %5
%21 = mul nsw i32 4, %20
%22 = add nsw i32 %21, 2
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 %23
store i8 115, i8* %24
%25 = load i32, i32* %5
%26 = mul nsw i32 4, %25
%27 = add nsw i32 %26, 3
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 %28
store i8 104, i8* %29
br label %30
30: ; preds = %9
%31 = load i32, i32* %5
%32 = add nsw i32 %31, 1
store i32 %32, i32* %5
br label %6
33: ; preds = %6
%34 = load i32, i32* %5
%35 = mul nsw i32 4, %34
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 %36
store i8 0, i8* %37
br label %38
38: ; preds = %33
%39 = load i8**, i8*** %3
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @__func__.test_myHash_big, i64 0, i64 0), i8** %39
%40 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%41 = call i32 (i8*, ...) bitcast (i32 (...)* @myHash to i32 (i8*, ...)*)(i8* %40)
%42 = icmp eq i32 %41, 400
br i1 %42, label %44, label %43
43: ; preds = %38
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8** %2
br label %46
44: ; preds = %38
br label %45
45: ; preds = %44
store i8* null, i8** %2
br label %46
46: ; preds = %45, %43
%47 = load i8*, i8** %2
ret i8* %47
}

LLVM IR (-O2):
@__func__.test_myHash_big = [16 x i8] c"test_myHash_big\00"
@.str = [20 x i8] c"myHash(word) == 400\00"
define i8* @test_myHash_big(i8** nocapture writeonly %0) {
%2 = alloca [1024 x i8]
%3 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 0
br label %4
4: ; preds = %4, %1
%5 = phi i64 [ 0, %1 ], [ %23, %4 ]
%6 = shl nuw nsw i64 %5, 2
%7 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 %6
store i8 102, i8* %7
%8 = or i64 %6, 1
%9 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 %8
store i8 105, i8* %9
%10 = or i64 %6, 2
%11 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 %10
store i8 115, i8* %11
%12 = or i64 %6, 3
%13 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 %12
store i8 104, i8* %13
%14 = shl i64 %5, 2
%15 = or i64 %14, 4
%16 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 %15
store i8 102, i8* %16
%17 = or i64 %14, 5
%18 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 %17
store i8 105, i8* %18
%19 = or i64 %14, 6
%20 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 %19
store i8 115, i8* %20
%21 = or i64 %14, 7
%22 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 %21
store i8 104, i8* %22
%23 = add nuw nsw i64 %5, 2
%24 = icmp eq i64 %23, 100
br i1 %24, label %25, label %4
25: ; preds = %4
%26 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 400
store i8 0, i8* %26
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @__func__.test_myHash_big, i64 0, i64 0), i8** %0
%27 = call i32 (i8*, ...) bitcast (i32 (...)* @myHash to i32 (i8*, ...)*)(i8* %3)
%28 = icmp eq i32 %27, 400
%29 = select i1 %28, i8* null, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0)
ret i8* %29
}