#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 */
typedef int int8_t;

/* Variables and functions */
void test_vorr_s8x16(int8_t *__restrict__ dest, int8_t *a, int8_t *b) {
  int i;
  for (i = 0; i < 16; i++) {
    dest[i] = a[i] | b[i];
  }
}


x86 assembly (clang, -O0):
<test_vorr_s8x16>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x10,-0x1c(%rbp)
jge    1150 <test_vorr_s8x16+0x50>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
or     (%rax,%rcx,4),%edx
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1117 <test_vorr_s8x16+0x17>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_vorr_s8x16>:
movups (%rsi),%xmm0
movups (%rdx),%xmm1
orps   %xmm0,%xmm1
movups %xmm1,(%rdi)
movups 0x10(%rsi),%xmm0
movups 0x10(%rdx),%xmm1
orps   %xmm0,%xmm1
movups %xmm1,0x10(%rdi)
movups 0x20(%rsi),%xmm0
movups 0x20(%rdx),%xmm1
orps   %xmm0,%xmm1
movups %xmm1,0x20(%rdi)
movups 0x30(%rsi),%xmm0
movups 0x30(%rdx),%xmm1
orps   %xmm0,%xmm1
movups %xmm1,0x30(%rdi)
ret

LLVM IR (-O0):
define void @test_vorr_s8x16(i32* noalias %0, i32* %1, i32* %2) {
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i32
store i32* %0, i32** %4
store i32* %1, i32** %5
store i32* %2, i32** %6
store i32 0, i32* %7
br label %8
8: ; preds = %27, %3
%9 = load i32, i32* %7
%10 = icmp slt i32 %9, 16
br i1 %10, label %11, label %30
11: ; preds = %8
%12 = load i32*, i32** %5
%13 = load i32, i32* %7
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, i32* %12, i64 %14
%16 = load i32, i32* %15
%17 = load i32*, i32** %6
%18 = load i32, i32* %7
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, i32* %17, i64 %19
%21 = load i32, i32* %20
%22 = or i32 %16, %21
%23 = load i32*, i32** %4
%24 = load i32, i32* %7
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, i32* %23, i64 %25
store i32 %22, i32* %26
br label %27
27: ; preds = %11
%28 = load i32, i32* %7
%29 = add nsw i32 %28, 1
store i32 %29, i32* %7
br label %8
30: ; preds = %8
ret void
}

LLVM IR (-O2):
define void @test_vorr_s8x16(i32* noalias nocapture writeonly %0, i32* nocapture %1, i32* nocapture %2) {
%4 = bitcast i32* %1 to <4 x i32>*
%5 = load <4 x i32>, <4 x i32>* %4
%6 = bitcast i32* %2 to <4 x i32>*
%7 = load <4 x i32>, <4 x i32>* %6
%8 = or <4 x i32> %7, %5
%9 = bitcast i32* %0 to <4 x i32>*
store <4 x i32> %8, <4 x i32>* %9
%10 = getelementptr inbounds i32, i32* %1, i64 4
%11 = getelementptr inbounds i32, i32* %2, i64 4
%12 = getelementptr inbounds i32, i32* %0, i64 4
%13 = bitcast i32* %10 to <4 x i32>*
%14 = load <4 x i32>, <4 x i32>* %13
%15 = bitcast i32* %11 to <4 x i32>*
%16 = load <4 x i32>, <4 x i32>* %15
%17 = or <4 x i32> %16, %14
%18 = bitcast i32* %12 to <4 x i32>*
store <4 x i32> %17, <4 x i32>* %18
%19 = getelementptr inbounds i32, i32* %1, i64 8
%20 = getelementptr inbounds i32, i32* %2, i64 8
%21 = getelementptr inbounds i32, i32* %0, i64 8
%22 = bitcast i32* %19 to <4 x i32>*
%23 = load <4 x i32>, <4 x i32>* %22
%24 = bitcast i32* %20 to <4 x i32>*
%25 = load <4 x i32>, <4 x i32>* %24
%26 = or <4 x i32> %25, %23
%27 = bitcast i32* %21 to <4 x i32>*
store <4 x i32> %26, <4 x i32>* %27
%28 = getelementptr inbounds i32, i32* %1, i64 12
%29 = getelementptr inbounds i32, i32* %2, i64 12
%30 = getelementptr inbounds i32, i32* %0, i64 12
%31 = bitcast i32* %28 to <4 x i32>*
%32 = load <4 x i32>, <4 x i32>* %31
%33 = bitcast i32* %29 to <4 x i32>*
%34 = load <4 x i32>, <4 x i32>* %33
%35 = or <4 x i32> %34, %32
%36 = bitcast i32* %30 to <4 x i32>*
store <4 x i32> %35, <4 x i32>* %36
ret void
}