OLD | NEW |
1 // RUN: llvm-mc -triple i386-unknown-unknown %s > %t | 1 // RUN: llvm-mc -triple i386-unknown-unknown %s > %t |
2 | 2 |
3 .macro check_expr | 3 .macro check_expr |
4 .if ($0) != ($1) | 4 .if ($0) != ($1) |
5 .abort Unexpected $0 != $1. | 5 .abort Unexpected $0 != $1. |
6 .endif | 6 .endif |
7 .endmacro | 7 .endmacro |
8 | 8 |
9 .text | 9 .text |
10 g: | 10 g: |
(...skipping 27 matching lines...) Expand all Loading... |
38 check_expr 3 - 2, 1 | 38 check_expr 3 - 2, 1 |
39 check_expr 1 ^ 3, 2 | 39 check_expr 1 ^ 3, 2 |
40 check_expr 1 && 2, 1 | 40 check_expr 1 && 2, 1 |
41 check_expr 3 && 0, 0 | 41 check_expr 3 && 0, 0 |
42 check_expr 0 && 1, 0 | 42 check_expr 0 && 1, 0 |
43 check_expr 1 || 2, 1 | 43 check_expr 1 || 2, 1 |
44 check_expr 0 || 1, 1 | 44 check_expr 0 || 1, 1 |
45 check_expr 0 || 0, 0 | 45 check_expr 0 || 0, 0 |
46 check_expr 1 + 2 < 3 + 4, 1 | 46 check_expr 1 + 2 < 3 + 4, 1 |
47 check_expr 1 << 8 - 1, 128 | 47 check_expr 1 << 8 - 1, 128 |
48 check_expr 3 * 9 - 2 * 9 + 1, 10 | |
49 | 48 |
50 .set c, 10 | 49 .set c, 10 |
51 check_expr c + 1, 11 | 50 check_expr c + 1, 11 |
52 | 51 |
53 d = e + 10 | 52 d = e + 10 |
54 .long d | 53 .long d |
55 | 54 |
56 f = g - h + 5 | 55 f = g - h + 5 |
57 .long f | 56 .long f |
58 | 57 |
(...skipping 11 matching lines...) Expand all Loading... |
70 movw $8, (42)+66(%eax) | 69 movw $8, (42)+66(%eax) |
71 | 70 |
72 // "." support: | 71 // "." support: |
73 _f0: | 72 _f0: |
74 L0: | 73 L0: |
75 jmp L1 | 74 jmp L1 |
76 .long . - L0 | 75 .long . - L0 |
77 L1: | 76 L1: |
78 jmp A | 77 jmp A |
79 .long . - L1 | 78 .long . - L1 |
OLD | NEW |