summaryrefslogtreecommitdiffstats
path: root/test/MC/AsmParser/exprs.s
blob: 20de3a5e0ba8041081985aab18483ac64539c3c2 (plain)
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
60
61
62
// FIXME: For now this test just checks that llvm-mc works. Once we have .macro,
// .if, and .abort we can write a better test (without resorting to miles of
// greps).
        
// RUN: llvm-mc %s > %t

        .text
g:
h:
j:
k:      
        .data
        .byte !1 + 2
        .byte !0
        .byte ~0
        .byte -1
        .byte +1
        .byte 1 + 2
        .byte 1 & 3
        .byte 4 / 2
        .byte 4 / -2
        .byte 1 == 1
        .byte 1 == 0
        .byte 1 > 0
        .byte 1 >= 1
        .byte 1 < 2
        .byte 1 <= 1
        .byte 4 % 3
        .byte 2 * 2
        .byte 2 != 2
        .byte 2 <> 2
        .byte 1 | 2
        .byte 1 << 1
        .byte 2 >> 1
        .byte ~0 >> 1
        .byte 3 - 2
        .byte 1 ^ 3
        .byte 1 && 2
        .byte 3 && 0
        .byte 1 || 2
        .byte 0 || 0

        .set c, 10
        .byte c + 1

        d = e + 10
        .long d

        f = g - h + 5
        .long f

        i = (j + 10) - (k + 2)
        .long i
        
        l = m - n + 4
        
        .text
m:
n:
        nop
        
        
OpenPOWER on IntegriCloud