diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:01:25 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:01:25 +0000 |
| commit | d8e91e46262bc44006913e6796843909f1ac7bcd (patch) | |
| tree | 7d0c143d9b38190e0fa0180805389da22cd834c5 /test/Bitcode/thinlto-function-summary.ll | |
| parent | b7eb8e35e481a74962664b63dfb09483b200209a (diff) | |
Notes
Diffstat (limited to 'test/Bitcode/thinlto-function-summary.ll')
| -rw-r--r-- | test/Bitcode/thinlto-function-summary.ll | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/test/Bitcode/thinlto-function-summary.ll b/test/Bitcode/thinlto-function-summary.ll index 5922a8b3c4d0..67c50379e7ab 100644 --- a/test/Bitcode/thinlto-function-summary.ll +++ b/test/Bitcode/thinlto-function-summary.ll @@ -13,18 +13,21 @@ ; BC-NEXT: <FUNCTION op0=7 op1=39 ; "variadic" ; BC-NEXT: <FUNCTION op0=46 op1=8 +; "llvm.va_start" +; BC-NEXT: <FUNCTION op0=54 op1=13 ; "f" -; BC-NEXT: <ALIAS op0=54 op1=1 +; BC-NEXT: <ALIAS op0=67 op1=1 ; BC: <GLOBALVAL_SUMMARY_BLOCK ; BC-NEXT: <VERSION +; BC-NEXT: <FLAGS ; BC-NEXT: <PERMODULE {{.*}} op0=1 op1=0 ; BC-NEXT: <PERMODULE {{.*}} op0=2 op1=0 ; BC-NEXT: <PERMODULE {{.*}} op0=3 op1=7 -; BC-NEXT: <PERMODULE {{.*}} op0=4 op1=16 -; BC-NEXT: <ALIAS {{.*}} op0=5 op1=0 op2=3 +; BC-NEXT: <PERMODULE {{.*}} op0=4 op1=0 op2=4 op3=0 +; BC-NEXT: <ALIAS {{.*}} op0=6 op1=0 op2=3 ; BC-NEXT: </GLOBALVAL_SUMMARY_BLOCK ; BC: <STRTAB_BLOCK -; BC-NEXT: blob data = 'hfoobaranon.{{................................}}.0variadicf{{.*}}' +; BC-NEXT: blob data = 'hfoobaranon.{{................................}}.0variadicllvm.va_startf{{.*}}' ; RUN: opt -name-anon-globals -module-summary < %s | llvm-dis | FileCheck %s @@ -68,5 +71,10 @@ return: ; preds = %entry } define i32 @variadic(...) { + %ap = alloca i8*, align 8 + %ap.0 = bitcast i8** %ap to i8* + call void @llvm.va_start(i8* %ap.0) ret i32 42 } + +declare void @llvm.va_start(i8*) nounwind |
