1 ; Ensure calling bypassing the driver with -fembed-bitcode embeds bitcode pre-
3 ; REQUIRES: x86-registered-target
5 ; RUN: %clang_cc1 -O2 -triple x86_64-unknown-linux-gnu -emit-obj %s -o %t.o -fembed-bitcode=all
6 ; RUN: llvm-objcopy --dump-section=.llvmbc=%t.bc %t.o /dev/null
8 ; Also check that the .llvmcmd section captures the optimization options.
9 ; RUN: llvm-dis %t.bc -o - | FileCheck %s --check-prefix=CHECK-BC
10 ; RUN: llvm-objcopy --dump-section=.llvmcmd=- %t.o /dev/null | FileCheck %s --check-prefix=CHECK-CMD
12 ; CHECK-BC-LABEL: define void @bar() #0 {
13 ; CHECK-BC-NEXT: ret void
15 ; CHECK-BC-LABEL: define void @foo() {
16 ; CHECK-BC-NEXT: call void @bar()
17 ; CHECK-BC-NEXT: ret void
19 ; CHECK-BC-LABEL: attributes #0 = { alwaysinline }
22 define void @bar() #0 {
31 attributes #0 = { alwaysinline }