blob: 1627d9eb203c829e7021a896d2d609da946b6beb [file] [log] [blame]
Daniel Dunbara2f3cd52009-06-29 22:00:57 +00001// 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).
Daniel Dunbarc3b8a4b2009-06-29 20:37:27 +00004
Daniel Dunbara2f3cd52009-06-29 22:00:57 +00005// RUN: llvm-mc %s > %t
Daniel Dunbarc3b8a4b2009-06-29 20:37:27 +00006
7 .byte !1 + 2
8 .byte !0
9 .byte ~0
10 .byte -1
11 .byte +1
12 .byte 1 + 2
13 .byte 1 & 3
14 .byte 4 / 2
15 .byte 4 / -2
16 .byte 1 == 1
17 .byte 1 == 0
18 .byte 1 > 0
19 .byte 1 >= 1
20 .byte 1 < 2
21 .byte 1 <= 1
22 .byte 4 % 3
23 .byte 2 * 2
24 .byte 2 != 2
25 .byte 2 <> 2
26 .byte 1 | 2
27 .byte 1 << 1
28 .byte 2 >> 1
29 .byte ~0 >> 1
30 .byte 3 - 2
31 .byte 1 ^ 3
32 .byte 1 && 2
33 .byte 3 && 0
34 .byte 1 || 2
35 .byte 0 || 0
36
37 .set c, 10
38 .byte c + 1
39