mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
4d99eb410d
Implement XCOFFMCAsmParser so that we can use MC to parse inline asm. The directives and storage mapping classes will be added later iteratively. Reviewed By: xgupta Differential Revision: https://reviews.llvm.org/D105259
24 lines
494 B
ArmAsm
24 lines
494 B
ArmAsm
// RUN: llvm-mc -filetype=asm -triple powerpc-ibm-aix-xcoff %s | FileCheck %s
|
|
|
|
// CHECK-label: .csect .text[PR],2
|
|
// CHECK:L..tmp0:
|
|
// CHECK-NEXT: lwarx 3, 0, 4
|
|
// CHECK-NEXT: cmpw 5, 3
|
|
// CHECK-NEXT: bne- 0, L..tmp1
|
|
// CHECK-NEXT: stwcx. 6, 0, 4
|
|
// CHECK-NEXT: bne- 0, L..tmp0
|
|
// CHECK-NEXT:L..tmp1:
|
|
|
|
|
|
#APP
|
|
1:
|
|
lwarx 3, 0, 4
|
|
cmpw 5, 3
|
|
bne- 2f
|
|
stwcx. 6, 0, 4
|
|
bne- 1b
|
|
2:
|
|
|
|
#NO_APP
|
|
|