[OpenACC] Implement 'collapse' for combined constructs.
[llvm-project.git] / llvm / test / tools / llvm-ml / builtin_symbols.asm
blob81442c49d7ec7d9465f00e6ac1df93ffacb18f7f
1 ; RUN: llvm-ml -filetype=s %s /I %S /Fo /dev/null 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-REALTIME
2 ; RUN: llvm-ml -filetype=s %s /I %S /Fo /dev/null --timestamp=0 --utc 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-FIXEDTIME
4 .code
6 version_val TEXTEQU %@Version
8 ECHO t1:
9 %ECHO @Version = version_val
10 ; CHECK-LABEL: t1:
11 ; CHECK-NEXT: 1427
13 ECHO
15 ECHO t2:
16 if @Version gt 510
17 ECHO @Version gt 510
18 endif
19 ; CHECK-LABEL: t2:
20 ; CHECK-NEXT: @Version gt 510
22 ECHO
24 ECHO t3:
25 if @Version le 510
26 ECHO le 510
27 endif
28 ; CHECK-LABEL: t3:
29 ; CHECK-NOT: @Version le 510
31 ECHO
33 line_val TEXTEQU %@Line
35 ECHO t4:
36 %ECHO @Line = line_val
37 ; CHECK-LABEL: t4:
38 ; CHECK-NEXT: @Line = [[# @LINE - 5]]
40 ECHO t5:
41 include builtin_symbols_t5.inc
42 ; CHECK-LABEL: t5:
43 ; CHECK: FileCur = {{.*}}builtin_symbols_t5.inc
44 ; CHECK: FileName = BUILTIN_SYMBOLS
45 ; CHECK-NOT: _T5
47 ECHO t6:
48 %ECHO Date = @Date
49 %ECHO Time = @Time
51 ; CHECK-LABEL: t6:
52 ; CHECK-REALTIME: Date = {{([[:digit:]]{2}/[[:digit:]]{2}/[[:digit:]]{2})}}
53 ; CHECK-FIXEDTIME: Date = 01/01/70
54 ; CHECK-NOT: {{[[:digit:]]}}
55 ; CHECK-REALTIME: Time = {{([[:digit:]]{2}:[[:digit:]]{2}:[[:digit:]]{2})}}
56 ; CHECK-FIXEDTIME: Time = 00:00:00
57 ; CHECK-NOT: {{[[:digit:]]}}
59 end