mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
44dc561730
This patch adjusts tests not to depend on deprecated FileCheck behavior that permits overlapping matches within a block of `CHECK-DAG` directives: 1. `thinlto-function-summary-originalnames.ll`: The directive with the pattern `<COMBINED` is surely intended to match `<COMBINED ` (note the trailing space), but it instead matches `<COMBINED_GLOBALVAR_INIT_REFS`, for which there is a separate directive. With the deprecated behavior, both directives match the latter text and neither match the former text. I've adjusted the former directive so it matches only the former text. 2. `thinlto-summary-local-5.0.ll`: Two directives have identical patterns when they were clearly meant to have different patterns. 3. `upgrade-pointer-address-space.ll`: There are three identical directives but only two occurrences of the matching text. With the deprecated behavior, they always match exactly the same text, so the behavior can't have been useful. I removed one of the directives and converted the other two from `CHECK-DAG` to `CHECK`. Reviewed By: probinson, aprantl Differential Revision: https://reviews.llvm.org/D64036 llvm-svn: 365060
23 lines
639 B
LLVM
23 lines
639 B
LLVM
; Bitcode compatibility test for dso_local flag in thin-lto summaries.
|
|
; Checks that older bitcode summaries without the dso_local op are still
|
|
; properly parsed and don't set GlobalValues as dso_local.
|
|
|
|
; RUN: llvm-dis < %s.bc | FileCheck %s
|
|
; RUN: llvm-bcanalyzer -dump %s.bc | FileCheck %s --check-prefix=BCAN
|
|
|
|
define void @foo() {
|
|
;CHECK-DAG:define void @foo()
|
|
ret void
|
|
}
|
|
|
|
@bar = global i32 0
|
|
;CHECK-DAG: @bar = global i32 0
|
|
|
|
@baz = alias i32, i32* @bar
|
|
;CHECK-DAG: @baz = alias i32, i32* @bar
|
|
|
|
;BCAN: <SOURCE_FILENAME
|
|
;BCAN-NEXT: <GLOBALVAR {{.*}} op7=0/>
|
|
;BCAN-NEXT: <FUNCTION {{.*}} op16=0/>
|
|
;BCAN-NEXT: <ALIAS {{.*}} op9=0/>
|