#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ gen6_instdone1_bit(int, char *);
void init_gen7_instdone(void) {
  gen6_instdone1_bit(1 << 19, "Memory Arbiter (GAM)");
  gen6_instdone1_bit(1 << 18, "GAFM");
  gen6_instdone1_bit(1 << 17, "Thread Spawner (TSG)");
  gen6_instdone1_bit(1 << 16, "Video Front-End (VFE)");
  gen6_instdone1_bit(1 << 15, "GAFS");
  gen6_instdone1_bit(1 << 14, "SVG");
  gen6_instdone1_bit(1 << 13, "Uni. Ret. Buf. Mgr. (URBM)");
  gen6_instdone1_bit(1 << 12, "Thread Dispatcher (TDG)");
  gen6_instdone1_bit(1 << 9, "FF Strips & Fans (SF)");
  gen6_instdone1_bit(1 << 8, "FF Clip Unit (CL)");
  gen6_instdone1_bit(1 << 7, "FF Stream Output Logic (SOL)");
  gen6_instdone1_bit(1 << 6, "FF Geometry Shader (GS)");
  gen6_instdone1_bit(1 << 5, "FF Domain Shader (DS)");
  gen6_instdone1_bit(1 << 4, "FF Tessellation Engine (TE)");
  gen6_instdone1_bit(1 << 3, "FF Hull Shader (HS)");
  gen6_instdone1_bit(1 << 2, "FF Vertex Shader (VS)");
  gen6_instdone1_bit(1 << 1, "FF Vertex Fetch (VF)");
}


x86 assembly (clang, -O0):
<init_gen7_instdone>:
push   %rbp
mov    %rsp,%rbp
mov    $0x80000,%edi
lea    0xee0(%rip),%rsi
call   1030 <gen6_instdone1_bit@plt>
mov    $0x40000,%edi
lea    0xee4(%rip),%rsi
call   1030 <gen6_instdone1_bit@plt>
mov    $0x20000,%edi
lea    0xed8(%rip),%rsi
call   1030 <gen6_instdone1_bit@plt>
mov    $0x10000,%edi
lea    0xedc(%rip),%rsi
call   1030 <gen6_instdone1_bit@plt>
mov    $0x8000,%edi
lea    0xee1(%rip),%rsi
call   1030 <gen6_instdone1_bit@plt>
mov    $0x4000,%edi
lea    0xed5(%rip),%rsi
call   1030 <gen6_instdone1_bit@plt>
mov    $0x2000,%edi
lea    0xec8(%rip),%rsi
call   1030 <gen6_instdone1_bit@plt>
mov    $0x1000,%edi
lea    0xed2(%rip),%rsi
call   1030 <gen6_instdone1_bit@plt>
mov    $0x200,%edi
lea    0xed9(%rip),%rsi
call   1030 <gen6_instdone1_bit@plt>
mov    $0x100,%edi
lea    0xede(%rip),%rsi
call   1030 <gen6_instdone1_bit@plt>
mov    $0x80,%edi
lea    0xedf(%rip),%rsi
call   1030 <gen6_instdone1_bit@plt>
mov    $0x40,%edi
lea    0xeeb(%rip),%rsi
call   1030 <gen6_instdone1_bit@plt>
mov    $0x20,%edi
lea    0xef2(%rip),%rsi
call   1030 <gen6_instdone1_bit@plt>
mov    $0x10,%edi
lea    0xef7(%rip),%rsi
call   1030 <gen6_instdone1_bit@plt>
mov    $0x8,%edi
lea    0xf02(%rip),%rsi
call   1030 <gen6_instdone1_bit@plt>
mov    $0x4,%edi
lea    0xf05(%rip),%rsi
call   1030 <gen6_instdone1_bit@plt>
mov    $0x2,%edi
lea    0xf0a(%rip),%rsi
call   1030 <gen6_instdone1_bit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_gen7_instdone>:
push   %rax
lea    0xee8(%rip),%rsi
mov    $0x80000,%edi
call   1030 <gen6_instdone1_bit@plt>
lea    0xeec(%rip),%rsi
mov    $0x40000,%edi
call   1030 <gen6_instdone1_bit@plt>
lea    0xee0(%rip),%rsi
mov    $0x20000,%edi
call   1030 <gen6_instdone1_bit@plt>
lea    0xee4(%rip),%rsi
mov    $0x10000,%edi
call   1030 <gen6_instdone1_bit@plt>
lea    0xee9(%rip),%rsi
mov    $0x8000,%edi
call   1030 <gen6_instdone1_bit@plt>
lea    0xedd(%rip),%rsi
mov    $0x4000,%edi
call   1030 <gen6_instdone1_bit@plt>
lea    0xed0(%rip),%rsi
mov    $0x2000,%edi
call   1030 <gen6_instdone1_bit@plt>
lea    0xeda(%rip),%rsi
mov    $0x1000,%edi
call   1030 <gen6_instdone1_bit@plt>
lea    0xee1(%rip),%rsi
mov    $0x200,%edi
call   1030 <gen6_instdone1_bit@plt>
lea    0xee6(%rip),%rsi
mov    $0x100,%edi
call   1030 <gen6_instdone1_bit@plt>
lea    0xee7(%rip),%rsi
mov    $0x80,%edi
call   1030 <gen6_instdone1_bit@plt>
lea    0xef3(%rip),%rsi
mov    $0x40,%edi
call   1030 <gen6_instdone1_bit@plt>
lea    0xefa(%rip),%rsi
mov    $0x20,%edi
call   1030 <gen6_instdone1_bit@plt>
lea    0xeff(%rip),%rsi
mov    $0x10,%edi
call   1030 <gen6_instdone1_bit@plt>
lea    0xf0a(%rip),%rsi
mov    $0x8,%edi
call   1030 <gen6_instdone1_bit@plt>
lea    0xf0d(%rip),%rsi
mov    $0x4,%edi
call   1030 <gen6_instdone1_bit@plt>
lea    0xf12(%rip),%rsi
mov    $0x2,%edi
pop    %rax
jmp    1030 <gen6_instdone1_bit@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"Memory Arbiter (GAM)\00"
@.str.1 = [5 x i8] c"GAFM\00"
@.str.2 = [21 x i8] c"Thread Spawner (TSG)\00"
@.str.3 = [22 x i8] c"Video Front-End (VFE)\00"
@.str.4 = [5 x i8] c"GAFS\00"
@.str.5 = [4 x i8] c"SVG\00"
@.str.6 = [27 x i8] c"Uni. Ret. Buf. Mgr. (URBM)\00"
@.str.7 = [24 x i8] c"Thread Dispatcher (TDG)\00"
@.str.8 = [22 x i8] c"FF Strips & Fans (SF)\00"
@.str.9 = [18 x i8] c"FF Clip Unit (CL)\00"
@.str.10 = [29 x i8] c"FF Stream Output Logic (SOL)\00"
@.str.11 = [24 x i8] c"FF Geometry Shader (GS)\00"
@.str.12 = [22 x i8] c"FF Domain Shader (DS)\00"
@.str.13 = [28 x i8] c"FF Tessellation Engine (TE)\00"
@.str.14 = [20 x i8] c"FF Hull Shader (HS)\00"
@.str.15 = [22 x i8] c"FF Vertex Shader (VS)\00"
@.str.16 = [21 x i8] c"FF Vertex Fetch (VF)\00"
define void @init_gen7_instdone() {
%1 = call i32 @gen6_instdone1_bit(i32 524288, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @gen6_instdone1_bit(i32 262144, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @gen6_instdone1_bit(i32 131072, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @gen6_instdone1_bit(i32 65536, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @gen6_instdone1_bit(i32 32768, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @gen6_instdone1_bit(i32 16384, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @gen6_instdone1_bit(i32 8192, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @gen6_instdone1_bit(i32 4096, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @gen6_instdone1_bit(i32 512, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @gen6_instdone1_bit(i32 256, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @gen6_instdone1_bit(i32 128, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @gen6_instdone1_bit(i32 64, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @gen6_instdone1_bit(i32 32, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @gen6_instdone1_bit(i32 16, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @gen6_instdone1_bit(i32 8, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @gen6_instdone1_bit(i32 4, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @gen6_instdone1_bit(i32 2, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"Memory Arbiter (GAM)\00"
@.str.1 = [5 x i8] c"GAFM\00"
@.str.2 = [21 x i8] c"Thread Spawner (TSG)\00"
@.str.3 = [22 x i8] c"Video Front-End (VFE)\00"
@.str.4 = [5 x i8] c"GAFS\00"
@.str.5 = [4 x i8] c"SVG\00"
@.str.6 = [27 x i8] c"Uni. Ret. Buf. Mgr. (URBM)\00"
@.str.7 = [24 x i8] c"Thread Dispatcher (TDG)\00"
@.str.8 = [22 x i8] c"FF Strips & Fans (SF)\00"
@.str.9 = [18 x i8] c"FF Clip Unit (CL)\00"
@.str.10 = [29 x i8] c"FF Stream Output Logic (SOL)\00"
@.str.11 = [24 x i8] c"FF Geometry Shader (GS)\00"
@.str.12 = [22 x i8] c"FF Domain Shader (DS)\00"
@.str.13 = [28 x i8] c"FF Tessellation Engine (TE)\00"
@.str.14 = [20 x i8] c"FF Hull Shader (HS)\00"
@.str.15 = [22 x i8] c"FF Vertex Shader (VS)\00"
@.str.16 = [21 x i8] c"FF Vertex Fetch (VF)\00"
define void @init_gen7_instdone() {
%1 = tail call i32 @gen6_instdone1_bit(i32 524288, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @gen6_instdone1_bit(i32 262144, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @gen6_instdone1_bit(i32 131072, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @gen6_instdone1_bit(i32 65536, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @gen6_instdone1_bit(i32 32768, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @gen6_instdone1_bit(i32 16384, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @gen6_instdone1_bit(i32 8192, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @gen6_instdone1_bit(i32 4096, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @gen6_instdone1_bit(i32 512, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @gen6_instdone1_bit(i32 256, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @gen6_instdone1_bit(i32 128, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @gen6_instdone1_bit(i32 64, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @gen6_instdone1_bit(i32 32, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @gen6_instdone1_bit(i32 16, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @gen6_instdone1_bit(i32 8, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0))
%16 = tail call i32 @gen6_instdone1_bit(i32 4, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0))
%17 = tail call i32 @gen6_instdone1_bit(i32 2, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.16, i64 0, i64 0))
ret void
}