void TestRounding(float expectation1, float expectation2) {
  volatile float f = 1.968750f;
  volatile float m = 0x1.0p23f;
  volatile float x = f + m;
  float_eq(expectation1, x)
      ? (void)0
      : fail("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/blois/AndroidSDKCloneMin/refs/heads/"
             "master/ndk/tests/device/fenv/jni/test_fenv.c",
             72, __func__,
             "float_eq("
             "expectation1"
             ","
             "x"
             ")");
  x -= m;
  ((expectation2) == (x))
      ? (void)0
      : fail("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/blois/AndroidSDKCloneMin/refs/heads/"
             "master/ndk/tests/device/fenv/jni/test_fenv.c",
             74, __func__,
             "expectation2"
             "=="
             "x");
}


x86 assembly (clang, -O0):
<TestRounding>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  0xeca(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  0xeb9(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0xc(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x14(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    $0x2,%al
call   1030 <float_eq@plt>
cmp    $0x0,%eax
je     1186 <TestRounding+0x66>
jmp    11a7 <TestRounding+0x87>
lea    0xe7b(%rip),%rdi
mov    $0x48,%esi
lea    0xf1a(%rip),%rdx
lea    0xf20(%rip),%rcx
mov    $0x0,%al
call   1040 <fail@plt>
movss  -0x10(%rbp),%xmm1
movss  -0x14(%rbp),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x8(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
ucomiss %xmm1,%xmm0
jne    11d8 <TestRounding+0xb8>
jp     11d8 <TestRounding+0xb8>
jmp    11f9 <TestRounding+0xd9>
lea    0xe29(%rip),%rdi
mov    $0x4a,%esi
lea    0xec8(%rip),%rdx
lea    0xee7(%rip),%rcx
mov    $0x0,%al
call   1040 <fail@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TestRounding>:
sub    $0x18,%rsp
movss  %xmm1,0x10(%rsp)
movl   $0x3ffc0000,0x14(%rsp)
3f
movl   $0x4b000000,0xc(%rsp)
4b
movss  0x14(%rsp),%xmm1
addss  0xc(%rsp),%xmm1
movss  %xmm1,0x8(%rsp)
cvtss2sd %xmm0,%xmm0
movss  0x8(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    $0x2,%al
call   1030 <float_eq@plt>
test   %eax,%eax
jne    1186 <TestRounding+0x66>
lea    0xe94(%rip),%rdi
lea    0xf38(%rip),%rdx
lea    0xf3e(%rip),%rcx
mov    $0x48,%esi
xor    %eax,%eax
call   1040 <fail@plt>
movss  0xc(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
subss  %xmm0,%xmm1
movss  %xmm1,0x8(%rsp)
movss  0x8(%rsp),%xmm0
ucomiss 0x10(%rsp),%xmm0
jne    11b0 <TestRounding+0x90>
jp     11b0 <TestRounding+0x90>
add    $0x18,%rsp
ret
lea    0xe49(%rip),%rdi
lea    0xeed(%rip),%rdx
lea    0xf0c(%rip),%rcx
mov    $0x4a,%esi
xor    %eax,%eax
add    $0x18,%rsp
jmp    1040 <fail@plt>

LLVM IR (-O0):
@.str = [171 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/blois/AndroidSDKCloneMin/refs/heads/master/ndk/tests/device/fenv/jni/test_fenv.c\00"
@__func__.TestRounding = [13 x i8] c"TestRounding\00"
@.str.1 = [25 x i8] c"float_eq(expectation1,x)\00"
@.str.2 = [16 x i8] c"expectation2==x\00"
define void @TestRounding(float %0, float %1) {
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
store float %0, float* %3
store float %1, float* %4
store volatile float 1.968750e+00, float* %5
store volatile float 0x4160000000000000, float* %6
%8 = load volatile float, float* %5
%9 = load volatile float, float* %6
%10 = fadd float %8, %9
store volatile float %10, float* %7
%11 = load float, float* %3
%12 = fpext float %11 to double
%13 = load volatile float, float* %7
%14 = fpext float %13 to double
%15 = call i32 (double, double, ...) bitcast (i32 (...)* @float_eq to i32 (double, double, ...)*)(double %12, double %14)
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %2
br label %20
18: ; preds = %2
%19 = call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @fail to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 72, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__func__.TestRounding, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
br label %20
20: ; preds = %18, %17
%21 = load volatile float, float* %6
%22 = load volatile float, float* %7
%23 = fsub float %22, %21
store volatile float %23, float* %7
%24 = load float, float* %4
%25 = load volatile float, float* %7
%26 = fcmp oeq float %24, %25
br i1 %26, label %27, label %28
27: ; preds = %20
br label %30
28: ; preds = %20
%29 = call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @fail to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 74, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__func__.TestRounding, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %30
30: ; preds = %28, %27
ret void
}

LLVM IR (-O2):
@.str = [171 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/blois/AndroidSDKCloneMin/refs/heads/master/ndk/tests/device/fenv/jni/test_fenv.c\00"
@__func__.TestRounding = [13 x i8] c"TestRounding\00"
@.str.1 = [25 x i8] c"float_eq(expectation1,x)\00"
@.str.2 = [16 x i8] c"expectation2==x\00"
define void @TestRounding(float %0, float %1) {
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = bitcast float* %3 to i8*
store volatile float 1.968750e+00, float* %3
%7 = bitcast float* %4 to i8*
store volatile float 0x4160000000000000, float* %4
%8 = bitcast float* %5 to i8*
%9 = load volatile float, float* %3
%10 = load volatile float, float* %4
%11 = fadd float %9, %10
store volatile float %11, float* %5
%12 = fpext float %0 to double
%13 = load volatile float, float* %5
%14 = fpext float %13 to double
%15 = tail call i32 (double, double, ...) bitcast (i32 (...)* @float_eq to i32 (double, double, ...)*)(double %12, double %14)
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = tail call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @fail to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 72, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__func__.TestRounding, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
br label %19
19: ; preds = %2, %17
%20 = load volatile float, float* %4
%21 = load volatile float, float* %5
%22 = fsub float %21, %20
store volatile float %22, float* %5
%23 = load volatile float, float* %5
%24 = fcmp oeq float %23, %1
br i1 %24, label %27, label %25
25: ; preds = %19
%26 = tail call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @fail to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 74, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__func__.TestRounding, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %27
27: ; preds = %19, %25
ret void
}