[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AsmParser / ifdef.s
blob55fb666fe638002dd18a5da6ed65860d5b1ece0b
1 # RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
3 # CHECK-NOT: .byte 0
4 # CHECK: .byte 1
5 .ifdef undefined
6 .byte 0
7 .else
8 .byte 1
9 .endif
11 defined:
13 # CHECK: .byte 1
14 # CHECK-NOT: .byte 0
15 .ifdef defined
16 .byte 1
17 .else
18 .byte 0
19 .endif
21 movl %eax, undefined
23 # CHECK-NOT: .byte 0
24 # CHECK: .byte 1
25 .ifdef undefined
26 .byte 0
27 .else
28 .byte 1
29 .endif
31 # .ifdef directive does not count as a use, so ensure redefinition is permitted
32 .set var, 1
33 .ifdef var
34 .set var, 2
35 .else
36 .set var, 3
37 .endif
38 # CHECK: .byte 2
39 .byte var
41 .set var, 4
42 # CHECK: .byte 4
43 .byte var