1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00
llvm-mirror/test/MC/XCOFF/inlineasm.s
Jinsong Ji 4d99eb410d [AIX] Add dummy XCOFF MCAsmParserExtension
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
2021-07-02 16:12:21 +00:00

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