1 @RUN
: llvm-mc
-triple armv7-base-apple-darwin
%s | FileCheck
--check-prefix
=CHECK-ARM
--check-prefix
=CHECK
%s
2 @RUN
: llvm-mc
-triple thumbv7-base-apple-darwin
%s | FileCheck
--check-prefix
=CHECK-THUMB2
--check-prefix
=CHECK
%s
5 @ Check that ldr to constant pool correctly transfers the condition codes
8 .section __TEXT,a,regular,pure_instructions
13 @ CHECK
: ldreq
r0, Ltmp0
15 @ loading multiple constants
16 .section __TEXT,b,regular,pure_instructions
21 @ CHECK
: ldreq
r0, Ltmp1
23 @ CHECK
: ldrne
r0, Ltmp2
25 @ transformation to mov
26 .section __TEXT,d,regular,pure_instructions
29 @ Can use the narrow Thumb mov as it does
not set flags in an IT block
34 @ Must use the wide Thumb mov if the constant can
't be represented
36 ldreq r2, = 0x1f000000
37 @ CHECK-ARM moveq r2, #520093696
38 @ CHECK-THUMB2 moveq.w r2, #520093696
39 ldrne r3, = 0x00001234
40 @ CHECK: movwne r3, #4660
45 @ CHECK: .section __TEXT,a,regular,pure_instructions
50 @ CHECK: .section __TEXT,b,regular,pure_instructions