blob: be8364769e322fa9d92491ed6954d9167bc0d9d4 [file] [log] [blame]
Zahira Ammarguellat27f5d352019-12-09 00:50:30 -05001// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -target-cpu x86-64 %s -O3 -opt-record-file=t1.opt -fopenmp -emit-llvm-bc -o %t.bc
2// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -target-cpu x86-64 -O3 -x ir %t.bc -opt-record-file %t.opt -fopenmp -emit-obj
Zahira Ammarguellata3b25522019-12-05 10:23:47 -05003// RUN: cat %t.opt | FileCheck -check-prefix=CHECK %s
Zahira Ammarguellat32c802e2019-12-09 09:24:47 -05004// REQUIRES: x86-registered-target
Zahira Ammarguellata3b25522019-12-05 10:23:47 -05005
6void foo(int *a, int *b, int *c) {
7#pragma omp parallel for
Zahira Ammarguellat27f5d352019-12-09 00:50:30 -05008 for (int i = 0; i < 100; i++) {
9 a[i] = b[i] + c[i];
10 }
Zahira Ammarguellata3b25522019-12-05 10:23:47 -050011}
12
13// CHECK: --- !Missed
14// CHECK: Pass: inline
15// CHECK: Name: NoDefinition
16// CHECK: Function: foo