reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
# RUN: llvm-mc -triple i386-linux-gnu %s| FileCheck %s

.altmacro
# single-character string escape
# To include any single character literally in a string
# (even if the character would otherwise have some special meaning),
# you can prefix the character with `!'.
# For example, you can write `<4.3 !> 5.4!!>' to get the literal text `4.3 > 5.4!'.

# CHECK: workForFun:
.macro fun1 number
  .if \number=5
    lableNotWork:
  .else
    workForFun:
  .endif
.endm

# CHECK: workForFun2:
.macro fun2 string
  .if \string
    workForFun2:
  .else
    notworkForFun2:
  .endif
.endm

fun1 <5!!>
fun2 <5!>4>