[PowerPC][NFC] Add a test case for extract and store patterns
[llvm-core.git] / test / Bitcode / thinlto-alias2.ll
blob90e886570d8f5b6f7876de85b0319b939e48ed96
1 ; Test to check the callgraph for call to alias in module.
2 ; RUN: opt -module-summary %s -o %t.o
3 ; RUN: llvm-bcanalyzer -dump %t.o | FileCheck %s
5 ; CHECK:       <GLOBALVAL_SUMMARY_BLOCK
6 ; CHECK-NEXT:    <VERSION
7 ; CHECK-NEXT:    <PERMODULE {{.*}} op4=0 op5=[[ALIASID:[0-9]+]]/>
8 ; CHECK-NEXT:    <PERMODULE {{.*}} op0=[[ALIASEEID:[0-9]+]]
9 ; CHECK-NEXT:    <ALIAS {{.*}} op0=[[ALIASID]] {{.*}} op2=[[ALIASEEID]]/>
10 ; CHECK-NEXT:  </GLOBALVAL_SUMMARY_BLOCK>
12 ; ModuleID = 'thinlto-alias2.ll'
13 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
14 target triple = "x86_64-unknown-linux-gnu"
16 define i32 @main() {
17 entry:
18     call void (...) @analias()
19     ret i32 0
22 @analias = alias void (...), bitcast (void ()* @aliasee to void (...)*)
24 define void @aliasee() #0 {
25 entry:
26     ret void