[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / llvm / test / FileCheck / simple-var-capture.txt
blobd9f456130e023df479d34218615f90bcae05b3cc
1 // RUN: FileCheck -input-file %s %s
3 op1 r1
4 op2 r1, r2
5 ; CHECK:        op1 [[REG:r[0-9]]]
6 ; CHECK-NEXT:   op2 [[REG]]
8 op3 r16, r18, r21
9 op4 r30, r18, r21
10 ; CHECK:        op3 {{r[0-9]+}}, [[REGa:r[0-9]+]], [[REGb:r[0-9]+]]
11 ; CHECK-NEXT:   op4 {{r[0-9]+}}, [[REGa]], [[REGb]]
14 // RUN: %ProtectFileCheckOutput \
15 // RUN: not FileCheck --check-prefixes INVALID-VARNAME --input-file %s %s 2>&1 \
16 // RUN:   | FileCheck --check-prefix INVALID-VARNAME-MSG --strict-whitespace %s
20 ; INVALID-VARNAME: [[X:]]
21 ; INVALID-VARNAME-NEXT: [[Y:]]
22 ; INVALID-VARNAME-NEXT: [[X-Y]]
23 ; INVALID-VARNAME-MSG: simple-var-capture.txt:[[#@LINE-1]]:27: error: invalid name in string variable use
24 ; INVALID-VARNAME-MSG-NEXT: ; {{I}}NVALID-VARNAME-NEXT: {{\[\[X-Y\]\]}}
25 ; INVALID-VARNAME-MSG-NEXT:    {{^}}                          ^{{$}}