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