repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation patterns
[llvm-core.git]
/
test
/
MC
/
AsmParser
/
conditional_asm.s
blob
ecbceb1dc36270940096be612675ec57fc0c05c6
1
# RUN: llvm-mc -triple i386-unknown-unknown %s -I %p | FileCheck %s
2
3
# CHECK: .byte 2
4
.if 1+2
5
.if 1-1
6
.byte 1
7
.elseif 2+2
8
.byte 1+1
9
.else
10
.byte 0
11
.endif
12
.endif
13
14
# CHECK: .byte 0
15
# CHECK-NOT: .byte 1
16
.ifeq 32 - 32
17
.byte 0
18
.else
19
.byte 1
20
.endif
21
22
# CHECK: .byte 0
23
# CHECK: .byte 1
24
# CHECK-NOT: .byte 2
25
.ifge 32 - 31
26
.byte 0
27
.endif
28
.ifge 32 - 32
29
.byte 1
30
.endif
31
.ifge 32 - 33
32
.byte 2
33
.endif
34
35
# CHECK: .byte 0
36
# CHECK-NOT: .byte 1
37
# CHECK-NOT: .byte 2
38
.ifgt 32 - 31
39
.byte 0
40
.endif
41
.ifgt 32 - 32
42
.byte 1
43
.endif
44
.ifgt 32 - 33
45
.byte 2
46
.endif
47
48
# CHECK-NOT: .byte 0
49
# CHECK: .byte 1
50
# CHECK: .byte 2
51
.ifle 32 - 31
52
.byte 0
53
.endif
54
.ifle 32 - 32
55
.byte 1
56
.endif
57
.ifle 32 - 33
58
.byte 2
59
.endif
60
61
# CHECK-NOT: .byte 0
62
# CHECK-NOT: .byte 1
63
# CHECK: .byte 2
64
.iflt 32 - 31
65
.byte 0
66
.endif
67
.iflt 32 - 32
68
.byte 1
69
.endif
70
.iflt 32 - 33
71
.byte 2
72
.endif
73
74
# CHECK: .byte 1
75
# CHECK-NOT: .byte 0
76
.ifne 32 - 32
77
.byte 0
78
.else
79
.byte 1
80
.endif
81