summaryrefslogtreecommitdiff
path: root/llvm/test/MC/XCOFF/inlineasm.s
blob: 85a40024711a1152f5105db46f26bb3d8fca3adf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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