brintos

brintos / llvm-project-archived public Read only

0
0
Text · 603 B · bcc9e84 Raw
30 lines · plain
1# RUN: llvm-mc -triple i386-linux-gnu %s| FileCheck %s2 3.altmacro4# single-character string escape5# To include any single character literally in a string6# (even if the character would otherwise have some special meaning),7# you can prefix the character with `!'.8# For example, you can write `<4.3 !> 5.4!!>' to get the literal text `4.3 > 5.4!'.9 10# CHECK: workForFun:11.macro fun1 number12  .if \number=513    lableNotWork:14  .else15    workForFun:16  .endif17.endm18 19# CHECK: workForFun2:20.macro fun2 string21  .if \string22    workForFun2:23  .else24    notworkForFun2:25  .endif26.endm27 28fun1 <5!!>29fun2 <5!>4>30