#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*/ INT32_C(int);
int /*<<< orphan*/ UINT32_C(int);
int test_instantiate_vec(float, float, float, float);
int test_instantiate_vec_1(float);
int test_instantiate_vec_i(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/, int /*<<< orphan*/);
int test_instantiate_vec_i1(int /*<<< orphan*/);
int test_instantiate_vec_izero();
int test_instantiate_vec_u(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/, int /*<<< orphan*/);
int test_instantiate_vec_u1(int /*<<< orphan*/);
int test_instantiate_vec_uzero();
int test_instantiate_vec_zero();
int test_instantiate(void) {
  int ret = 0;
  ret |= test_instantiate_vec(1.0f, 2.0f, 4.0f, 8.0f);
  ret |=
      test_instantiate_vec_i(INT32_C(-1), INT32_C(2), INT32_C(-4), INT32_C(8));
  ret |= test_instantiate_vec_u(UINT32_C(1), UINT32_C(2), UINT32_C(4),
                                UINT32_C(0xFFFFFFFF));
  ret |= test_instantiate_vec_1(42.0f);
  ret |= test_instantiate_vec_i1(INT32_C(-42));
  ret |= test_instantiate_vec_u1(UINT32_C(0xFFFFFFFF));
  ret |= test_instantiate_vec_zero();
  ret |= test_instantiate_vec_izero();
  ret |= test_instantiate_vec_uzero();
  return ret;
}


x86 assembly (clang, -O0):
<test_instantiate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xe3d(%rip),%xmm0
movss  0xe39(%rip),%xmm1
movss  0xe35(%rip),%xmm2
movss  0xe31(%rip),%xmm3
call   10b0 <test_instantiate_vec@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0xffffffff,%edi
call   1090 <INT32_C@plt>
mov    %eax,-0x1c(%rbp)
mov    $0x2,%edi
call   1090 <INT32_C@plt>
mov    %eax,-0x18(%rbp)
mov    $0xfffffffc,%edi
call   1090 <INT32_C@plt>
mov    %eax,-0x14(%rbp)
mov    $0x8,%edi
call   1090 <INT32_C@plt>
mov    -0x1c(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    %eax,%ecx
call   1050 <test_instantiate_vec_i@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x1,%edi
call   10c0 <UINT32_C@plt>
mov    %eax,-0x10(%rbp)
mov    $0x2,%edi
call   10c0 <UINT32_C@plt>
mov    %eax,-0xc(%rbp)
mov    $0x4,%edi
call   10c0 <UINT32_C@plt>
mov    %eax,-0x8(%rbp)
mov    $0xffffffff,%edi
call   10c0 <UINT32_C@plt>
mov    -0x10(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    %eax,%ecx
call   1040 <test_instantiate_vec_u@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
movss  0xd80(%rip),%xmm0
call   1070 <test_instantiate_vec_1@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0xffffffd6,%edi
call   1090 <INT32_C@plt>
mov    %eax,%edi
call   1080 <test_instantiate_vec_i1@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0xffffffff,%edi
call   10c0 <UINT32_C@plt>
mov    %eax,%edi
call   1030 <test_instantiate_vec_u1@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10d0 <test_instantiate_vec_zero@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10a0 <test_instantiate_vec_izero@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1060 <test_instantiate_vec_uzero@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_instantiate>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
movss  0xe40(%rip),%xmm0
movss  0xe3c(%rip),%xmm1
movss  0xe38(%rip),%xmm2
movss  0xe34(%rip),%xmm3
call   10b0 <test_instantiate_vec@plt>
mov    %eax,%r14d
mov    $0xffffffff,%edi
call   1090 <INT32_C@plt>
mov    %eax,%r15d
mov    $0x2,%edi
call   1090 <INT32_C@plt>
mov    %eax,%ebx
mov    $0xfffffffc,%edi
call   1090 <INT32_C@plt>
mov    %eax,%ebp
mov    $0x8,%edi
call   1090 <INT32_C@plt>
mov    %r15d,%edi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %eax,%ecx
call   1050 <test_instantiate_vec_i@plt>
mov    %eax,%r15d
mov    $0x1,%edi
call   10c0 <UINT32_C@plt>
mov    %eax,%r12d
mov    $0x2,%edi
call   10c0 <UINT32_C@plt>
mov    %eax,%ebp
mov    $0x4,%edi
call   10c0 <UINT32_C@plt>
mov    %eax,%ebx
mov    $0xffffffff,%edi
call   10c0 <UINT32_C@plt>
mov    %r12d,%edi
mov    %ebp,%esi
mov    %ebx,%edx
mov    %eax,%ecx
call   1040 <test_instantiate_vec_u@plt>
mov    %eax,%ebp
or     %r15d,%ebp
or     %r14d,%ebp
movss  0xda3(%rip),%xmm0
call   1070 <test_instantiate_vec_1@plt>
mov    %eax,%r14d
mov    $0xffffffd6,%edi
call   1090 <INT32_C@plt>
mov    %eax,%edi
call   1080 <test_instantiate_vec_i1@plt>
mov    %eax,%r15d
or     %r14d,%r15d
or     %ebp,%r15d
mov    $0xffffffff,%edi
call   10c0 <UINT32_C@plt>
mov    %eax,%edi
call   1030 <test_instantiate_vec_u1@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   10d0 <test_instantiate_vec_zero@plt>
mov    %eax,%ebp
or     %r14d,%ebp
xor    %eax,%eax
call   10a0 <test_instantiate_vec_izero@plt>
mov    %eax,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   1060 <test_instantiate_vec_uzero@plt>
or     %ebx,%eax
or     %r15d,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @test_instantiate() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @test_instantiate_vec(float 1.000000e+00, float 2.000000e+00, float 4.000000e+00, float 8.000000e+00)
%3 = load i32, i32* %1
%4 = or i32 %3, %2
store i32 %4, i32* %1
%5 = call i32 @INT32_C(i32 -1)
%6 = call i32 @INT32_C(i32 2)
%7 = call i32 @INT32_C(i32 -4)
%8 = call i32 @INT32_C(i32 8)
%9 = call i32 @test_instantiate_vec_i(i32 %5, i32 %6, i32 %7, i32 %8)
%10 = load i32, i32* %1
%11 = or i32 %10, %9
store i32 %11, i32* %1
%12 = call i32 @UINT32_C(i32 1)
%13 = call i32 @UINT32_C(i32 2)
%14 = call i32 @UINT32_C(i32 4)
%15 = call i32 @UINT32_C(i32 -1)
%16 = call i32 @test_instantiate_vec_u(i32 %12, i32 %13, i32 %14, i32 %15)
%17 = load i32, i32* %1
%18 = or i32 %17, %16
store i32 %18, i32* %1
%19 = call i32 @test_instantiate_vec_1(float 4.200000e+01)
%20 = load i32, i32* %1
%21 = or i32 %20, %19
store i32 %21, i32* %1
%22 = call i32 @INT32_C(i32 -42)
%23 = call i32 @test_instantiate_vec_i1(i32 %22)
%24 = load i32, i32* %1
%25 = or i32 %24, %23
store i32 %25, i32* %1
%26 = call i32 @UINT32_C(i32 -1)
%27 = call i32 @test_instantiate_vec_u1(i32 %26)
%28 = load i32, i32* %1
%29 = or i32 %28, %27
store i32 %29, i32* %1
%30 = call i32 (...) @test_instantiate_vec_zero()
%31 = load i32, i32* %1
%32 = or i32 %31, %30
store i32 %32, i32* %1
%33 = call i32 (...) @test_instantiate_vec_izero()
%34 = load i32, i32* %1
%35 = or i32 %34, %33
store i32 %35, i32* %1
%36 = call i32 (...) @test_instantiate_vec_uzero()
%37 = load i32, i32* %1
%38 = or i32 %37, %36
store i32 %38, i32* %1
%39 = load i32, i32* %1
ret i32 %39
}

LLVM IR (-O2):
define i32 @test_instantiate() {
%1 = tail call i32 @test_instantiate_vec(float 1.000000e+00, float 2.000000e+00, float 4.000000e+00, float 8.000000e+00)
%2 = tail call i32 @INT32_C(i32 -1)
%3 = tail call i32 @INT32_C(i32 2)
%4 = tail call i32 @INT32_C(i32 -4)
%5 = tail call i32 @INT32_C(i32 8)
%6 = tail call i32 @test_instantiate_vec_i(i32 %2, i32 %3, i32 %4, i32 %5)
%7 = or i32 %6, %1
%8 = tail call i32 @UINT32_C(i32 1)
%9 = tail call i32 @UINT32_C(i32 2)
%10 = tail call i32 @UINT32_C(i32 4)
%11 = tail call i32 @UINT32_C(i32 -1)
%12 = tail call i32 @test_instantiate_vec_u(i32 %8, i32 %9, i32 %10, i32 %11)
%13 = or i32 %7, %12
%14 = tail call i32 @test_instantiate_vec_1(float 4.200000e+01)
%15 = or i32 %13, %14
%16 = tail call i32 @INT32_C(i32 -42)
%17 = tail call i32 @test_instantiate_vec_i1(i32 %16)
%18 = or i32 %15, %17
%19 = tail call i32 @UINT32_C(i32 -1)
%20 = tail call i32 @test_instantiate_vec_u1(i32 %19)
%21 = or i32 %18, %20
%22 = tail call i32 (...) @test_instantiate_vec_zero()
%23 = or i32 %21, %22
%24 = tail call i32 (...) @test_instantiate_vec_izero()
%25 = or i32 %23, %24
%26 = tail call i32 (...) @test_instantiate_vec_uzero()
%27 = or i32 %25, %26
ret i32 %27
}