File: builtin_symbols.asm

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (59 lines) | stat: -rw-r--r-- 1,199 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
; RUN: llvm-ml -filetype=s %s /I %S /Fo /dev/null 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-REALTIME
; RUN: llvm-ml -filetype=s %s /I %S /Fo /dev/null --timestamp=0 --utc 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-FIXEDTIME

.code

version_val TEXTEQU %@Version

ECHO t1:
%ECHO @Version = version_val
; CHECK-LABEL: t1:
; CHECK-NEXT: 1427

ECHO

ECHO t2:
if @Version gt 510
ECHO @Version gt 510
endif
; CHECK-LABEL: t2:
; CHECK-NEXT: @Version gt 510

ECHO

ECHO t3:
if @Version le 510
ECHO le 510
endif
; CHECK-LABEL: t3:
; CHECK-NOT: @Version le 510

ECHO

line_val TEXTEQU %@Line

ECHO t4:
%ECHO @Line = line_val
; CHECK-LABEL: t4:
; CHECK-NEXT: @Line = [[# @LINE - 5]]

ECHO t5:
include builtin_symbols_t5.inc
; CHECK-LABEL: t5:
; CHECK: FileCur = {{.*}}builtin_symbols_t5.inc
; CHECK: FileName = BUILTIN_SYMBOLS
; CHECK-NOT: _T5

ECHO t6:
%ECHO Date = @Date
%ECHO Time = @Time

; CHECK-LABEL: t6:
; CHECK-REALTIME: Date = {{([[:digit:]]{2}/[[:digit:]]{2}/[[:digit:]]{2})}}
; CHECK-FIXEDTIME: Date = 01/01/70
; CHECK-NOT: {{[[:digit:]]}}
; CHECK-REALTIME: Time = {{([[:digit:]]{2}:[[:digit:]]{2}:[[:digit:]]{2})}}
; CHECK-FIXEDTIME: Time = 00:00:00
; CHECK-NOT: {{[[:digit:]]}}

end