Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / noinline.c
blob18ba4b54a26821fae0a338f7f4851e789e95a706
1 // Make sure -fno-inline-functions is behaving correctly.
3 // RUN: %clang_cc1 -O3 -fno-inline -fno-inline-functions -emit-llvm %s -o - | FileCheck -check-prefix=NOINLINE %s
5 inline int dont_inline_me(int a, int b) { return(a+b); }
7 inline __attribute__ ((__always_inline__)) int inline_me(int a, int b) { return(a*b); }
9 volatile int *pa = (int*) 0x1000;
10 void foo(void) {
11 // NOINLINE: @foo
12 // NOINLINE: dont_inline_me
13 // NOINLINE-NOT: inlinehint
14 pa[0] = dont_inline_me(pa[1],pa[2]);
15 // NOINLINE-NOT: inline_me
16 pa[3] = inline_me(pa[4],pa[5]);
19 // NOINLINE: Function Attrs: noinline
20 // NOINLINE: @dont_inline_me