| @RUN: llvm-mc -triple armv7-unknown-linux-gnueabi %s | FileCheck --check-prefix=CHECK %s |
| @RUN: llvm-mc -triple thumbv7-unknown-linux-gnueabi %s | FileCheck --check-prefix=CHECK %s |
| @ Check that ldr to constant pool correctly transfers the condition codes |
| .section a,"ax",%progbits |
| @ CHECK: ldreq r0, .Ltmp[[TMP0:[0-9]+]] |
| @ loading multiple constants |
| .section b,"ax",%progbits |
| @ CHECK: ldreq r0, .Ltmp[[TMP1:[0-9]+]] |
| @ CHECK: ldrne r0, .Ltmp[[TMP2:[0-9]+]] |
| .section c, "ax", %progbits |
| @ Can use the narrow Thumb mov as it does not set flags in an IT block |
| @ Must use the wide Thumb mov if the constant can't be represented |
| @ CHECK-ARM moveq r2, #520093696 |
| @ CHECK-THUMB2 moveq.w r2, #520093696 |
| @ CHECK: movwne r3, #4660 |
| @ CHECK: .section a,"ax",%progbits |
| @ CHECK: .section b,"ax",%progbits |