1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/MC/AsmParser/macro-irpc.s
Nikolay Haustov dd568e520a AsmParser: Fix nested .irp/.irpc
Count .irp/.irpc in parseMacroLikeBody similar to .rept
Update tests.

Review: http://reviews.llvm.org/D17707
llvm-svn: 262313
2016-03-01 08:18:28 +00:00

23 lines
370 B
ArmAsm

// RUN: llvm-mc -triple x86_64-unknown-unknown %s | FileCheck %s
.irpc foo,123
.long \foo
.endr
// CHECK: long 1
// CHECK: long 2
// CHECK: long 3
.irpc foo,123
.irpc bar,45
addl %eax, \foo\bar
.endr
.endr
// CHECK: addl %eax, 14
// CHECK: addl %eax, 15
// CHECK: addl %eax, 24
// CHECK: addl %eax, 25
// CHECK: addl %eax, 34
// CHECK: addl %eax, 35