1 @ RUN
: not llvm-mc
-triple
=armv7
-mcpu
=cortex-a15
-mattr
=-hwdiv-arm
< %s
2> %t
2 @ RUN
: FileCheck
--check-prefix
=ARM-A15
< %t %s
3 @ RUN
: not llvm-mc
-triple
=thumbv7
-mcpu
=cortex-a15
-mattr
=-hwdiv
< %s
2> %t
4 @ RUN
: FileCheck
--check-prefix
=THUMB-A15
< %t %s
5 @ RUN
: not llvm-mc
-triple
=armv7
< %s
2> %t
6 @ RUN
: FileCheck
--check-prefix
=ARM
< %t %s
7 @ RUN
: not llvm-mc
-triple
=thumbv7
< %s
2> %t
8 @ RUN
: FileCheck
--check-prefix
=THUMB
< %t %s
12 @ ARM-A15
: note
: instruction requires
: divide in ARM
13 @ ARM-A15
: note
: instruction requires
: thumb
14 @ ARM-A15
: sdiv
r1, r2, r3
15 @ ARM-A15
: note
: instruction requires
: divide in ARM
16 @ ARM-A15
: note
: instruction requires
: thumb
17 @ ARM-A15
: udiv
r3, r4, r5
18 @ THUMB-A15
: note
: instruction requires
: arm-mode
19 @ THUMB-A15
: note
: instruction requires
: divide in THUMB
20 @ THUMB-A15
: sdiv
r1, r2, r3
21 @ THUMB-A15
: note
: instruction requires
: arm-mode
22 @ THUMB-A15
: note
: instruction requires
: divide in THUMB
23 @ THUMB-A15
: udiv
r3, r4, r5
25 @ ARM
: error
: instruction requires
: divide in ARM
26 @ ARM
: sdiv
r1, r2, r3
27 @ ARM
: error
: instruction requires
: divide in ARM
28 @ ARM
: udiv
r3, r4, r5
29 @ THUMB
: error
: instruction requires
: divide in THUMB
30 @ THUMB
: sdiv
r1, r2, r3
31 @ THUMB
: error
: instruction requires
: divide in THUMB
32 @ THUMB
: udiv
r3, r4, r5