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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ FE_DOWNWARD;
int /*<<< orphan*/ FE_TONEAREST;
int /*<<< orphan*/ FE_TOWARDZERO;
int /*<<< orphan*/ FE_UPWARD;
int /*<<< orphan*/ dotest_v16double(int /*<<< orphan*/, char *);
int /*<<< orphan*/ dotest_v16float(int /*<<< orphan*/, char *);
int /*<<< orphan*/ dotest_v32double(int /*<<< orphan*/, char *);
int /*<<< orphan*/ dotest_v32float(int /*<<< orphan*/, char *);
int /*<<< orphan*/ dotest_v8float(int /*<<< orphan*/, char *);
int main() {
  dotest_v8float(FE_TONEAREST, "FE_TONEAREST"
                               " "
                               "8"
                               " "
                               "float");
  dotest_v16float(FE_TONEAREST, "FE_TONEAREST"
                                " "
                                "16"
                                " "
                                "float");
  dotest_v32float(FE_TONEAREST, "FE_TONEAREST"
                                " "
                                "32"
                                " "
                                "float");
  dotest_v16double(FE_TONEAREST, "FE_TONEAREST"
                                 " "
                                 "16"
                                 " "
                                 "double");
  dotest_v32double(FE_TONEAREST, "FE_TONEAREST"
                                 " "
                                 "32"
                                 " "
                                 "double");
  dotest_v8float(FE_UPWARD, "FE_UPWARD"
                            " "
                            "8"
                            " "
                            "float");
  dotest_v16float(FE_UPWARD, "FE_UPWARD"
                             " "
                             "16"
                             " "
                             "float");
  dotest_v32float(FE_UPWARD, "FE_UPWARD"
                             " "
                             "32"
                             " "
                             "float");
  dotest_v16double(FE_UPWARD, "FE_UPWARD"
                              " "
                              "16"
                              " "
                              "double");
  dotest_v32double(FE_UPWARD, "FE_UPWARD"
                              " "
                              "32"
                              " "
                              "double");
  dotest_v8float(FE_DOWNWARD, "FE_DOWNWARD"
                              " "
                              "8"
                              " "
                              "float");
  dotest_v16float(FE_DOWNWARD, "FE_DOWNWARD"
                               " "
                               "16"
                               " "
                               "float");
  dotest_v32float(FE_DOWNWARD, "FE_DOWNWARD"
                               " "
                               "32"
                               " "
                               "float");
  dotest_v16double(FE_DOWNWARD, "FE_DOWNWARD"
                                " "
                                "16"
                                " "
                                "double");
  dotest_v32double(FE_DOWNWARD, "FE_DOWNWARD"
                                " "
                                "32"
                                " "
                                "double");
  dotest_v8float(FE_TOWARDZERO, "FE_TOWARDZERO"
                                " "
                                "8"
                                " "
                                "float");
  dotest_v16float(FE_TOWARDZERO, "FE_TOWARDZERO"
                                 " "
                                 "16"
                                 " "
                                 "float");
  dotest_v32float(FE_TOWARDZERO, "FE_TOWARDZERO"
                                 " "
                                 "32"
                                 " "
                                 "float");
  dotest_v16double(FE_TOWARDZERO, "FE_TOWARDZERO"
                                  " "
                                  "16"
                                  " "
                                  "double");
  dotest_v32double(FE_TOWARDZERO, "FE_TOWARDZERO"
                                  " "
                                  "32"
                                  " "
                                  "double");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e7a(%rip),%rax
mov    (%rax),%edi
lea    0xe91(%rip),%rsi
call   1070 <dotest_v8float@plt>
mov    0x2e65(%rip),%rax
mov    (%rax),%edi
lea    0xe91(%rip),%rsi
call   1050 <dotest_v16float@plt>
mov    0x2e50(%rip),%rax
mov    (%rax),%edi
lea    0xe92(%rip),%rsi
call   1040 <dotest_v32float@plt>
mov    0x2e3b(%rip),%rax
mov    (%rax),%edi
lea    0xe93(%rip),%rsi
call   1030 <dotest_v16double@plt>
mov    0x2e26(%rip),%rax
mov    (%rax),%edi
lea    0xe95(%rip),%rsi
call   1060 <dotest_v32double@plt>
mov    0x2df9(%rip),%rax
mov    (%rax),%edi
lea    0xe97(%rip),%rsi
call   1070 <dotest_v8float@plt>
mov    0x2de4(%rip),%rax
mov    (%rax),%edi
lea    0xe94(%rip),%rsi
call   1050 <dotest_v16float@plt>
mov    0x2dcf(%rip),%rax
mov    (%rax),%edi
lea    0xe92(%rip),%rsi
call   1040 <dotest_v32float@plt>
mov    0x2dba(%rip),%rax
mov    (%rax),%edi
lea    0xe90(%rip),%rsi
call   1030 <dotest_v16double@plt>
mov    0x2da5(%rip),%rax
mov    (%rax),%edi
lea    0xe8f(%rip),%rsi
call   1060 <dotest_v32double@plt>
mov    0x2da0(%rip),%rax
mov    (%rax),%edi
lea    0xe8e(%rip),%rsi
call   1070 <dotest_v8float@plt>
mov    0x2d8b(%rip),%rax
mov    (%rax),%edi
lea    0xe8d(%rip),%rsi
call   1050 <dotest_v16float@plt>
mov    0x2d76(%rip),%rax
mov    (%rax),%edi
lea    0xe8d(%rip),%rsi
call   1040 <dotest_v32float@plt>
mov    0x2d61(%rip),%rax
mov    (%rax),%edi
lea    0xe8d(%rip),%rsi
call   1030 <dotest_v16double@plt>
mov    0x2d4c(%rip),%rax
mov    (%rax),%edi
lea    0xe8e(%rip),%rsi
call   1060 <dotest_v32double@plt>
mov    0x2d47(%rip),%rax
mov    (%rax),%edi
lea    0xe8f(%rip),%rsi
call   1070 <dotest_v8float@plt>
mov    0x2d32(%rip),%rax
mov    (%rax),%edi
lea    0xe90(%rip),%rsi
call   1050 <dotest_v16float@plt>
mov    0x2d1d(%rip),%rax
mov    (%rax),%edi
lea    0xe92(%rip),%rsi
call   1040 <dotest_v32float@plt>
mov    0x2d08(%rip),%rax
mov    (%rax),%edi
lea    0xe94(%rip),%rsi
call   1030 <dotest_v16double@plt>
mov    0x2cf3(%rip),%rax
mov    (%rax),%edi
lea    0xe97(%rip),%rsi
call   1060 <dotest_v32double@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2e88(%rip),%rbx
mov    (%rbx),%edi
lea    0xe9f(%rip),%rsi
call   1070 <dotest_v8float@plt>
mov    (%rbx),%edi
lea    0xea6(%rip),%rsi
call   1050 <dotest_v16float@plt>
mov    (%rbx),%edi
lea    0xeae(%rip),%rsi
call   1040 <dotest_v32float@plt>
mov    (%rbx),%edi
lea    0xeb6(%rip),%rsi
call   1030 <dotest_v16double@plt>
mov    (%rbx),%edi
lea    0xebf(%rip),%rsi
call   1060 <dotest_v32double@plt>
mov    0x2e23(%rip),%rbx
mov    (%rbx),%edi
lea    0xec1(%rip),%rsi
call   1070 <dotest_v8float@plt>
mov    (%rbx),%edi
lea    0xec5(%rip),%rsi
call   1050 <dotest_v16float@plt>
mov    (%rbx),%edi
lea    0xeca(%rip),%rsi
call   1040 <dotest_v32float@plt>
mov    (%rbx),%edi
lea    0xecf(%rip),%rsi
call   1030 <dotest_v16double@plt>
mov    (%rbx),%edi
lea    0xed5(%rip),%rsi
call   1060 <dotest_v32double@plt>
mov    0x2de6(%rip),%rbx
mov    (%rbx),%edi
lea    0xed4(%rip),%rsi
call   1070 <dotest_v8float@plt>
mov    (%rbx),%edi
lea    0xeda(%rip),%rsi
call   1050 <dotest_v16float@plt>
mov    (%rbx),%edi
lea    0xee1(%rip),%rsi
call   1040 <dotest_v32float@plt>
mov    (%rbx),%edi
lea    0xee8(%rip),%rsi
call   1030 <dotest_v16double@plt>
mov    (%rbx),%edi
lea    0xef0(%rip),%rsi
call   1060 <dotest_v32double@plt>
mov    0x2da9(%rip),%rbx
mov    (%rbx),%edi
lea    0xef1(%rip),%rsi
call   1070 <dotest_v8float@plt>
mov    (%rbx),%edi
lea    0xef9(%rip),%rsi
call   1050 <dotest_v16float@plt>
mov    (%rbx),%edi
lea    0xf02(%rip),%rsi
call   1040 <dotest_v32float@plt>
mov    (%rbx),%edi
lea    0xf0b(%rip),%rsi
call   1030 <dotest_v16double@plt>
mov    (%rbx),%edi
lea    0xf15(%rip),%rsi
call   1060 <dotest_v32double@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@FE_TONEAREST = global i32 0
@.str = [21 x i8] c"FE_TONEAREST 8 float\00"
@.str.1 = [22 x i8] c"FE_TONEAREST 16 float\00"
@.str.2 = [22 x i8] c"FE_TONEAREST 32 float\00"
@.str.3 = [23 x i8] c"FE_TONEAREST 16 double\00"
@.str.4 = [23 x i8] c"FE_TONEAREST 32 double\00"
@FE_UPWARD = global i32 0
@.str.5 = [18 x i8] c"FE_UPWARD 8 float\00"
@.str.6 = [19 x i8] c"FE_UPWARD 16 float\00"
@.str.7 = [19 x i8] c"FE_UPWARD 32 float\00"
@.str.8 = [20 x i8] c"FE_UPWARD 16 double\00"
@.str.9 = [20 x i8] c"FE_UPWARD 32 double\00"
@FE_DOWNWARD = global i32 0
@.str.10 = [20 x i8] c"FE_DOWNWARD 8 float\00"
@.str.11 = [21 x i8] c"FE_DOWNWARD 16 float\00"
@.str.12 = [21 x i8] c"FE_DOWNWARD 32 float\00"
@.str.13 = [22 x i8] c"FE_DOWNWARD 16 double\00"
@.str.14 = [22 x i8] c"FE_DOWNWARD 32 double\00"
@FE_TOWARDZERO = global i32 0
@.str.15 = [22 x i8] c"FE_TOWARDZERO 8 float\00"
@.str.16 = [23 x i8] c"FE_TOWARDZERO 16 float\00"
@.str.17 = [23 x i8] c"FE_TOWARDZERO 32 float\00"
@.str.18 = [24 x i8] c"FE_TOWARDZERO 16 double\00"
@.str.19 = [24 x i8] c"FE_TOWARDZERO 32 double\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @FE_TONEAREST
%3 = call i32 @dotest_v8float(i32 %2, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* @FE_TONEAREST
%5 = call i32 @dotest_v16float(i32 %4, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%6 = load i32, i32* @FE_TONEAREST
%7 = call i32 @dotest_v32float(i32 %6, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%8 = load i32, i32* @FE_TONEAREST
%9 = call i32 @dotest_v16double(i32 %8, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%10 = load i32, i32* @FE_TONEAREST
%11 = call i32 @dotest_v32double(i32 %10, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%12 = load i32, i32* @FE_UPWARD
%13 = call i32 @dotest_v8float(i32 %12, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%14 = load i32, i32* @FE_UPWARD
%15 = call i32 @dotest_v16float(i32 %14, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
%16 = load i32, i32* @FE_UPWARD
%17 = call i32 @dotest_v32float(i32 %16, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%18 = load i32, i32* @FE_UPWARD
%19 = call i32 @dotest_v16double(i32 %18, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
%20 = load i32, i32* @FE_UPWARD
%21 = call i32 @dotest_v32double(i32 %20, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
%22 = load i32, i32* @FE_DOWNWARD
%23 = call i32 @dotest_v8float(i32 %22, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
%24 = load i32, i32* @FE_DOWNWARD
%25 = call i32 @dotest_v16float(i32 %24, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0))
%26 = load i32, i32* @FE_DOWNWARD
%27 = call i32 @dotest_v32float(i32 %26, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
%28 = load i32, i32* @FE_DOWNWARD
%29 = call i32 @dotest_v16double(i32 %28, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0))
%30 = load i32, i32* @FE_DOWNWARD
%31 = call i32 @dotest_v32double(i32 %30, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0))
%32 = load i32, i32* @FE_TOWARDZERO
%33 = call i32 @dotest_v8float(i32 %32, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0))
%34 = load i32, i32* @FE_TOWARDZERO
%35 = call i32 @dotest_v16float(i32 %34, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0))
%36 = load i32, i32* @FE_TOWARDZERO
%37 = call i32 @dotest_v32float(i32 %36, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0))
%38 = load i32, i32* @FE_TOWARDZERO
%39 = call i32 @dotest_v16double(i32 %38, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.18, i64 0, i64 0))
%40 = load i32, i32* @FE_TOWARDZERO
%41 = call i32 @dotest_v32double(i32 %40, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.19, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@FE_TONEAREST = global i32 0
@.str = [21 x i8] c"FE_TONEAREST 8 float\00"
@.str.1 = [22 x i8] c"FE_TONEAREST 16 float\00"
@.str.2 = [22 x i8] c"FE_TONEAREST 32 float\00"
@.str.3 = [23 x i8] c"FE_TONEAREST 16 double\00"
@.str.4 = [23 x i8] c"FE_TONEAREST 32 double\00"
@FE_UPWARD = global i32 0
@.str.5 = [18 x i8] c"FE_UPWARD 8 float\00"
@.str.6 = [19 x i8] c"FE_UPWARD 16 float\00"
@.str.7 = [19 x i8] c"FE_UPWARD 32 float\00"
@.str.8 = [20 x i8] c"FE_UPWARD 16 double\00"
@.str.9 = [20 x i8] c"FE_UPWARD 32 double\00"
@FE_DOWNWARD = global i32 0
@.str.10 = [20 x i8] c"FE_DOWNWARD 8 float\00"
@.str.11 = [21 x i8] c"FE_DOWNWARD 16 float\00"
@.str.12 = [21 x i8] c"FE_DOWNWARD 32 float\00"
@.str.13 = [22 x i8] c"FE_DOWNWARD 16 double\00"
@.str.14 = [22 x i8] c"FE_DOWNWARD 32 double\00"
@FE_TOWARDZERO = global i32 0
@.str.15 = [22 x i8] c"FE_TOWARDZERO 8 float\00"
@.str.16 = [23 x i8] c"FE_TOWARDZERO 16 float\00"
@.str.17 = [23 x i8] c"FE_TOWARDZERO 32 float\00"
@.str.18 = [24 x i8] c"FE_TOWARDZERO 16 double\00"
@.str.19 = [24 x i8] c"FE_TOWARDZERO 32 double\00"
define i32 @main() {
%1 = load i32, i32* @FE_TONEAREST
%2 = tail call i32 @dotest_v8float(i32 %1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @FE_TONEAREST
%4 = tail call i32 @dotest_v16float(i32 %3, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @FE_TONEAREST
%6 = tail call i32 @dotest_v32float(i32 %5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @FE_TONEAREST
%8 = tail call i32 @dotest_v16double(i32 %7, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @FE_TONEAREST
%10 = tail call i32 @dotest_v32double(i32 %9, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @FE_UPWARD
%12 = tail call i32 @dotest_v8float(i32 %11, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @FE_UPWARD
%14 = tail call i32 @dotest_v16float(i32 %13, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @FE_UPWARD
%16 = tail call i32 @dotest_v32float(i32 %15, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%17 = load i32, i32* @FE_UPWARD
%18 = tail call i32 @dotest_v16double(i32 %17, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
%19 = load i32, i32* @FE_UPWARD
%20 = tail call i32 @dotest_v32double(i32 %19, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
%21 = load i32, i32* @FE_DOWNWARD
%22 = tail call i32 @dotest_v8float(i32 %21, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
%23 = load i32, i32* @FE_DOWNWARD
%24 = tail call i32 @dotest_v16float(i32 %23, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0))
%25 = load i32, i32* @FE_DOWNWARD
%26 = tail call i32 @dotest_v32float(i32 %25, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
%27 = load i32, i32* @FE_DOWNWARD
%28 = tail call i32 @dotest_v16double(i32 %27, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0))
%29 = load i32, i32* @FE_DOWNWARD
%30 = tail call i32 @dotest_v32double(i32 %29, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0))
%31 = load i32, i32* @FE_TOWARDZERO
%32 = tail call i32 @dotest_v8float(i32 %31, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0))
%33 = load i32, i32* @FE_TOWARDZERO
%34 = tail call i32 @dotest_v16float(i32 %33, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0))
%35 = load i32, i32* @FE_TOWARDZERO
%36 = tail call i32 @dotest_v32float(i32 %35, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0))
%37 = load i32, i32* @FE_TOWARDZERO
%38 = tail call i32 @dotest_v16double(i32 %37, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.18, i64 0, i64 0))
%39 = load i32, i32* @FE_TOWARDZERO
%40 = tail call i32 @dotest_v32double(i32 %39, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.19, i64 0, i64 0))
ret i32 0
}