1 # RUN: llvm-mc -triple i386 -filetype asm -o - %s | FileCheck %s 2 3 .macro it, cond 4 .endm 5 6 it ne 7 .long 1 8 9 # CHECK: .long 1 10 11 .macro double first = -1, second = -1 12 # begin entry 13 .long \first 14 .long \second 15 # end entry 16 .endm 17 18 double 19 # CHECK: .long -1 20 # CHECK: .long -1 21 22 double 1 23 # CHECK: .long 1 24 # CHECK: .long -1 25 26 double 2, 3 27 # CHECK: .long 2 28 # CHECK: .long 3 29 30 double , 4 31 # CHECK: .long -1 32 # CHECK: .long 4 33 34 double 5, second = 6 35 # CHECK: .long 5 36 # CHECK: .long 6 37 38 double first = 7 39 # CHECK: .long 7 40 # CHECK: .long -1 41 42 double second = 8 43 # CHECK: .long -1 44 # CHECK: .long 8 45 46 double second = 9, first = 10 47 # CHECK: .long 10 48 # CHECK: .long 9 49 50 double second + 11 51 # CHECK: .long second+11 52 # CHECK: .long -1 53 54 double , second + 12 55 # CHECK: .long -1 56 # CHECK: .long second+12 57 58 double second 59 # CHECK: .long second 60 # CHECK: .long -1 61 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 70 71 mixed 1, 2 3 72 73 # CHECK: .long 1 74 # CHECK: .long 2 75 # CHECK: .long 3 76 # CHECK: .long 3 77 78 mixed 1 2, 3 79 80 # CHECK: .long 1 81 # CHECK: .long 2 82 # CHECK: .long 3 83 # CHECK: .long 3 84 85 mixed 1 2, 3 4 86 87 # CHECK: .long 1 88 # CHECK: .long 2 89 # CHECK: .long 3 90 # CHECK: .long 4 91 92