/**
 * @file add1.cu
 * @brief this example is for testing cudaMemcpyFrom/ToSymbol
 *
 * @date Apr 27, 2011
 * @author Magda Slawinska, magg __at_ gatech __dot_ edu
 */


#include <stdio.h>
#include <cuda.h>

#define MAX 14

__device__ char name_device[MAX];
__device__ int tab_d[MAX];
__constant__ __device__ char hw[] = "Hello World!\n";

__global__ void helloWorldOnDevice(void) {
	int idx = blockIdx.x;
	name_device[idx] = hw[idx];
	tab_d[idx] *= tab_d[idx];
}

__global__ void inc(void){
	int idx = blockIdx.x;
	tab_d[idx]++;
}

int main(void) {
	int tab_h[MAX];
	int tab_h1[MAX];
	int i;
	char name_host[MAX];


	for (i = 0; i < MAX; i++)
		tab_h[i] = i;

	// symbol as a pointer
	cudaMemcpyToSymbol(tab_d, tab_h, sizeof(int) * MAX, 0,
			cudaMemcpyHostToDevice);

	helloWorldOnDevice <<< MAX, 1 >>> ();
	cudaThreadSynchronize();

	// -----------  symbol as a pointer to a variable
	cudaMemcpyFromSymbol(name_host, name_device, sizeof(char) * 13, 0,
			cudaMemcpyDeviceToHost);
	cudaMemcpyFromSymbol(tab_h1, tab_d, sizeof(int) * MAX, 0,
			cudaMemcpyDeviceToHost);

	printf("\n\nGot from GPU: %s\n", name_host);
	if (strcmp(name_host, "Hello World!\n") == 0)
		printf("Hello test: PASSED\n");
	else
		printf("Hello test: FAILED\n");

	for (i = 0; i < MAX; i++) {
		if (tab_h1[i] != (tab_h[i] * tab_h[i])) {
			printf("FAILED!\n");
			break;
		} else
			printf("tab_h1[%d] = %d\n", i, tab_h1[i]);
	}

	// ----------- now symbol as a name
	// symbol as a name
	cudaMemcpyToSymbol("tab_d", tab_h, sizeof(int) * MAX, 0,
				cudaMemcpyHostToDevice);
	inc <<< MAX, 1 >>> ();
	cudaThreadSynchronize();
	cudaMemcpyFromSymbol(tab_h1, "tab_d", sizeof(int) * MAX, 0,
			cudaMemcpyDeviceToHost);
	for (i = 0; i < MAX; i++) {
		if (tab_h1[i] != (tab_h[i] + 1)) {
			printf("FAILED!\n");
			break;
		} else
			printf("tab_h1[%d] = %d\n", i, tab_h1[i]);
	}

}


	.file	"tmpxft_00261b56_00000000-6_app2_back1.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2030:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2030:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z37__device_stub__Z18helloWorldOnDevicevv
	.type	_Z37__device_stub__Z18helloWorldOnDevicevv, @function
_Z37__device_stub__Z18helloWorldOnDevicevv:
.LFB2052:
	.cfi_startproc
	endbr64
	subq	$88, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	movabsq	$4294967297, %rax
	leaq	8(%rsp), %rcx
	movq	%rsp, %rdx
	leaq	28(%rsp), %rsi
	leaq	16(%rsp), %rdi
	movl	$1, 24(%rsp)
	movl	$1, 36(%rsp)
	movq	%rax, 16(%rsp)
	movq	%rax, 28(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L2
	pushq	8(%rsp)
	.cfi_def_cfa_offset 104
	leaq	_Z18helloWorldOnDevicev(%rip), %rdi
	pushq	8(%rsp)
	.cfi_def_cfa_offset 112
	movq	44(%rsp), %rcx
	movl	52(%rsp), %r8d
	movq	32(%rsp), %rsi
	movl	40(%rsp), %edx
	leaq	80(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 104
	popq	%rdx
	.cfi_def_cfa_offset 96
.L2:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	addq	$88, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2052:
	.size	_Z37__device_stub__Z18helloWorldOnDevicevv, .-_Z37__device_stub__Z18helloWorldOnDevicevv
	.globl	_Z18helloWorldOnDevicev
	.type	_Z18helloWorldOnDevicev, @function
_Z18helloWorldOnDevicev:
.LFB2053:
	.cfi_startproc
	endbr64
	jmp	_Z37__device_stub__Z18helloWorldOnDevicevv
	.cfi_endproc
.LFE2053:
	.size	_Z18helloWorldOnDevicev, .-_Z18helloWorldOnDevicev
	.globl	_Z21__device_stub__Z3incvv
	.type	_Z21__device_stub__Z3incvv, @function
_Z21__device_stub__Z3incvv:
.LFB2054:
	.cfi_startproc
	endbr64
	subq	$88, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	movabsq	$4294967297, %rax
	leaq	8(%rsp), %rcx
	movq	%rsp, %rdx
	leaq	28(%rsp), %rsi
	leaq	16(%rsp), %rdi
	movl	$1, 24(%rsp)
	movl	$1, 36(%rsp)
	movq	%rax, 16(%rsp)
	movq	%rax, 28(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L8
	pushq	8(%rsp)
	.cfi_def_cfa_offset 104
	leaq	_Z3incv(%rip), %rdi
	pushq	8(%rsp)
	.cfi_def_cfa_offset 112
	movq	44(%rsp), %rcx
	movl	52(%rsp), %r8d
	movq	32(%rsp), %rsi
	movl	40(%rsp), %edx
	leaq	80(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 104
	popq	%rdx
	.cfi_def_cfa_offset 96
.L8:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	addq	$88, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2054:
	.size	_Z21__device_stub__Z3incvv, .-_Z21__device_stub__Z3incvv
	.globl	_Z3incv
	.type	_Z3incv, @function
_Z3incv:
.LFB2055:
	.cfi_startproc
	endbr64
	jmp	_Z21__device_stub__Z3incvv
	.cfi_endproc
.LFE2055:
	.size	_Z3incv, .-_Z3incv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\n\nGot from GPU: %s\n"
.LC1:
	.string	"Hello World!\n"
.LC2:
	.string	"Hello test: PASSED\n"
.LC3:
	.string	"Hello test: FAILED\n"
.LC4:
	.string	"FAILED!\n"
.LC5:
	.string	"tab_h1[%d] = %d\n"
.LC6:
	.string	"tab_d"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2027:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$168, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rbp
.L14:
	movl	%eax, 0(%rbp,%rax,4)
	incq	%rax
	cmpq	$14, %rax
	jne	.L14
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$56, %edx
	movq	%rbp, %rsi
	leaq	_ZL5tab_d(%rip), %r13
	movq	%r13, %rdi
	call	cudaMemcpyToSymbol@PLT
	movl	$2147483655, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	addq	%rdi, %rdi
	movl	$1, %ecx
	movabsq	$4294967297, %rdx
	movl	$1, %esi
	movq	%rdx, 12(%rsp)
	movl	$1, 20(%rsp)
	movq	%rdi, (%rsp)
	movl	$1, 8(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L15
	call	_Z37__device_stub__Z18helloWorldOnDevicevv
.L15:
	leaq	138(%rsp), %rbx
	leaq	80(%rsp), %r12
	call	cudaThreadSynchronize@PLT
	movl	$2, %r8d
	xorl	%ecx, %ecx
	movq	%rbx, %rdi
	movl	$13, %edx
	leaq	_ZL11name_device(%rip), %rsi
	call	cudaMemcpyFromSymbol@PLT
	movl	$2, %r8d
	xorl	%ecx, %ecx
	movq	%r13, %rsi
	movl	$56, %edx
	movq	%r12, %rdi
	call	cudaMemcpyFromSymbol@PLT
	movq	%rbx, %rdx
	movl	$2, %edi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	__printf_chk@PLT
	leaq	.LC1(%rip), %rsi
	movq	%rbx, %rdi
	call	strcmp@PLT
	leaq	.LC2(%rip), %rsi
	movl	$2, %edi
	testl	%eax, %eax
	je	.L30
	leaq	.LC3(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
.L30:
	call	__printf_chk@PLT
	xorl	%ebx, %ebx
	leaq	.LC5(%rip), %r13
.L20:
	movl	0(%rbp,%rbx,4), %eax
	movl	(%r12,%rbx,4), %ecx
	movl	%ebx, %edx
	imull	%eax, %eax
	cmpl	%eax, %ecx
	je	.L18
	leaq	.LC4(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L19
.L18:
	movq	%r13, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	incq	%rbx
	call	__printf_chk@PLT
	cmpq	$14, %rbx
	jne	.L20
.L19:
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$56, %edx
	movq	%rbp, %rsi
	leaq	.LC6(%rip), %rbx
	movq	%rbx, %rdi
	call	cudaMemcpyToSymbol@PLT
	movl	$2147483655, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	addq	%rdi, %rdi
	movl	$1, %ecx
	movabsq	$4294967297, %rdx
	movl	$1, %esi
	movq	%rdx, 12(%rsp)
	movl	$1, 20(%rsp)
	movq	%rdi, (%rsp)
	movl	$1, 8(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L21
	call	_Z21__device_stub__Z3incvv
.L21:
	call	cudaThreadSynchronize@PLT
	movq	%rbx, %rsi
	movl	$2, %r8d
	xorl	%ecx, %ecx
	movl	$56, %edx
	movq	%r12, %rdi
	xorl	%ebx, %ebx
	call	cudaMemcpyFromSymbol@PLT
	leaq	.LC5(%rip), %r13
.L24:
	movl	0(%rbp,%rbx,4), %eax
	movl	(%r12,%rbx,4), %ecx
	movl	%ebx, %edx
	incl	%eax
	cmpl	%eax, %ecx
	je	.L22
	leaq	.LC4(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L23
.L22:
	movq	%r13, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	incq	%rbx
	call	__printf_chk@PLT
	cmpq	$14, %rbx
	jne	.L24
.L23:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	addq	$168, %rsp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2027:
	.size	main, .-main
	.section	.rodata.str1.1
.LC7:
	.string	"_Z3incv"
.LC8:
	.string	"_Z18helloWorldOnDevicev"
.LC9:
	.string	"name_device"
.LC10:
	.string	"hw"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2057:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC7(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z3incv(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC8(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z18helloWorldOnDevicev(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC9(%rip), %rdx
	movl	$14, %r9d
	leaq	_ZL11name_device(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	call	__cudaRegisterVar@PLT
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC6(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$56, %r9d
	leaq	_ZL5tab_d(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rsi
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$1
	.cfi_def_cfa_offset 32
	leaq	.LC10(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movl	$14, %r9d
	movq	%rdx, %rcx
	leaq	_ZL2hw(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rdi
	.cfi_def_cfa_offset 24
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	popq	%r8
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE2057:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.local	_ZL2hw
	.comm	_ZL2hw,14,8
	.local	_ZL5tab_d
	.comm	_ZL5tab_d,56,32
	.local	_ZL11name_device
	.comm	_ZL11name_device,14,8
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

/**
 * @file add1.cu
 * @brief this example is for testing cudaMemcpyFrom/ToSymbol
 *
 * @date Apr 27, 2011
 * @author Magda Slawinska, magg __at_ gatech __dot_ edu
 */


#include <stdio.h>
#include <hip/hip_runtime.h>

#define MAX 14

__device__ char name_device[MAX];
__device__ int tab_d[MAX];
__constant__ __device__ char hw[] = "Hello World!\n";

__global__ void helloWorldOnDevice(void) {
	int idx = blockIdx.x;
	name_device[idx] = hw[idx];
	tab_d[idx] *= tab_d[idx];
}

__global__ void inc(void){
	int idx = blockIdx.x;
	tab_d[idx]++;
}

int main(void) {
	int tab_h[MAX];
	int tab_h1[MAX];
	int i;
	char name_host[MAX];


	for (i = 0; i < MAX; i++)
		tab_h[i] = i;

	// symbol as a pointer
	hipMemcpyToSymbol(HIP_SYMBOL(tab_d), tab_h, sizeof(int) * MAX, 0,
			hipMemcpyHostToDevice);

	helloWorldOnDevice <<< MAX, 1 >>> ();
	hipDeviceSynchronize();

	// -----------  symbol as a pointer to a variable
	hipMemcpyFromSymbol(name_host, HIP_SYMBOL(name_device), sizeof(char) * 13, 0,
			hipMemcpyDeviceToHost);
	hipMemcpyFromSymbol(tab_h1, HIP_SYMBOL(tab_d), sizeof(int) * MAX, 0,
			hipMemcpyDeviceToHost);

	printf("\n\nGot from GPU: %s\n", name_host);
	if (strcmp(name_host, "Hello World!\n") == 0)
		printf("Hello test: PASSED\n");
	else
		printf("Hello test: FAILED\n");

	for (i = 0; i < MAX; i++) {
		if (tab_h1[i] != (tab_h[i] * tab_h[i])) {
			printf("FAILED!\n");
			break;
		} else
			printf("tab_h1[%d] = %d\n", i, tab_h1[i]);
	}

	// ----------- now symbol as a name
	// symbol as a name
	hipMemcpyToSymbol(HIP_SYMBOL("tab_d"), tab_h, sizeof(int) * MAX, 0,
				hipMemcpyHostToDevice);
	inc <<< MAX, 1 >>> ();
	hipDeviceSynchronize();
	hipMemcpyFromSymbol(tab_h1, HIP_SYMBOL("tab_d"), sizeof(int) * MAX, 0,
			hipMemcpyDeviceToHost);
	for (i = 0; i < MAX; i++) {
		if (tab_h1[i] != (tab_h[i] + 1)) {
			printf("FAILED!\n");
			break;
		} else
			printf("tab_h1[%d] = %d\n", i, tab_h1[i]);
	}

}


	.text
	.file	"app2_back1.hip"
	.globl	_Z33__device_stub__helloWorldOnDevicev # -- Begin function _Z33__device_stub__helloWorldOnDevicev
	.type	_Z33__device_stub__helloWorldOnDevicev,@function
_Z33__device_stub__helloWorldOnDevicev: # @_Z33__device_stub__helloWorldOnDevicev
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rbx
	leaq	24(%rsp), %r14
	leaq	16(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	__hipPopCallConfiguration
	movq	(%rbx), %rsi
	movl	8(%rbx), %edx
	movq	(%r14), %rcx
	movl	8(%r14), %r8d
	movq	%rsp, %r9
	movl	$_Z18helloWorldOnDevicev, %edi
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	pushq	(%r15)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$72, %rsp
	.cfi_adjust_cfa_offset -72
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z33__device_stub__helloWorldOnDevicev, .Lfunc_end0-_Z33__device_stub__helloWorldOnDevicev
	.cfi_endproc
                                        # -- End function
	.globl	_Z18__device_stub__incv         # -- Begin function _Z18__device_stub__incv
	.type	_Z18__device_stub__incv,@function
_Z18__device_stub__incv:                # @_Z18__device_stub__incv
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rbx
	leaq	24(%rsp), %r14
	leaq	16(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	__hipPopCallConfiguration
	movq	(%rbx), %rsi
	movl	8(%rbx), %edx
	movq	(%r14), %rcx
	movl	8(%r14), %r8d
	movq	%rsp, %r9
	movl	$_Z3incv, %edi
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	pushq	(%r15)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$72, %rsp
	.cfi_adjust_cfa_offset -72
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z18__device_stub__incv, .Lfunc_end1-_Z18__device_stub__incv
	.cfi_endproc
                                        # -- End function
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	subq	$144, %rsp
	.cfi_def_cfa_offset 176
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	xorl	%eax, %eax
.LBB2_1:                                # =>This Inner Loop Header: Depth=1
	movl	%eax, (%rsp,%rax,4)
	incq	%rax
	cmpq	$14, %rax
	jne	.LBB2_1
# %bb.2:
	movabsq	$4294967297, %rbx               # imm = 0x100000001
	movq	%rsp, %rsi
	movl	$tab_d, %edi
	movl	$56, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	hipMemcpyToSymbol
	leaq	13(%rbx), %r14
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB2_4
# %bb.3:
	callq	_Z33__device_stub__helloWorldOnDevicev
.LBB2_4:
	callq	hipDeviceSynchronize
	leaq	130(%rsp), %r15
	movl	$name_device, %esi
	movl	$13, %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	hipMemcpyFromSymbol
	leaq	64(%rsp), %rdi
	movl	$tab_d, %esi
	movl	$56, %edx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	hipMemcpyFromSymbol
	movl	$.L.str, %edi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	printf
	movabsq	$8022916924116329800, %rax      # imm = 0x6F57206F6C6C6548
	xorq	(%r15), %rax
	movabsq	$2851464966991703, %rcx         # imm = 0xA21646C726F57
	xorq	6(%r15), %rcx
	orq	%rax, %rcx
	movl	$.Lstr.1, %eax
	movl	$.Lstr, %edi
	cmoveq	%rax, %rdi
	callq	puts@PLT
	xorl	%r15d, %r15d
.LBB2_5:                                # =>This Inner Loop Header: Depth=1
	movl	64(%rsp,%r15,4), %edx
	movl	(%rsp,%r15,4), %eax
	imull	%eax, %eax
	cmpl	%eax, %edx
	jne	.LBB2_6
# %bb.7:                                #   in Loop: Header=BB2_5 Depth=1
	movl	$.L.str.5, %edi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	printf
	incq	%r15
	cmpq	$14, %r15
	jne	.LBB2_5
	jmp	.LBB2_8
.LBB2_6:
	movl	$.Lstr.3, %edi
	callq	puts@PLT
.LBB2_8:                                # %.loopexit41
	movq	%rsp, %rsi
	movl	$.L.str.6, %edi
	movl	$56, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	hipMemcpyToSymbol
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB2_10
# %bb.9:
	callq	_Z18__device_stub__incv
.LBB2_10:
	callq	hipDeviceSynchronize
	leaq	64(%rsp), %rdi
	movl	$.L.str.6, %esi
	movl	$56, %edx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	hipMemcpyFromSymbol
	xorl	%ebx, %ebx
.LBB2_11:                               # =>This Inner Loop Header: Depth=1
	movl	64(%rsp,%rbx,4), %edx
	movl	(%rsp,%rbx,4), %eax
	incl	%eax
	cmpl	%eax, %edx
	jne	.LBB2_12
# %bb.13:                               #   in Loop: Header=BB2_11 Depth=1
	movl	$.L.str.5, %edi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	printf
	incq	%rbx
	cmpq	$14, %rbx
	jne	.LBB2_11
	jmp	.LBB2_14
.LBB2_12:
	movl	$.Lstr.3, %edi
	callq	puts@PLT
.LBB2_14:                               # %.loopexit
	xorl	%eax, %eax
	addq	$144, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	main, .Lfunc_end2-main
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB3_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB3_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z18helloWorldOnDevicev, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z3incv, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$0, 8(%rsp)
	movl	$0, (%rsp)
	movl	$name_device, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movl	$14, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	__hipRegisterVar
	movl	$0, 8(%rsp)
	movl	$0, (%rsp)
	movl	$tab_d, %esi
	movl	$.L.str.6, %edx
	movl	$.L.str.6, %ecx
	movl	$56, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	__hipRegisterVar
	movl	$0, 8(%rsp)
	movl	$1, (%rsp)
	movl	$hw, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movl	$14, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	__hipRegisterVar
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end3:
	.size	__hip_module_ctor, .Lfunc_end3-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB4_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB4_2:
	retq
.Lfunc_end4:
	.size	__hip_module_dtor, .Lfunc_end4-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	name_device,@object             # @name_device
	.local	name_device
	.comm	name_device,14,1
	.type	tab_d,@object                   # @tab_d
	.local	tab_d
	.comm	tab_d,56,16
	.type	hw,@object                      # @hw
	.local	hw
	.comm	hw,14,1
	.type	_Z18helloWorldOnDevicev,@object # @_Z18helloWorldOnDevicev
	.section	.rodata,"a",@progbits
	.globl	_Z18helloWorldOnDevicev
	.p2align	3, 0x0
_Z18helloWorldOnDevicev:
	.quad	_Z33__device_stub__helloWorldOnDevicev
	.size	_Z18helloWorldOnDevicev, 8

	.type	_Z3incv,@object                 # @_Z3incv
	.globl	_Z3incv
	.p2align	3, 0x0
_Z3incv:
	.quad	_Z18__device_stub__incv
	.size	_Z3incv, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"\n\nGot from GPU: %s\n"
	.size	.L.str, 20

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"Hello World!\n"
	.size	.L.str.1, 14

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"tab_h1[%d] = %d\n"
	.size	.L.str.5, 17

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"tab_d"
	.size	.L.str.6, 6

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z18helloWorldOnDevicev"
	.size	.L__unnamed_1, 24

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z3incv"
	.size	.L__unnamed_2, 8

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"name_device"
	.size	.L__unnamed_3, 12

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"hw"
	.size	.L__unnamed_4, 3

	.type	__hip_fatbin_wrapper,@object    # @__hip_fatbin_wrapper
	.section	.hipFatBinSegment,"a",@progbits
	.p2align	3, 0x0
__hip_fatbin_wrapper:
	.long	1212764230                      # 0x48495046
	.long	1                               # 0x1
	.quad	__hip_fatbin
	.quad	0
	.size	__hip_fatbin_wrapper, 24

	.type	__hip_gpubin_handle,@object     # @__hip_gpubin_handle
	.local	__hip_gpubin_handle
	.comm	__hip_gpubin_handle,8,8
	.section	.init_array,"aw",@init_array
	.p2align	3, 0x0
	.quad	__hip_module_ctor
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.type	.Lstr,@object                   # @str
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr:
	.asciz	"Hello test: FAILED"
	.size	.Lstr, 19

	.type	.Lstr.1,@object                 # @str.1
.Lstr.1:
	.asciz	"Hello test: PASSED"
	.size	.Lstr.1, 19

	.type	.Lstr.3,@object                 # @str.3
.Lstr.3:
	.asciz	"FAILED!"
	.size	.Lstr.3, 8

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z33__device_stub__helloWorldOnDevicev
	.addrsig_sym _Z18__device_stub__incv
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym name_device
	.addrsig_sym tab_d
	.addrsig_sym hw
	.addrsig_sym _Z18helloWorldOnDevicev
	.addrsig_sym _Z3incv
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z18helloWorldOnDevicev ; -- Begin function _Z18helloWorldOnDevicev
	.globl	_Z18helloWorldOnDevicev
	.p2align	8
	.type	_Z18helloWorldOnDevicev,@function
_Z18helloWorldOnDevicev:                ; @_Z18helloWorldOnDevicev
; %bb.0:
	s_getpc_b64 s[2:3]
	s_add_u32 s2, s2, hw@rel32@lo+4
	s_addc_u32 s3, s3, hw@rel32@hi+12
	v_mov_b32_e32 v0, 0
	s_ashr_i32 s1, s15, 31
	s_add_u32 s2, s15, s2
	s_addc_u32 s3, s1, s3
	s_mov_b32 s0, s15
	global_load_u8 v1, v0, s[2:3]
	s_getpc_b64 s[2:3]
	s_add_u32 s2, s2, name_device@rel32@lo+4
	s_addc_u32 s3, s3, name_device@rel32@hi+12
	s_add_u32 s2, s15, s2
	s_addc_u32 s3, s1, s3
	s_getpc_b64 s[4:5]
	s_add_u32 s4, s4, tab_d@rel32@lo+4
	s_addc_u32 s5, s5, tab_d@rel32@hi+12
	s_lshl_b64 s[0:1], s[0:1], 2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_4) | instid1(SALU_CYCLE_1)
	s_add_u32 s0, s0, s4
	s_addc_u32 s1, s1, s5
	s_load_b32 s4, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_mul_i32 s4, s4, s4
	v_mov_b32_e32 v2, s4
	s_waitcnt vmcnt(0)
	s_clause 0x1
	global_store_b8 v0, v1, s[2:3]
	global_store_b32 v0, v2, s[0:1]
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z18helloWorldOnDevicev
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 0
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 0
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 3
		.amdhsa_next_free_sgpr 16
		.amdhsa_reserve_vcc 0
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z18helloWorldOnDevicev, .Lfunc_end0-_Z18helloWorldOnDevicev
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 168
; NumSgprs: 16
; NumVgprs: 3
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 1
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 16
; NumVGPRsForWavesPerEU: 3
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z3incv                 ; -- Begin function _Z3incv
	.globl	_Z3incv
	.p2align	8
	.type	_Z3incv,@function
_Z3incv:                                ; @_Z3incv
; %bb.0:
	s_getpc_b64 s[2:3]
	s_add_u32 s2, s2, tab_d@rel32@lo+4
	s_addc_u32 s3, s3, tab_d@rel32@hi+12
	s_mov_b32 s0, s15
	s_ashr_i32 s1, s15, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[0:1], s[0:1], 2
	s_add_u32 s0, s0, s2
	s_addc_u32 s1, s1, s3
	s_load_b32 s2, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_add_i32 s2, s2, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	v_dual_mov_b32 v0, 0 :: v_dual_mov_b32 v1, s2
	global_store_b32 v0, v1, s[0:1]
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z3incv
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 0
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 0
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 2
		.amdhsa_next_free_sgpr 16
		.amdhsa_reserve_vcc 0
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end1:
	.size	_Z3incv, .Lfunc_end1-_Z3incv
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 92
; NumSgprs: 16
; NumVgprs: 2
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 1
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 16
; NumVGPRsForWavesPerEU: 2
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.protected	name_device             ; @name_device
	.type	name_device,@object
	.section	.bss,"aw",@nobits
	.globl	name_device
name_device:
	.zero	14
	.size	name_device, 14

	.protected	tab_d                   ; @tab_d
	.type	tab_d,@object
	.globl	tab_d
	.p2align	4, 0x0
tab_d:
	.zero	56
	.size	tab_d, 56

	.protected	hw                      ; @hw
	.type	hw,@object
	.data
	.globl	hw
hw:
	.asciz	"Hello World!\n"
	.size	hw, 14

	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym name_device
	.addrsig_sym tab_d
	.addrsig_sym hw
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:           []
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 4
    .kernarg_segment_size: 0
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z18helloWorldOnDevicev
    .private_segment_fixed_size: 0
    .sgpr_count:     16
    .sgpr_spill_count: 0
    .symbol:         _Z18helloWorldOnDevicev.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     3
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:           []
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 4
    .kernarg_segment_size: 0
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z3incv
    .private_segment_fixed_size: 0
    .sgpr_count:     16
    .sgpr_spill_count: 0
    .symbol:         _Z3incv.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     2
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
