#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 uint8_t;

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


x86 assembly (clang, -O0):
<test_vorrimm_u8x16>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x10,-0x14(%rbp)
jge    1144 <test_vorrimm_u8x16+0x44>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
or     $0x1,%edx
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1113 <test_vorrimm_u8x16+0x13>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_vorrimm_u8x16>:
movups (%rsi),%xmm0
movaps 0xef6(%rip),%xmm1
orps   %xmm1,%xmm0
movups %xmm0,(%rdi)
movups 0x10(%rsi),%xmm0
orps   %xmm1,%xmm0
movups %xmm0,0x10(%rdi)
movups 0x20(%rsi),%xmm0
orps   %xmm1,%xmm0
movups %xmm0,0x20(%rdi)
movups 0x30(%rsi),%xmm0
orps   %xmm1,%xmm0
movups %xmm0,0x30(%rdi)
ret

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

LLVM IR (-O2):
define void @test_vorrimm_u8x16(i32* noalias nocapture writeonly %0, i32* nocapture %1) {
%3 = bitcast i32* %1 to <4 x i32>*
%4 = load <4 x i32>, <4 x i32>* %3
%5 = or <4 x i32> %4, <i32 1, i32 1, i32 1, i32 1>
%6 = bitcast i32* %0 to <4 x i32>*
store <4 x i32> %5, <4 x i32>* %6
%7 = getelementptr inbounds i32, i32* %1, i64 4
%8 = getelementptr inbounds i32, i32* %0, i64 4
%9 = bitcast i32* %7 to <4 x i32>*
%10 = load <4 x i32>, <4 x i32>* %9
%11 = or <4 x i32> %10, <i32 1, i32 1, i32 1, i32 1>
%12 = bitcast i32* %8 to <4 x i32>*
store <4 x i32> %11, <4 x i32>* %12
%13 = getelementptr inbounds i32, i32* %1, i64 8
%14 = getelementptr inbounds i32, i32* %0, i64 8
%15 = bitcast i32* %13 to <4 x i32>*
%16 = load <4 x i32>, <4 x i32>* %15
%17 = or <4 x i32> %16, <i32 1, i32 1, i32 1, i32 1>
%18 = bitcast i32* %14 to <4 x i32>*
store <4 x i32> %17, <4 x i32>* %18
%19 = getelementptr inbounds i32, i32* %1, i64 12
%20 = getelementptr inbounds i32, i32* %0, i64 12
%21 = bitcast i32* %19 to <4 x i32>*
%22 = load <4 x i32>, <4 x i32>* %21
%23 = or <4 x i32> %22, <i32 1, i32 1, i32 1, i32 1>
%24 = bitcast i32* %20 to <4 x i32>*
store <4 x i32> %23, <4 x i32>* %24
ret void
}