[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / XCOFF / inlineasm.s
blob85a40024711a1152f5105db46f26bb3d8fca3adf
1 // RUN: llvm-mc -filetype=asm -triple powerpc-ibm-aix-xcoff %s | FileCheck %s
3 // CHECK-label: .csect .text[PR],2
4 // CHECK:L..tmp0:
5 // CHECK-NEXT: lwarx 3, 0, 4
6 // CHECK-NEXT: cmpw 5, 3
7 // CHECK-NEXT: bne- 0, L..tmp1
8 // CHECK-NEXT: stwcx. 6, 0, 4
9 // CHECK-NEXT: bne- 0, L..tmp0
10 // CHECK-NEXT:L..tmp1:
13 #APP
15 lwarx 3, 0, 4
16 cmpw 5, 3
17 bne- 2f
18 stwcx. 6, 0, 4
19 bne- 1b
22 #NO_APP