#include <stdio.h>
#include <iostream>
#include <cuda_profiler_api.h>
//#include <cutil.h>
#include <cuda_runtime.h>

float* h_A;
float* h_B;
float* h_C;
float* h_res;
float* d_A;
float* d_B;
float* d_C;
float* d_res;

__global__
//void compute(const float* A, const float* B, const float* C, float* D, int n) {
void compute(float* D, int n, int div) {
    int tid = blockDim.x * blockIdx.x + threadIdx.x;
    float I1 = tid * 2.0;

    int thread_id = threadIdx.x % 32;

    if (thread_id < div) {
        __asm volatile (
                " .reg .f32 %r1111;\n\t"
                " .reg .f32 %r1112;\n\t"
                " .reg .f32 %r1113;\n\t"
                " .reg .f32 %r1114;\n\t"
                " .reg .f32 %r1115;\n\t"
                " .reg .f32 %r1116;\n\t"
                " .reg .f32 %r1117;\n\t"
                " .reg .f32 %r1118;\n\t"
                " .reg .f32 %r1119;\n\t"
                " .reg .f32 %r1120;\n\t"
                " .reg .f32 %r1121;\n\t"
                " .reg .f32 %r1122;\n\t"
                " .reg .f32 %r1123;\n\t"
                " .reg .f32 %r1124;\n\t"
                " .reg .f32 %r1125;\n\t"
                " .reg .f32 %r1126;\n\t"
                " .reg .f32 %r1127;\n\t"
                " .reg .f32 %r1128;\n\t"
                "mov.f32 %r1112, 4.4;\n\t"
                "mov.f32 %r1113, %r1112;\n\t"
                "mov.f32 %r1114, 2.2;\n\t"
                "mov.f32 %r1115, 3.3;\n\t"
                "mov.f32 %r1116, 1.23;\n\t"
                "mov.f32 %r1117, 2.42;\n\t"
                "mov.f32 %r1118, 3.34;\n\t"
                "mov.f32 %r1119, 5.62;\n\t"
                "mov.f32 %r1120, 2.56;\n\t"
                "mov.f32 %r1121, 1.56;\n\t"
                "mov.f32 %r1122, 2.56;\n\t"
                "mov.f32 %r1123, 5.56;\n\t"
                "mov.f32 %r1124, 8.56;\n\t"
                "mov.f32 %r1125, 3.56;\n\t"
                "mov.f32 %r1126, 5.56;\n\t"
                "mov.f32 %r1127, 6.56;\n\t"
                "mov.f32 %r1128, 0.56;\n\t"
                );
        for (int k = 0; k < n; k++) {
            __asm volatile (
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    );
        }
    }
    __syncthreads();

    //    if ((blockDim.x * blockIdx.x + threadIdx.x) == 0)
    *D = I1;

    __syncthreads();
}

void usage() {
    std::cout << "Usage ./binary <num_blocks> <num_threads_per_block> <iterations>" "threads active per warp" << std::endl;
}

int main(int argc, char **argv)
{
    if (argc != 5) {
        usage();
        exit(1);
    }

    int num_blocks = atoi(argv[1]);
    int num_threads_per_block = atoi(argv[2]);
    int iterations = atoi(argv[3]);
    int divergence = atoi(argv[4]);

//    h_A = new float(2.0);
//    h_B = new float(3.0);
//    h_C = new float(4.0);

//    cudaMalloc((void**)&d_A, sizeof(float));
//    cudaMalloc((void**)&d_B, sizeof(float));
//    cudaMalloc((void**)&d_C, sizeof(float));
    cudaMalloc((void**)&d_res, sizeof(float));

//    cudaMemcpy(d_A, h_A, sizeof(float), cudaMemcpyHostToDevice);
//    cudaMemcpy(d_B, h_B, sizeof(float), cudaMemcpyHostToDevice);
//    cudaMemcpy(d_C, h_C, sizeof(float), cudaMemcpyHostToDevice);

    cudaEvent_t start, stop;
    float time;

    cudaEventCreate(&start);
    cudaEventCreate(&stop);

    cudaEventRecord(start, 0);
    cudaProfilerStart();

//    compute<<<num_blocks, num_threads_per_block>>>(d_A, d_B, d_C, d_res, iterations);
    compute<<<num_blocks, num_threads_per_block>>>(d_res, iterations, divergence);

    cudaProfilerStop();
    cudaEventRecord(stop, 0);
    cudaEventSynchronize(stop);

    cudaEventElapsedTime(&time, start, stop);

    std::cout << "GPU Elapsed Time = " << time << std::endl;

    cudaEventDestroy(start);
    cudaEventDestroy(stop);

    cudaDeviceSynchronize();

    cudaMemcpy(h_res, d_res, sizeof(float), cudaMemcpyDeviceToHost);

    return 0;
}

	.file	"tmpxft_0029edf5_00000000-6_fma_32p_asm.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3639:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3639:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Usage ./binary <num_blocks> <num_threads_per_block> <iterations>threads active per warp"
	.text
	.globl	_Z5usagev
	.type	_Z5usagev, @function
_Z5usagev:
.LFB3635:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZSt4cout(%rip), %rdi
	leaq	.LC0(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	popq	%rdx
	.cfi_def_cfa_offset 8
	movq	%rax, %rdi
	jmp	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	.cfi_endproc
.LFE3635:
	.size	_Z5usagev, .-_Z5usagev
	.globl	_Z28__device_stub__Z7computePfiiPfii
	.type	_Z28__device_stub__Z7computePfiiPfii, @function
_Z28__device_stub__Z7computePfiiPfii:
.LFB3661:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	32(%rsp), %rdi
	movl	%esi, 4(%rsp)
	leaq	44(%rsp), %rsi
	movl	%edx, (%rsp)
	leaq	16(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L4
	pushq	24(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z7computePfii(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 144
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L4:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3661:
	.size	_Z28__device_stub__Z7computePfiiPfii, .-_Z28__device_stub__Z7computePfiiPfii
	.globl	_Z7computePfii
	.type	_Z7computePfii, @function
_Z7computePfii:
.LFB3662:
	.cfi_startproc
	endbr64
	jmp	_Z28__device_stub__Z7computePfiiPfii
	.cfi_endproc
.LFE3662:
	.size	_Z7computePfii, .-_Z7computePfii
	.section	.rodata.str1.1
.LC1:
	.string	"GPU Elapsed Time = "
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB3636:
	.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	$56, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	cmpl	$5, %edi
	je	.L11
	call	_Z5usagev
	movl	$1, %edi
	call	exit@PLT
.L11:
	movq	8(%rsi), %rdi
	movq	%rsi, %rbx
	call	atoi@PLT
	movq	16(%rbx), %rdi
	movl	%eax, %r12d
	call	atoi@PLT
	movq	24(%rbx), %rdi
	movl	%eax, %r13d
	call	atoi@PLT
	movq	32(%rbx), %rdi
	movl	%eax, %ebp
	call	atoi@PLT
	movl	$4, %esi
	leaq	d_res(%rip), %rdi
	movl	%eax, %ebx
	call	cudaMalloc@PLT
	movq	%rsp, %rdi
	call	cudaEventCreate@PLT
	leaq	8(%rsp), %rdi
	call	cudaEventCreate@PLT
	movq	(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	call	cudaProfilerStart@PLT
	movl	%r13d, 28(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movabsq	$4294967297, %rax
	movl	%r12d, 16(%rsp)
	movq	%rax, 32(%rsp)
	movl	36(%rsp), %ecx
	movq	%rax, 20(%rsp)
	movq	28(%rsp), %rdx
	movq	16(%rsp), %rdi
	movl	24(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L12
	movq	d_res(%rip), %rdi
	movl	%ebx, %edx
	movl	%ebp, %esi
	call	_Z28__device_stub__Z7computePfiiPfii
.L12:
	call	cudaProfilerStop@PLT
	movq	8(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	8(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	leaq	28(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	leaq	.LC1(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	cvtss2sd	28(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	movq	(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movq	8(%rsp), %rdi
	call	cudaEventDestroy@PLT
	call	cudaDeviceSynchronize@PLT
	movl	$2, %ecx
	movl	$4, %edx
	movq	d_res(%rip), %rsi
	movq	h_res(%rip), %rdi
	call	cudaMemcpy@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	addq	$56, %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
.LFE3636:
	.size	main, .-main
	.section	.rodata.str1.1
.LC2:
	.string	"_Z7computePfii"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3664:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 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	.LC2(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z7computePfii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE3664:
	.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
	.globl	d_res
	.bss
	.align 8
	.type	d_res, @object
	.size	d_res, 8
d_res:
	.zero	8
	.globl	d_C
	.align 8
	.type	d_C, @object
	.size	d_C, 8
d_C:
	.zero	8
	.globl	d_B
	.align 8
	.type	d_B, @object
	.size	d_B, 8
d_B:
	.zero	8
	.globl	d_A
	.align 8
	.type	d_A, @object
	.size	d_A, 8
d_A:
	.zero	8
	.globl	h_res
	.align 8
	.type	h_res, @object
	.size	h_res, 8
h_res:
	.zero	8
	.globl	h_C
	.align 8
	.type	h_C, @object
	.size	h_C, 8
h_C:
	.zero	8
	.globl	h_B
	.align 8
	.type	h_B, @object
	.size	h_B, 8
h_B:
	.zero	8
	.globl	h_A
	.align 8
	.type	h_A, @object
	.size	h_A, 8
h_A:
	.zero	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:

#include <stdio.h>
#include <iostream>
#include <hip/hip_runtime_api.h>
//#include <cutil.h>
#include <hip/hip_runtime.h>

float* h_A;
float* h_B;
float* h_C;
float* h_res;
float* d_A;
float* d_B;
float* d_C;
float* d_res;

__global__
//void compute(const float* A, const float* B, const float* C, float* D, int n) {
void compute(float* D, int n, int div) {
    int tid = blockDim.x * blockIdx.x + threadIdx.x;
    float I1 = tid * 2.0;

    int thread_id = threadIdx.x % 32;

    if (thread_id < div) {
        __asm volatile (
                " .reg .f32 %r1111;\n\t"
                " .reg .f32 %r1112;\n\t"
                " .reg .f32 %r1113;\n\t"
                " .reg .f32 %r1114;\n\t"
                " .reg .f32 %r1115;\n\t"
                " .reg .f32 %r1116;\n\t"
                " .reg .f32 %r1117;\n\t"
                " .reg .f32 %r1118;\n\t"
                " .reg .f32 %r1119;\n\t"
                " .reg .f32 %r1120;\n\t"
                " .reg .f32 %r1121;\n\t"
                " .reg .f32 %r1122;\n\t"
                " .reg .f32 %r1123;\n\t"
                " .reg .f32 %r1124;\n\t"
                " .reg .f32 %r1125;\n\t"
                " .reg .f32 %r1126;\n\t"
                " .reg .f32 %r1127;\n\t"
                " .reg .f32 %r1128;\n\t"
                "mov.f32 %r1112, 4.4;\n\t"
                "mov.f32 %r1113, %r1112;\n\t"
                "mov.f32 %r1114, 2.2;\n\t"
                "mov.f32 %r1115, 3.3;\n\t"
                "mov.f32 %r1116, 1.23;\n\t"
                "mov.f32 %r1117, 2.42;\n\t"
                "mov.f32 %r1118, 3.34;\n\t"
                "mov.f32 %r1119, 5.62;\n\t"
                "mov.f32 %r1120, 2.56;\n\t"
                "mov.f32 %r1121, 1.56;\n\t"
                "mov.f32 %r1122, 2.56;\n\t"
                "mov.f32 %r1123, 5.56;\n\t"
                "mov.f32 %r1124, 8.56;\n\t"
                "mov.f32 %r1125, 3.56;\n\t"
                "mov.f32 %r1126, 5.56;\n\t"
                "mov.f32 %r1127, 6.56;\n\t"
                "mov.f32 %r1128, 0.56;\n\t"
                );
        for (int k = 0; k < n; k++) {
            __asm volatile (
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    "fma.rn.f32 %r1113, %r1111, %r1113, %r1112;\n\t"
                    "fma.rn.f32 %r1114, %r1111, %r1114, %r1112;\n\t"
                    "fma.rn.f32 %r1115, %r1111, %r1115, %r1112;\n\t"
                    "fma.rn.f32 %r1116, %r1111, %r1116, %r1112;\n\t"
                    "fma.rn.f32 %r1117, %r1111, %r1117, %r1112;\n\t"
                    "fma.rn.f32 %r1118, %r1111, %r1118, %r1112;\n\t"
                    "fma.rn.f32 %r1119, %r1111, %r1119, %r1112;\n\t"
                    "fma.rn.f32 %r1120, %r1111, %r1120, %r1112;\n\t"
                    "fma.rn.f32 %r1121, %r1111, %r1121, %r1112;\n\t"
                    "fma.rn.f32 %r1122, %r1111, %r1122, %r1112;\n\t"
                    "fma.rn.f32 %r1123, %r1111, %r1123, %r1112;\n\t"
                    "fma.rn.f32 %r1124, %r1111, %r1124, %r1112;\n\t"
                    "fma.rn.f32 %r1125, %r1111, %r1125, %r1112;\n\t"
                    "fma.rn.f32 %r1126, %r1111, %r1126, %r1112;\n\t"
                    "fma.rn.f32 %r1127, %r1111, %r1127, %r1112;\n\t"
                    "fma.rn.f32 %r1128, %r1111, %r1128, %r1112;\n\t"
                    );
        }
    }
    __syncthreads();

    //    if ((blockDim.x * blockIdx.x + threadIdx.x) == 0)
    *D = I1;

    __syncthreads();
}

void usage() {
    std::cout << "Usage ./binary <num_blocks> <num_threads_per_block> <iterations>" "threads active per warp" << std::endl;
}

int main(int argc, char **argv)
{
    if (argc != 5) {
        usage();
        exit(1);
    }

    int num_blocks = atoi(argv[1]);
    int num_threads_per_block = atoi(argv[2]);
    int iterations = atoi(argv[3]);
    int divergence = atoi(argv[4]);

//    h_A = new float(2.0);
//    h_B = new float(3.0);
//    h_C = new float(4.0);

//    cudaMalloc((void**)&d_A, sizeof(float));
//    cudaMalloc((void**)&d_B, sizeof(float));
//    cudaMalloc((void**)&d_C, sizeof(float));
    hipMalloc((void**)&d_res, sizeof(float));

//    cudaMemcpy(d_A, h_A, sizeof(float), cudaMemcpyHostToDevice);
//    cudaMemcpy(d_B, h_B, sizeof(float), cudaMemcpyHostToDevice);
//    cudaMemcpy(d_C, h_C, sizeof(float), cudaMemcpyHostToDevice);

    hipEvent_t start, stop;
    float time;

    hipEventCreate(&start);
    hipEventCreate(&stop);

    hipEventRecord(start, 0);
    hipProfilerStart();

//    compute<<<num_blocks, num_threads_per_block>>>(d_A, d_B, d_C, d_res, iterations);
    compute<<<num_blocks, num_threads_per_block>>>(d_res, iterations, divergence);

    hipProfilerStop();
    hipEventRecord(stop, 0);
    hipEventSynchronize(stop);

    hipEventElapsedTime(&time, start, stop);

    std::cout << "GPU Elapsed Time = " << time << std::endl;

    hipEventDestroy(start);
    hipEventDestroy(stop);

    hipDeviceSynchronize();

    hipMemcpy(h_res, d_res, sizeof(float), hipMemcpyDeviceToHost);

    return 0;
}

	.text
	.file	"fma_32p_asm.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_Z22__device_stub__computePfii  # -- Begin function _Z22__device_stub__computePfii
	.type	_Z22__device_stub__computePfii,@function
_Z22__device_stub__computePfii:         # @_Z22__device_stub__computePfii
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$96, %rsp
	.cfi_def_cfa_offset 144
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	4(%rsp), %rcx
	movl	%esi, (%rcx)
	movq	%rsp, %rsi
	movl	%edx, (%rsi)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z7computePfii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$112, %rsp
	.cfi_adjust_cfa_offset -112
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z22__device_stub__computePfii, .Lfunc_end0-_Z22__device_stub__computePfii
	.cfi_endproc
                                        # -- End function
	.globl	_Z5usagev                       # -- Begin function _Z5usagev
	.type	_Z5usagev,@function
_Z5usagev:                              # @_Z5usagev
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$87, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZNSo5flushEv                   # TAILCALL
.Lfunc_end1:
	.size	_Z5usagev, .Lfunc_end1-_Z5usagev
	.cfi_endproc
                                        # -- End function
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	cmpl	$5, %edi
	jne	.LBB2_4
# %bb.1:
	movq	%rsi, %r12
	movq	8(%rsi), %rdi
	callq	atoi
	movl	%eax, %r14d
	movq	16(%r12), %rdi
	callq	atoi
	movl	%eax, %r15d
	movq	24(%r12), %rdi
	callq	atoi
	movl	%eax, %ebx
	movq	32(%r12), %rdi
	callq	atoi
	movl	%eax, %ebp
	movl	$d_res, %edi
	movl	$4, %esi
	callq	hipMalloc
	leaq	16(%rsp), %r12
	movq	%r12, %rdi
	callq	hipEventCreate
	leaq	8(%rsp), %rdi
	callq	hipEventCreate
	movq	(%r12), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	callq	hipProfilerStart
	movl	%r14d, %edi
	btsq	$32, %rdi
	movl	%r15d, %edx
	btsq	$32, %rdx
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB2_3
# %bb.2:
	movq	d_res(%rip), %rdi
	movl	%ebx, %esi
	movl	%ebp, %edx
	callq	_Z22__device_stub__computePfii
.LBB2_3:
	callq	hipProfilerStop
	movq	8(%rsp), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	movq	8(%rsp), %rdi
	callq	hipEventSynchronize
	movq	16(%rsp), %rsi
	movq	8(%rsp), %rdx
	leaq	28(%rsp), %rbx
	movq	%rbx, %rdi
	callq	hipEventElapsedTime
	movl	$_ZSt4cout, %edi
	movl	$.L.str.1, %esi
	movl	$19, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	cvtss2sd	(%rbx), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	16(%rsp), %rdi
	callq	hipEventDestroy
	movq	8(%rsp), %rdi
	callq	hipEventDestroy
	callq	hipDeviceSynchronize
	movq	h_res(%rip), %rdi
	movq	d_res(%rip), %rsi
	movl	$4, %edx
	movl	$2, %ecx
	callq	hipMemcpy
	xorl	%eax, %eax
	addq	$32, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB2_4:
	.cfi_def_cfa_offset 80
	callq	_Z5usagev
	movl	$1, %edi
	callq	exit
.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:
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	jne	.LBB3_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB3_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z7computePfii, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$40, %rsp
	.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	h_A,@object                     # @h_A
	.bss
	.globl	h_A
	.p2align	3, 0x0
h_A:
	.quad	0
	.size	h_A, 8

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

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

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

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

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

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

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

	.type	_Z7computePfii,@object          # @_Z7computePfii
	.section	.rodata,"a",@progbits
	.globl	_Z7computePfii
	.p2align	3, 0x0
_Z7computePfii:
	.quad	_Z22__device_stub__computePfii
	.size	_Z7computePfii, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Usage ./binary <num_blocks> <num_threads_per_block> <iterations>threads active per warp"
	.size	.L.str, 88

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"GPU Elapsed Time = "
	.size	.L.str.1, 20

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z7computePfii"
	.size	.L__unnamed_1, 15

	.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

	.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 _Z22__device_stub__computePfii
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym d_res
	.addrsig_sym _Z7computePfii
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z7computePfii          ; -- Begin function _Z7computePfii
	.globl	_Z7computePfii
	.p2align	8
	.type	_Z7computePfii,@function
_Z7computePfii:                         ; @_Z7computePfii
; %bb.0:
	s_clause 0x1
	s_load_b64 s[2:3], s[0:1], 0x8
	s_load_b32 s4, s[0:1], 0x1c
	v_and_b32_e32 v1, 31, v0
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_gt_i32_e32 vcc_lo, s3, v1
	s_and_saveexec_b32 s3, vcc_lo
	s_cbranch_execz .LBB0_3
; %bb.1:
	s_cmp_lt_i32 s2, 1
	;;#ASMSTART
	 .reg .f32 %r1111;
	 .reg .f32 %r1112;
	 .reg .f32 %r1113;
	 .reg .f32 %r1114;
	 .reg .f32 %r1115;
	 .reg .f32 %r1116;
	 .reg .f32 %r1117;
	 .reg .f32 %r1118;
	 .reg .f32 %r1119;
	 .reg .f32 %r1120;
	 .reg .f32 %r1121;
	 .reg .f32 %r1122;
	 .reg .f32 %r1123;
	 .reg .f32 %r1124;
	 .reg .f32 %r1125;
	 .reg .f32 %r1126;
	 .reg .f32 %r1127;
	 .reg .f32 %r1128;
	mov.f32 %r1112, 4.4;
	mov.f32 %r1113, %r1112;
	mov.f32 %r1114, 2.2;
	mov.f32 %r1115, 3.3;
	mov.f32 %r1116, 1.23;
	mov.f32 %r1117, 2.42;
	mov.f32 %r1118, 3.34;
	mov.f32 %r1119, 5.62;
	mov.f32 %r1120, 2.56;
	mov.f32 %r1121, 1.56;
	mov.f32 %r1122, 2.56;
	mov.f32 %r1123, 5.56;
	mov.f32 %r1124, 8.56;
	mov.f32 %r1125, 3.56;
	mov.f32 %r1126, 5.56;
	mov.f32 %r1127, 6.56;
	mov.f32 %r1128, 0.56;
	
	;;#ASMEND
	s_cbranch_scc1 .LBB0_3
.LBB0_2:                                ; %.lr.ph
                                        ; =>This Inner Loop Header: Depth=1
	s_add_i32 s2, s2, -1
	;;#ASMSTART
	fma.rn.f32 %r1113, %r1111, %r1113, %r1112;
	fma.rn.f32 %r1114, %r1111, %r1114, %r1112;
	fma.rn.f32 %r1115, %r1111, %r1115, %r1112;
	fma.rn.f32 %r1116, %r1111, %r1116, %r1112;
	fma.rn.f32 %r1117, %r1111, %r1117, %r1112;
	fma.rn.f32 %r1118, %r1111, %r1118, %r1112;
	fma.rn.f32 %r1119, %r1111, %r1119, %r1112;
	fma.rn.f32 %r1120, %r1111, %r1120, %r1112;
	fma.rn.f32 %r1121, %r1111, %r1121, %r1112;
	fma.rn.f32 %r1122, %r1111, %r1122, %r1112;
	fma.rn.f32 %r1123, %r1111, %r1123, %r1112;
	fma.rn.f32 %r1124, %r1111, %r1124, %r1112;
	fma.rn.f32 %r1125, %r1111, %r1125, %r1112;
	fma.rn.f32 %r1126, %r1111, %r1126, %r1112;
	fma.rn.f32 %r1127, %r1111, %r1127, %r1112;
	fma.rn.f32 %r1128, %r1111, %r1128, %r1112;
	fma.rn.f32 %r1113, %r1111, %r1113, %r1112;
	fma.rn.f32 %r1114, %r1111, %r1114, %r1112;
	fma.rn.f32 %r1115, %r1111, %r1115, %r1112;
	fma.rn.f32 %r1116, %r1111, %r1116, %r1112;
	fma.rn.f32 %r1117, %r1111, %r1117, %r1112;
	fma.rn.f32 %r1118, %r1111, %r1118, %r1112;
	fma.rn.f32 %r1119, %r1111, %r1119, %r1112;
	fma.rn.f32 %r1120, %r1111, %r1120, %r1112;
	fma.rn.f32 %r1121, %r1111, %r1121, %r1112;
	fma.rn.f32 %r1122, %r1111, %r1122, %r1112;
	fma.rn.f32 %r1123, %r1111, %r1123, %r1112;
	fma.rn.f32 %r1124, %r1111, %r1124, %r1112;
	fma.rn.f32 %r1125, %r1111, %r1125, %r1112;
	fma.rn.f32 %r1126, %r1111, %r1126, %r1112;
	fma.rn.f32 %r1127, %r1111, %r1127, %r1112;
	fma.rn.f32 %r1128, %r1111, %r1128, %r1112;
	fma.rn.f32 %r1113, %r1111, %r1113, %r1112;
	fma.rn.f32 %r1114, %r1111, %r1114, %r1112;
	fma.rn.f32 %r1115, %r1111, %r1115, %r1112;
	fma.rn.f32 %r1116, %r1111, %r1116, %r1112;
	fma.rn.f32 %r1117, %r1111, %r1117, %r1112;
	fma.rn.f32 %r1118, %r1111, %r1118, %r1112;
	fma.rn.f32 %r1119, %r1111, %r1119, %r1112;
	fma.rn.f32 %r1120, %r1111, %r1120, %r1112;
	fma.rn.f32 %r1121, %r1111, %r1121, %r1112;
	fma.rn.f32 %r1122, %r1111, %r1122, %r1112;
	fma.rn.f32 %r1123, %r1111, %r1123, %r1112;
	fma.rn.f32 %r1124, %r1111, %r1124, %r1112;
	fma.rn.f32 %r1125, %r1111, %r1125, %r1112;
	fma.rn.f32 %r1126, %r1111, %r1126, %r1112;
	fma.rn.f32 %r1127, %r1111, %r1127, %r1112;
	fma.rn.f32 %r1128, %r1111, %r1128, %r1112;
	fma.rn.f32 %r1113, %r1111, %r1113, %r1112;
	fma.rn.f32 %r1114, %r1111, %r1114, %r1112;
	fma.rn.f32 %r1115, %r1111, %r1115, %r1112;
	fma.rn.f32 %r1116, %r1111, %r1116, %r1112;
	fma.rn.f32 %r1117, %r1111, %r1117, %r1112;
	fma.rn.f32 %r1118, %r1111, %r1118, %r1112;
	fma.rn.f32 %r1119, %r1111, %r1119, %r1112;
	fma.rn.f32 %r1120, %r1111, %r1120, %r1112;
	fma.rn.f32 %r1121, %r1111, %r1121, %r1112;
	fma.rn.f32 %r1122, %r1111, %r1122, %r1112;
	fma.rn.f32 %r1123, %r1111, %r1123, %r1112;
	fma.rn.f32 %r1124, %r1111, %r1124, %r1112;
	fma.rn.f32 %r1125, %r1111, %r1125, %r1112;
	fma.rn.f32 %r1126, %r1111, %r1126, %r1112;
	fma.rn.f32 %r1127, %r1111, %r1127, %r1112;
	fma.rn.f32 %r1128, %r1111, %r1128, %r1112;
	fma.rn.f32 %r1113, %r1111, %r1113, %r1112;
	fma.rn.f32 %r1114, %r1111, %r1114, %r1112;
	fma.rn.f32 %r1115, %r1111, %r1115, %r1112;
	fma.rn.f32 %r1116, %r1111, %r1116, %r1112;
	fma.rn.f32 %r1117, %r1111, %r1117, %r1112;
	fma.rn.f32 %r1118, %r1111, %r1118, %r1112;
	fma.rn.f32 %r1119, %r1111, %r1119, %r1112;
	fma.rn.f32 %r1120, %r1111, %r1120, %r1112;
	fma.rn.f32 %r1121, %r1111, %r1121, %r1112;
	fma.rn.f32 %r1122, %r1111, %r1122, %r1112;
	fma.rn.f32 %r1123, %r1111, %r1123, %r1112;
	fma.rn.f32 %r1124, %r1111, %r1124, %r1112;
	fma.rn.f32 %r1125, %r1111, %r1125, %r1112;
	fma.rn.f32 %r1126, %r1111, %r1126, %r1112;
	fma.rn.f32 %r1127, %r1111, %r1127, %r1112;
	fma.rn.f32 %r1128, %r1111, %r1128, %r1112;
	fma.rn.f32 %r1113, %r1111, %r1113, %r1112;
	fma.rn.f32 %r1114, %r1111, %r1114, %r1112;
	fma.rn.f32 %r1115, %r1111, %r1115, %r1112;
	fma.rn.f32 %r1116, %r1111, %r1116, %r1112;
	fma.rn.f32 %r1117, %r1111, %r1117, %r1112;
	fma.rn.f32 %r1118, %r1111, %r1118, %r1112;
	fma.rn.f32 %r1119, %r1111, %r1119, %r1112;
	fma.rn.f32 %r1120, %r1111, %r1120, %r1112;
	fma.rn.f32 %r1121, %r1111, %r1121, %r1112;
	fma.rn.f32 %r1122, %r1111, %r1122, %r1112;
	fma.rn.f32 %r1123, %r1111, %r1123, %r1112;
	fma.rn.f32 %r1124, %r1111, %r1124, %r1112;
	fma.rn.f32 %r1125, %r1111, %r1125, %r1112;
	fma.rn.f32 %r1126, %r1111, %r1126, %r1112;
	fma.rn.f32 %r1127, %r1111, %r1127, %r1112;
	fma.rn.f32 %r1128, %r1111, %r1128, %r1112;
	fma.rn.f32 %r1113, %r1111, %r1113, %r1112;
	fma.rn.f32 %r1114, %r1111, %r1114, %r1112;
	fma.rn.f32 %r1115, %r1111, %r1115, %r1112;
	fma.rn.f32 %r1116, %r1111, %r1116, %r1112;
	fma.rn.f32 %r1117, %r1111, %r1117, %r1112;
	fma.rn.f32 %r1118, %r1111, %r1118, %r1112;
	fma.rn.f32 %r1119, %r1111, %r1119, %r1112;
	fma.rn.f32 %r1120, %r1111, %r1120, %r1112;
	fma.rn.f32 %r1121, %r1111, %r1121, %r1112;
	fma.rn.f32 %r1122, %r1111, %r1122, %r1112;
	fma.rn.f32 %r1123, %r1111, %r1123, %r1112;
	fma.rn.f32 %r1124, %r1111, %r1124, %r1112;
	fma.rn.f32 %r1125, %r1111, %r1125, %r1112;
	fma.rn.f32 %r1126, %r1111, %r1126, %r1112;
	fma.rn.f32 %r1127, %r1111, %r1127, %r1112;
	fma.rn.f32 %r1128, %r1111, %r1128, %r1112;
	fma.rn.f32 %r1113, %r1111, %r1113, %r1112;
	fma.rn.f32 %r1114, %r1111, %r1114, %r1112;
	fma.rn.f32 %r1115, %r1111, %r1115, %r1112;
	fma.rn.f32 %r1116, %r1111, %r1116, %r1112;
	fma.rn.f32 %r1117, %r1111, %r1117, %r1112;
	fma.rn.f32 %r1118, %r1111, %r1118, %r1112;
	fma.rn.f32 %r1119, %r1111, %r1119, %r1112;
	fma.rn.f32 %r1120, %r1111, %r1120, %r1112;
	fma.rn.f32 %r1121, %r1111, %r1121, %r1112;
	fma.rn.f32 %r1122, %r1111, %r1122, %r1112;
	fma.rn.f32 %r1123, %r1111, %r1123, %r1112;
	fma.rn.f32 %r1124, %r1111, %r1124, %r1112;
	fma.rn.f32 %r1125, %r1111, %r1125, %r1112;
	fma.rn.f32 %r1126, %r1111, %r1126, %r1112;
	fma.rn.f32 %r1127, %r1111, %r1127, %r1112;
	fma.rn.f32 %r1128, %r1111, %r1128, %r1112;
	fma.rn.f32 %r1113, %r1111, %r1113, %r1112;
	fma.rn.f32 %r1114, %r1111, %r1114, %r1112;
	fma.rn.f32 %r1115, %r1111, %r1115, %r1112;
	fma.rn.f32 %r1116, %r1111, %r1116, %r1112;
	fma.rn.f32 %r1117, %r1111, %r1117, %r1112;
	fma.rn.f32 %r1118, %r1111, %r1118, %r1112;
	fma.rn.f32 %r1119, %r1111, %r1119, %r1112;
	fma.rn.f32 %r1120, %r1111, %r1120, %r1112;
	fma.rn.f32 %r1121, %r1111, %r1121, %r1112;
	fma.rn.f32 %r1122, %r1111, %r1122, %r1112;
	fma.rn.f32 %r1123, %r1111, %r1123, %r1112;
	fma.rn.f32 %r1124, %r1111, %r1124, %r1112;
	fma.rn.f32 %r1125, %r1111, %r1125, %r1112;
	fma.rn.f32 %r1126, %r1111, %r1126, %r1112;
	fma.rn.f32 %r1127, %r1111, %r1127, %r1112;
	fma.rn.f32 %r1128, %r1111, %r1128, %r1112;
	fma.rn.f32 %r1113, %r1111, %r1113, %r1112;
	fma.rn.f32 %r1114, %r1111, %r1114, %r1112;
	fma.rn.f32 %r1115, %r1111, %r1115, %r1112;
	fma.rn.f32 %r1116, %r1111, %r1116, %r1112;
	fma.rn.f32 %r1117, %r1111, %r1117, %r1112;
	fma.rn.f32 %r1118, %r1111, %r1118, %r1112;
	fma.rn.f32 %r1119, %r1111, %r1119, %r1112;
	fma.rn.f32 %r1120, %r1111, %r1120, %r1112;
	fma.rn.f32 %r1121, %r1111, %r1121, %r1112;
	fma.rn.f32 %r1122, %r1111, %r1122, %r1112;
	fma.rn.f32 %r1123, %r1111, %r1123, %r1112;
	fma.rn.f32 %r1124, %r1111, %r1124, %r1112;
	fma.rn.f32 %r1125, %r1111, %r1125, %r1112;
	fma.rn.f32 %r1126, %r1111, %r1126, %r1112;
	fma.rn.f32 %r1127, %r1111, %r1127, %r1112;
	fma.rn.f32 %r1128, %r1111, %r1128, %r1112;
	fma.rn.f32 %r1113, %r1111, %r1113, %r1112;
	fma.rn.f32 %r1114, %r1111, %r1114, %r1112;
	fma.rn.f32 %r1115, %r1111, %r1115, %r1112;
	fma.rn.f32 %r1116, %r1111, %r1116, %r1112;
	fma.rn.f32 %r1117, %r1111, %r1117, %r1112;
	fma.rn.f32 %r1118, %r1111, %r1118, %r1112;
	fma.rn.f32 %r1119, %r1111, %r1119, %r1112;
	fma.rn.f32 %r1120, %r1111, %r1120, %r1112;
	fma.rn.f32 %r1121, %r1111, %r1121, %r1112;
	fma.rn.f32 %r1122, %r1111, %r1122, %r1112;
	fma.rn.f32 %r1123, %r1111, %r1123, %r1112;
	fma.rn.f32 %r1124, %r1111, %r1124, %r1112;
	fma.rn.f32 %r1125, %r1111, %r1125, %r1112;
	fma.rn.f32 %r1126, %r1111, %r1126, %r1112;
	fma.rn.f32 %r1127, %r1111, %r1127, %r1112;
	fma.rn.f32 %r1128, %r1111, %r1128, %r1112;
	fma.rn.f32 %r1113, %r1111, %r1113, %r1112;
	fma.rn.f32 %r1114, %r1111, %r1114, %r1112;
	fma.rn.f32 %r1115, %r1111, %r1115, %r1112;
	fma.rn.f32 %r1116, %r1111, %r1116, %r1112;
	fma.rn.f32 %r1117, %r1111, %r1117, %r1112;
	fma.rn.f32 %r1118, %r1111, %r1118, %r1112;
	fma.rn.f32 %r1119, %r1111, %r1119, %r1112;
	fma.rn.f32 %r1120, %r1111, %r1120, %r1112;
	fma.rn.f32 %r1121, %r1111, %r1121, %r1112;
	fma.rn.f32 %r1122, %r1111, %r1122, %r1112;
	fma.rn.f32 %r1123, %r1111, %r1123, %r1112;
	fma.rn.f32 %r1124, %r1111, %r1124, %r1112;
	fma.rn.f32 %r1125, %r1111, %r1125, %r1112;
	fma.rn.f32 %r1126, %r1111, %r1126, %r1112;
	fma.rn.f32 %r1127, %r1111, %r1127, %r1112;
	fma.rn.f32 %r1128, %r1111, %r1128, %r1112;
	fma.rn.f32 %r1113, %r1111, %r1113, %r1112;
	fma.rn.f32 %r1114, %r1111, %r1114, %r1112;
	fma.rn.f32 %r1115, %r1111, %r1115, %r1112;
	fma.rn.f32 %r1116, %r1111, %r1116, %r1112;
	fma.rn.f32 %r1117, %r1111, %r1117, %r1112;
	fma.rn.f32 %r1118, %r1111, %r1118, %r1112;
	fma.rn.f32 %r1119, %r1111, %r1119, %r1112;
	fma.rn.f32 %r1120, %r1111, %r1120, %r1112;
	fma.rn.f32 %r1121, %r1111, %r1121, %r1112;
	fma.rn.f32 %r1122, %r1111, %r1122, %r1112;
	fma.rn.f32 %r1123, %r1111, %r1123, %r1112;
	fma.rn.f32 %r1124, %r1111, %r1124, %r1112;
	fma.rn.f32 %r1125, %r1111, %r1125, %r1112;
	fma.rn.f32 %r1126, %r1111, %r1126, %r1112;
	fma.rn.f32 %r1127, %r1111, %r1127, %r1112;
	fma.rn.f32 %r1128, %r1111, %r1128, %r1112;
	fma.rn.f32 %r1113, %r1111, %r1113, %r1112;
	fma.rn.f32 %r1114, %r1111, %r1114, %r1112;
	fma.rn.f32 %r1115, %r1111, %r1115, %r1112;
	fma.rn.f32 %r1116, %r1111, %r1116, %r1112;
	fma.rn.f32 %r1117, %r1111, %r1117, %r1112;
	fma.rn.f32 %r1118, %r1111, %r1118, %r1112;
	fma.rn.f32 %r1119, %r1111, %r1119, %r1112;
	fma.rn.f32 %r1120, %r1111, %r1120, %r1112;
	fma.rn.f32 %r1121, %r1111, %r1121, %r1112;
	fma.rn.f32 %r1122, %r1111, %r1122, %r1112;
	fma.rn.f32 %r1123, %r1111, %r1123, %r1112;
	fma.rn.f32 %r1124, %r1111, %r1124, %r1112;
	fma.rn.f32 %r1125, %r1111, %r1125, %r1112;
	fma.rn.f32 %r1126, %r1111, %r1126, %r1112;
	fma.rn.f32 %r1127, %r1111, %r1127, %r1112;
	fma.rn.f32 %r1128, %r1111, %r1128, %r1112;
	fma.rn.f32 %r1113, %r1111, %r1113, %r1112;
	fma.rn.f32 %r1114, %r1111, %r1114, %r1112;
	fma.rn.f32 %r1115, %r1111, %r1115, %r1112;
	fma.rn.f32 %r1116, %r1111, %r1116, %r1112;
	fma.rn.f32 %r1117, %r1111, %r1117, %r1112;
	fma.rn.f32 %r1118, %r1111, %r1118, %r1112;
	fma.rn.f32 %r1119, %r1111, %r1119, %r1112;
	fma.rn.f32 %r1120, %r1111, %r1120, %r1112;
	fma.rn.f32 %r1121, %r1111, %r1121, %r1112;
	fma.rn.f32 %r1122, %r1111, %r1122, %r1112;
	fma.rn.f32 %r1123, %r1111, %r1123, %r1112;
	fma.rn.f32 %r1124, %r1111, %r1124, %r1112;
	fma.rn.f32 %r1125, %r1111, %r1125, %r1112;
	fma.rn.f32 %r1126, %r1111, %r1126, %r1112;
	fma.rn.f32 %r1127, %r1111, %r1127, %r1112;
	fma.rn.f32 %r1128, %r1111, %r1128, %r1112;
	fma.rn.f32 %r1113, %r1111, %r1113, %r1112;
	fma.rn.f32 %r1114, %r1111, %r1114, %r1112;
	fma.rn.f32 %r1115, %r1111, %r1115, %r1112;
	fma.rn.f32 %r1116, %r1111, %r1116, %r1112;
	fma.rn.f32 %r1117, %r1111, %r1117, %r1112;
	fma.rn.f32 %r1118, %r1111, %r1118, %r1112;
	fma.rn.f32 %r1119, %r1111, %r1119, %r1112;
	fma.rn.f32 %r1120, %r1111, %r1120, %r1112;
	fma.rn.f32 %r1121, %r1111, %r1121, %r1112;
	fma.rn.f32 %r1122, %r1111, %r1122, %r1112;
	fma.rn.f32 %r1123, %r1111, %r1123, %r1112;
	fma.rn.f32 %r1124, %r1111, %r1124, %r1112;
	fma.rn.f32 %r1125, %r1111, %r1125, %r1112;
	fma.rn.f32 %r1126, %r1111, %r1126, %r1112;
	fma.rn.f32 %r1127, %r1111, %r1127, %r1112;
	fma.rn.f32 %r1128, %r1111, %r1128, %r1112;
	
	;;#ASMEND
	s_cmp_lg_u32 s2, 0
	s_cbranch_scc1 .LBB0_2
.LBB0_3:                                ; %.loopexit
	s_or_b32 exec_lo, exec_lo, s3
	s_and_b32 s2, 0xffff, s4
	s_load_b64 s[0:1], s[0:1], 0x0
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	v_cvt_f64_i32_e32 v[0:1], v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[0:1], v[0:1], v[0:1]
	v_cvt_f32_f64_e32 v0, v[0:1]
	v_mov_b32_e32 v1, 0
	global_store_b32 v1, v0, s[0:1]
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z7computePfii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 272
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.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_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	_Z7computePfii, .Lfunc_end0-_Z7computePfii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 5980
; NumSgprs: 18
; NumVgprs: 3
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; 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
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.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 __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         20
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         28
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         30
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         32
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         34
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         36
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         38
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         80
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 272
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z7computePfii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z7computePfii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     3
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
