blob: 14bafd5e28a831bf47d4c3da66c40274b877a279 [file] [log] [blame]
Daniel Dunbar1ad7edc2009-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 Dunbar475839e2009-06-29 20:37:27 +00004
Daniel Dunbar1ad7edc2009-06-29 22:00:57 +00005// RUN: llvm-mc %s > %t
Daniel Dunbarf4b830f2009-06-30 02:10:03 +00006
7 .text
8g:
9h:
10j:
11k:
12 .data
Daniel Dunbar475839e2009-06-29 20:37:27 +000013 .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
Daniel Dunbarf4b830f2009-06-30 02:10:03 +000045
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
Daniel Dunbar475839e2009-06-29 20:37:27 +000055