[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AsmParser / macros-argument-parsing.s
blob39242cf1736d6aa23998588a3ae6e0c68672d2c0
1 # RUN: llvm-mc -triple i386 -filetype asm -o - %s | FileCheck %s
3 .macro it, cond
4 .endm
6 it ne
7 .long 1
9 # CHECK: .long 1
11 .macro double first = -1, second = -1
12 # begin entry
13 .long \first
14 .long \second
15 # end entry
16 .endm
18 double
19 # CHECK: .long -1
20 # CHECK: .long -1
22 double 1
23 # CHECK: .long 1
24 # CHECK: .long -1
26 double 2, 3
27 # CHECK: .long 2
28 # CHECK: .long 3
30 double , 4
31 # CHECK: .long -1
32 # CHECK: .long 4
34 double 5, second = 6
35 # CHECK: .long 5
36 # CHECK: .long 6
38 double first = 7
39 # CHECK: .long 7
40 # CHECK: .long -1
42 double second = 8
43 # CHECK: .long -1
44 # CHECK: .long 8
46 double second = 9, first = 10
47 # CHECK: .long 10
48 # CHECK: .long 9
50 double second + 11
51 # CHECK: .long second+11
52 # CHECK: .long -1
54 double , second + 12
55 # CHECK: .long -1
56 # CHECK: .long second+12
58 double second
59 # CHECK: .long second
60 # CHECK: .long -1
62 .macro mixed arg0 = 0, arg1 = 1 arg2 = 2, arg3 = 3
63 # begin entry
64 .long \arg0
65 .long \arg1
66 .long \arg2
67 .long \arg3
68 # end entry
69 .endm
71 mixed 1, 2 3
73 # CHECK: .long 1
74 # CHECK: .long 2
75 # CHECK: .long 3
76 # CHECK: .long 3
78 mixed 1 2, 3
80 # CHECK: .long 1
81 # CHECK: .long 2
82 # CHECK: .long 3
83 # CHECK: .long 3
85 mixed 1 2, 3 4
87 # CHECK: .long 1
88 # CHECK: .long 2
89 # CHECK: .long 3
90 # CHECK: .long 4