projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
llvm-mc: Symbols in a relocatable expression of the (a - b + cst) form are
[oota-llvm.git]
/
test
/
MC
/
AsmParser
/
exprs.s
1
// FIXME: For now this test just checks that llvm-mc works. Once we have .macro,
2
// .if, and .abort we can write a better test (without resorting to miles of
3
// greps).
4
5
// RUN: llvm-mc %s > %t
6
7
.text
8
g:
9
h:
10
j:
11
k:
12
.data
13
.byte !1 + 2
14
.byte !0
15
.byte ~0
16
.byte -1
17
.byte +1
18
.byte 1 + 2
19
.byte 1 & 3
20
.byte 4 / 2
21
.byte 4 / -2
22
.byte 1 == 1
23
.byte 1 == 0
24
.byte 1 > 0
25
.byte 1 >= 1
26
.byte 1 < 2
27
.byte 1 <= 1
28
.byte 4 % 3
29
.byte 2 * 2
30
.byte 2 != 2
31
.byte 2 <> 2
32
.byte 1 | 2
33
.byte 1 << 1
34
.byte 2 >> 1
35
.byte ~0 >> 1
36
.byte 3 - 2
37
.byte 1 ^ 3
38
.byte 1 && 2
39
.byte 3 && 0
40
.byte 1 || 2
41
.byte 0 || 0
42
43
.set c, 10
44
.byte c + 1
45
46
d = e + 10
47
.long d
48
49
f = g - h + 5
50
.long f
51
52
i = (j + 10) - (k + 2)
53
.long i
54
55
l = m - n + 4
56
57
.text
58
m:
59
n:
60
nop
61
62