mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-08 04:52:50 +00:00
f97e952558
Count .irp/.irpc in parseMacroLikeBody similar to .rept Update tests. Review: http://reviews.llvm.org/D17707 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@262313 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
361 B
ArmAsm
22 lines
361 B
ArmAsm
// RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
|
|
|
|
.irp reg,%eax,%ebx
|
|
pushl \reg
|
|
.endr
|
|
|
|
// CHECK: pushl %eax
|
|
// CHECK: pushl %ebx
|
|
|
|
.irp reg,%eax,%ebx
|
|
.irp imm,4,3,5
|
|
addl \reg, \imm
|
|
.endr
|
|
.endr
|
|
|
|
// CHECK: addl %eax, 4
|
|
// CHECK: addl %eax, 3
|
|
// CHECK: addl %eax, 5
|
|
// CHECK: addl %ebx, 4
|
|
// CHECK: addl %ebx, 3
|
|
// CHECK: addl %ebx, 5
|