mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 05:30:49 +00:00
bb9779aa2e
If `--enable-var-scope` is in effect, variables with names that start with `$` are considered to be global. All other variables are local. All local variables get undefined at the beginning of each CHECK-LABEL block. Global variables are not affected by CHECK-LABEL. This makes it easier to ensure that individual tests are not affected by variables set in preceding tests. Differential Revision: https://reviews.llvm.org/D30749 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297396 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
572 B
Plaintext
24 lines
572 B
Plaintext
// RUN: FileCheck -check-prefix CHECK -input-file %s %s
|
|
// RUN: FileCheck -check-prefixes CHECK,GLOBAL -input-file %s %s
|
|
// RUN: FileCheck -check-prefixes CHECK,LOCAL -input-file %s %s
|
|
// RUN: FileCheck -check-prefixes CHECK,GLOBAL --enable-var-scope -input-file %s %s
|
|
// RUN: not FileCheck -check-prefixes CHECK,LOCAL --enable-var-scope -input-file %s %s
|
|
|
|
local
|
|
global
|
|
; CHECK: [[LOCAL:loc.*]]
|
|
; CHECK: [[$GLOBAL:glo.*]]
|
|
|
|
local2
|
|
global2
|
|
; CHECK: [[LOCAL]]2
|
|
; CHECK: [[$GLOBAL]]2
|
|
|
|
barrier:
|
|
; CHECK-LABEL: barrier
|
|
|
|
local3
|
|
global3
|
|
; LOCAL: [[LOCAL]]3
|
|
; GLOBAL: [[$GLOBAL]]3
|