diff options
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Bitcode/Inputs/source-filename.bc | bin | 0 -> 792 bytes | |||
| -rw-r--r-- | llvm/test/Bitcode/source-filename.test | 2 | ||||
| -rw-r--r-- | llvm/test/tools/gold/X86/thinlto.ll | 6 | ||||
| -rw-r--r-- | llvm/test/tools/llvm-lto/thinlto.ll | 6 |
4 files changed, 10 insertions, 4 deletions
diff --git a/llvm/test/Bitcode/Inputs/source-filename.bc b/llvm/test/Bitcode/Inputs/source-filename.bc Binary files differnew file mode 100644 index 00000000000..3f327f4bf3c --- /dev/null +++ b/llvm/test/Bitcode/Inputs/source-filename.bc diff --git a/llvm/test/Bitcode/source-filename.test b/llvm/test/Bitcode/source-filename.test new file mode 100644 index 00000000000..d12cd3bb30d --- /dev/null +++ b/llvm/test/Bitcode/source-filename.test @@ -0,0 +1,2 @@ +; RUN: llvm-bcanalyzer -dump %p/Inputs/source-filename.bc | FileCheck %s +; CHECK: <SOURCE_FILENAME {{.*}} record string = 'source-filename.c' diff --git a/llvm/test/tools/gold/X86/thinlto.ll b/llvm/test/tools/gold/X86/thinlto.ll index 97def3d7a14..4e00a7bb660 100644 --- a/llvm/test/tools/gold/X86/thinlto.ll +++ b/llvm/test/tools/gold/X86/thinlto.ll @@ -24,8 +24,10 @@ ; COMBINED-NEXT: <COMBINED_ENTRY ; COMBINED-NEXT: </FUNCTION_SUMMARY_BLOCK ; COMBINED-NEXT: <VALUE_SYMTAB -; COMBINED-NEXT: <COMBINED_FNENTRY {{.*}} record string = '{{f|g}}' -; COMBINED-NEXT: <COMBINED_FNENTRY {{.*}} record string = '{{f|g}}' +; Check that the format is: op0=offset, op1=funcguid, where funcguid is +; the lower 64 bits of the function name MD5. +; COMBINED-NEXT: <COMBINED_FNENTRY abbrevid={{[0-9]+}} op0={{[0-9]+}} op1={{-3706093650706652785|-5300342847281564238}} +; COMBINED-NEXT: <COMBINED_FNENTRY abbrevid={{[0-9]+}} op0={{[0-9]+}} op1={{-3706093650706652785|-5300342847281564238}} ; COMBINED-NEXT: </VALUE_SYMTAB define void @f() { diff --git a/llvm/test/tools/llvm-lto/thinlto.ll b/llvm/test/tools/llvm-lto/thinlto.ll index 5bd9dd975d2..0a3da5b852c 100644 --- a/llvm/test/tools/llvm-lto/thinlto.ll +++ b/llvm/test/tools/llvm-lto/thinlto.ll @@ -14,8 +14,10 @@ ; COMBINED-NEXT: <COMBINED_ENTRY ; COMBINED-NEXT: </FUNCTION_SUMMARY_BLOCK ; COMBINED-NEXT: <VALUE_SYMTAB -; COMBINED-NEXT: <COMBINED_FNENTRY {{.*}} record string = '{{f|g}}' -; COMBINED-NEXT: <COMBINED_FNENTRY {{.*}} record string = '{{f|g}}' +; Check that the format is: op0=offset, op1=funcguid, where funcguid is +; the lower 64 bits of the function name MD5. +; COMBINED-NEXT: <COMBINED_FNENTRY abbrevid={{[0-9]+}} op0={{[0-9]+}} op1={{-3706093650706652785|-5300342847281564238}} +; COMBINED-NEXT: <COMBINED_FNENTRY abbrevid={{[0-9]+}} op0={{[0-9]+}} op1={{-3706093650706652785|-5300342847281564238}} ; COMBINED-NEXT: </VALUE_SYMTAB define void @f() { |

