[ARM] Add support for ARMV6K subtarget (LLVM)
[oota-llvm.git] / test / CodeGen / ARM / build-attributes.ll
1 ; This tests that MC/asm header conversion is smooth and that the
2 ; build attributes are correct
3
4 ; RUN: llc < %s -mtriple=thumbv5-linux-gnueabi -mcpu=xscale | FileCheck %s --check-prefix=XSCALE
5 ; RUN: llc < %s -mtriple=armv6-linux-gnueabi | FileCheck %s --check-prefix=V6
6 ; RUN: llc < %s -mtriple=armv6-linux-gnueabi  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=V6-FAST
7 ; RUN: llc < %s -mtriple=armv6-linux-gnueabi -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
8 ; RUN: llc < %s -mtriple=thumbv6m-linux-gnueabi | FileCheck %s --check-prefix=V6M
9 ; RUN: llc < %s -mtriple=thumbv6m-linux-gnueabi  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=V6M-FAST
10 ; RUN: llc < %s -mtriple=thumbv6sm-linux-gnueabi | FileCheck %s --check-prefix=V6M
11 ; RUN: llc < %s -mtriple=thumbv6sm-linux-gnueabi  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=V6M-FAST
12 ; RUN: llc < %s -mtriple=armv6-linux-gnueabi -mcpu=arm1156t2f-s | FileCheck %s --check-prefix=ARM1156T2F-S
13 ; RUN: llc < %s -mtriple=armv6-linux-gnueabi -mcpu=arm1156t2f-s  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast  | FileCheck %s --check-prefix=ARM1156T2F-S-FAST
14 ; RUN: llc < %s -mtriple=armv6-linux-gnueabi -mcpu=arm1156t2f-s -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
15 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi | FileCheck %s --check-prefix=V7M
16 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=V7M-FAST
17 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
18 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi | FileCheck %s --check-prefix=V7
19 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
20 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=V7-FAST
21 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi | FileCheck %s --check-prefix=V8
22 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=V8-FAST
23 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
24 ; RUN: llc < %s -mtriple=thumbv8-linux-gnueabi | FileCheck %s --check-prefix=Vt8
25 ; RUN: llc < %s -mtriple=thumbv8-linux-gnueabi -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
26 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mattr=-neon,-crypto | FileCheck %s --check-prefix=V8-FPARMv8
27 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mattr=-fp-armv8,-crypto | FileCheck %s --check-prefix=V8-NEON
28 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mattr=-crypto | FileCheck %s --check-prefix=V8-FPARMv8-NEON
29 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi | FileCheck %s --check-prefix=V8-FPARMv8-NEON-CRYPTO
30 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a5 | FileCheck %s --check-prefix=CORTEX-A5-DEFAULT
31 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a5  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A5-DEFAULT-FAST
32 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a5 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
33 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a5 -mattr=-neon,+d16 | FileCheck %s --check-prefix=CORTEX-A5-NONEON
34 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a5 -mattr=-vfp2 | FileCheck %s --check-prefix=CORTEX-A5-NOFPU
35 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a5 -mattr=-vfp2  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A5-NOFPU-FAST
36 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a9 -float-abi=soft | FileCheck %s --check-prefix=CORTEX-A9-SOFT
37 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a9 -float-abi=soft  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A9-SOFT-FAST
38 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a9 -float-abi=hard | FileCheck %s --check-prefix=CORTEX-A9-HARD
39 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a9 -float-abi=hard  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A9-HARD-FAST
40 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a9 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
41 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a12 | FileCheck %s --check-prefix=CORTEX-A12-DEFAULT
42 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a9 -float-abi=soft | FileCheck %s --check-prefix=CORTEX-A9-SOFT
43 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a12  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A12-DEFAULT-FAST
44 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a12 -mattr=-vfp2 | FileCheck %s --check-prefix=CORTEX-A12-NOFPU
45 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a12 -mattr=-vfp2  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A12-NOFPU-FAST
46 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a12 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
47 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a15 | FileCheck %s --check-prefix=CORTEX-A15
48 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a15  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A15-FAST
49 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a15 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
50 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a17 | FileCheck %s --check-prefix=CORTEX-A17-DEFAULT
51 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a17  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A17-FAST
52 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a17 -mattr=-vfp2 | FileCheck %s --check-prefix=CORTEX-A17-NOFPU
53 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a17 -mattr=-vfp2  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A17-NOFPU-FAST
54 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a17 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
55 ; RUN: llc < %s -mtriple=thumbv6m-linux-gnueabi -mcpu=cortex-m0 | FileCheck %s --check-prefix=CORTEX-M0
56 ; RUN: llc < %s -mtriple=thumbv6m-linux-gnueabi -mcpu=cortex-m0  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-M0-FAST
57 ; RUN: llc < %s -mtriple=thumbv6m-linux-gnueabi -mcpu=cortex-m0 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
58 ; RUN: llc < %s -mtriple=thumbv6m-linux-gnueabi -mcpu=cortex-m0plus | FileCheck %s --check-prefix=CORTEX-M0PLUS
59 ; RUN: llc < %s -mtriple=thumbv6m-linux-gnueabi -mcpu=cortex-m0plus  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-M0PLUS-FAST
60 ; RUN: llc < %s -mtriple=thumbv6m-linux-gnueabi -mcpu=cortex-m0plus -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
61 ; RUN: llc < %s -mtriple=thumbv6m-linux-gnueabi -mcpu=cortex-m1 | FileCheck %s --check-prefix=CORTEX-M1
62 ; RUN: llc < %s -mtriple=thumbv6m-linux-gnueabi -mcpu=cortex-m1  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-M1-FAST
63 ; RUN: llc < %s -mtriple=thumbv6m-linux-gnueabi -mcpu=cortex-m1 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
64 ; RUN: llc < %s -mtriple=thumbv6m-linux-gnueabi -mcpu=sc000 | FileCheck %s --check-prefix=SC000
65 ; RUN: llc < %s -mtriple=thumbv6m-linux-gnueabi -mcpu=sc000  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=SC000-FAST
66 ; RUN: llc < %s -mtriple=thumbv6m-linux-gnueabi -mcpu=sc000 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
67 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -mcpu=cortex-m3 | FileCheck %s --check-prefix=CORTEX-M3
68 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -mcpu=cortex-m3  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-M3-FAST
69 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -mcpu=cortex-m3 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
70 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -mcpu=sc300 | FileCheck %s --check-prefix=SC300
71 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -mcpu=sc300  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=SC300-FAST
72 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -mcpu=sc300 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
73 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -mcpu=cortex-m4 -float-abi=soft | FileCheck %s --check-prefix=CORTEX-M4-SOFT
74 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -mcpu=cortex-m4 -float-abi=soft  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-M4-SOFT-FAST
75 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -mcpu=cortex-m4 -float-abi=hard | FileCheck %s --check-prefix=CORTEX-M4-HARD
76 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -mcpu=cortex-m4 -float-abi=hard  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-M4-HARD-FAST
77 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -mcpu=cortex-m4 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
78 ; RUN: llc < %s -mtriple=thumbv7em-linux-gnueabi -mcpu=cortex-m7 -mattr=-vfp2 | FileCheck %s --check-prefix=CORTEX-M7 --check-prefix=CORTEX-M7-SOFT
79 ; RUN: llc < %s -mtriple=thumbv7em-linux-gnueabi -mcpu=cortex-m7 -mattr=-vfp2  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-M7-NOFPU-FAST
80 ; RUN: llc < %s -mtriple=thumbv7em-linux-gnueabi -mcpu=cortex-m7 -mattr=+fp-only-sp | FileCheck %s --check-prefix=CORTEX-M7 --check-prefix=CORTEX-M7-SINGLE
81 ; RUN: llc < %s -mtriple=thumbv7em-linux-gnueabi -mcpu=cortex-m7 -mattr=+fp-only-sp  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-M7-FAST
82 ; RUN: llc < %s -mtriple=thumbv7em-linux-gnueabi -mcpu=cortex-m7 | FileCheck %s --check-prefix=CORTEX-M7-DOUBLE
83 ; RUN: llc < %s -mtriple=thumbv7em-linux-gnueabi -mcpu=cortex-m7 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
84 ; RUN: llc < %s -mtriple=armv7r-linux-gnueabi -mcpu=cortex-r5 | FileCheck %s --check-prefix=CORTEX-R5
85 ; RUN: llc < %s -mtriple=armv7r-linux-gnueabi -mcpu=cortex-r5  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-R5-FAST
86 ; RUN: llc < %s -mtriple=armv7r-linux-gnueabi -mcpu=cortex-r5 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
87 ; RUN: llc < %s -mtriple=armv7r-linux-gnueabi -mcpu=cortex-r7 | FileCheck %s --check-prefix=CORTEX-R7
88 ; RUN: llc < %s -mtriple=armv7r-linux-gnueabi -mcpu=cortex-r7  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-R7-FAST
89 ; RUN: llc < %s -mtriple=armv7r-linux-gnueabi -mcpu=cortex-r7 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
90 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mcpu=cortex-a53 | FileCheck %s --check-prefix=CORTEX-A53
91 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mcpu=cortex-a53  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A53-FAST
92 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mcpu=cortex-a53 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
93 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mcpu=cortex-a57 | FileCheck %s --check-prefix=CORTEX-A57
94 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mcpu=cortex-a57  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A57-FAST
95 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mcpu=cortex-a57 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
96 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mcpu=cortex-a72 | FileCheck %s --check-prefix=CORTEX-A72
97 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mcpu=cortex-a72  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A72-FAST
98 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mcpu=cortex-a72 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
99 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7 | FileCheck %s  --check-prefix=CORTEX-A7-CHECK
100 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s  --check-prefix=CORTEX-A7-CHECK-FAST
101 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7 -mattr=-vfp2,-vfp3,-vfp4,-neon | FileCheck %s --check-prefix=CORTEX-A7-NOFPU
102 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7 -mattr=-vfp2,-vfp3,-vfp4,-neon  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A7-NOFPU-FAST
103 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7 -mattr=+vfp4,-neon | FileCheck %s --check-prefix=CORTEX-A7-FPUV4
104 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
105 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7 -mattr=+vfp4,-neon  -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A7-FPUV4-FAST
106 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7 -mattr=+vfp4,,+d16,-neon | FileCheck %s --check-prefix=CORTEX-A7-FPUV4
107 ; RUN: llc < %s -mtriple=arm-none-linux-gnueabi -relocation-model=pic | FileCheck %s --check-prefix=RELOC-PIC
108 ; RUN: llc < %s -mtriple=arm-none-linux-gnueabi -relocation-model=static | FileCheck %s --check-prefix=RELOC-OTHER
109 ; RUN: llc < %s -mtriple=arm-none-linux-gnueabi -relocation-model=default | FileCheck %s --check-prefix=RELOC-OTHER
110 ; RUN: llc < %s -mtriple=arm-none-linux-gnueabi -relocation-model=dynamic-no-pic | FileCheck %s --check-prefix=RELOC-OTHER
111 ; RUN: llc < %s -mtriple=arm-none-linux-gnueabi | FileCheck %s --check-prefix=RELOC-OTHER
112 ; RUN: llc < %s -mtriple=arm-none-linux-gnueabi | FileCheck %s --check-prefix=PCS-R9-USE
113 ; RUN: llc < %s -mtriple=arm-none-linux-gnueabi -arm-reserve-r9 | FileCheck %s --check-prefix=PCS-R9-RESERVE
114
115 ; ARMv8a (AArch32)
116 ; RUN: llc < %s -mtriple=armv8-none-linux-gnueabi -mcpu=cortex-a57 -arm-no-strict-align | FileCheck %s --check-prefix=NO-STRICT-ALIGN
117 ; RUN: llc < %s -mtriple=armv8-none-linux-gnueabi -mcpu=cortex-a57 -arm-strict-align | FileCheck %s --check-prefix=STRICT-ALIGN
118 ; RUN: llc < %s -mtriple=armv8-none-linux-gnueabi -mcpu=cortex-a57 | FileCheck %s --check-prefix=NO-STRICT-ALIGN
119 ; RUN: llc < %s -mtriple=armv8-none-linux-gnueabi -mcpu=cortex-a72 -arm-no-strict-align | FileCheck %s --check-prefix=NO-STRICT-ALIGN
120 ; RUN: llc < %s -mtriple=armv8-none-linux-gnueabi -mcpu=cortex-a72 -arm-strict-align | FileCheck %s --check-prefix=STRICT-ALIGN
121 ; RUN: llc < %s -mtriple=armv8-none-linux-gnueabi -mcpu=cortex-a72 | FileCheck %s --check-prefix=NO-STRICT-ALIGN
122 ; ARMv7a
123 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7 -arm-no-strict-align | FileCheck %s --check-prefix=NO-STRICT-ALIGN
124 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7 -arm-strict-align | FileCheck %s --check-prefix=STRICT-ALIGN
125 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7 | FileCheck %s --check-prefix=NO-STRICT-ALIGN
126 ; ARMv7r
127 ; RUN: llc < %s -mtriple=armv7r-none-linux-gnueabi -mcpu=cortex-r5 -arm-no-strict-align | FileCheck %s --check-prefix=NO-STRICT-ALIGN
128 ; RUN: llc < %s -mtriple=armv7r-none-linux-gnueabi -mcpu=cortex-r5 -arm-strict-align | FileCheck %s --check-prefix=STRICT-ALIGN
129 ; RUN: llc < %s -mtriple=armv7r-none-linux-gnueabi -mcpu=cortex-r5 | FileCheck %s --check-prefix=NO-STRICT-ALIGN
130 ; ARMv7m
131 ; RUN: llc < %s -mtriple=thumbv7m-none-linux-gnueabi -mcpu=cortex-m3 -arm-no-strict-align | FileCheck %s --check-prefix=NO-STRICT-ALIGN
132 ; RUN: llc < %s -mtriple=thumbv7m-none-linux-gnueabi -mcpu=cortex-m3 -arm-strict-align | FileCheck %s --check-prefix=STRICT-ALIGN
133 ; RUN: llc < %s -mtriple=thumbv7m-none-linux-gnueabi -mcpu=cortex-m3 | FileCheck %s --check-prefix=NO-STRICT-ALIGN
134 ; ARMv6
135 ; RUN: llc < %s -mtriple=armv6-none-netbsd-gnueabi -mcpu=arm1136j-s | FileCheck %s --check-prefix=NO-STRICT-ALIGN
136 ; RUN: llc < %s -mtriple=armv6-none-linux-gnueabi -mcpu=arm1136j-s | FileCheck %s --check-prefix=STRICT-ALIGN
137 ; RUN: llc < %s -mtriple=armv6-none-linux-gnueabi -mcpu=arm1136j-s -arm-no-strict-align | FileCheck %s --check-prefix=NO-STRICT-ALIGN
138 ; RUN: llc < %s -mtriple=armv6-none-linux-gnueabi -mcpu=arm1136j-s -arm-strict-align | FileCheck %s --check-prefix=STRICT-ALIGN
139 ; ARMv6k
140 ; RUN: llc < %s -mtriple=armv6k-none-netbsd-gnueabi -mcpu=arm1176j-s | FileCheck %s --check-prefix=NO-STRICT-ALIGN
141 ; RUN: llc < %s -mtriple=armv6k-none-linux-gnueabi -mcpu=arm1176j-s | FileCheck %s --check-prefix=STRICT-ALIGN
142 ; RUN: llc < %s -mtriple=armv6k-none-linux-gnueabi -mcpu=arm1176j-s -arm-no-strict-align | FileCheck %s --check-prefix=NO-STRICT-ALIGN
143 ; RUN: llc < %s -mtriple=armv6k-none-linux-gnueabi -mcpu=arm1176j-s -arm-strict-align | FileCheck %s --check-prefix=STRICT-ALIGN
144 ; ARMv6m
145 ; RUN: llc < %s -mtriple=thumb-none-linux-gnueabi -arm-no-strict-align -mcpu=cortex-m0 | FileCheck %s --check-prefix=STRICT-ALIGN
146 ; RUN: llc < %s -mtriple=thumb-none-linux-gnueabi -arm-strict-align -mcpu=cortex-m0 | FileCheck %s --check-prefix=STRICT-ALIGN
147 ; RUN: llc < %s -mtriple=thumbv6m-none-linux-gnueabi -arm-no-strict-align | FileCheck %s --check-prefix=STRICT-ALIGN
148 ; RUN: llc < %s -mtriple=thumbv6m-none-linux-gnueabi -arm-strict-align | FileCheck %s --check-prefix=STRICT-ALIGN
149 ; RUN: llc < %s -mtriple=thumb-none-linux-gnueabi -mcpu=cortex-m0 | FileCheck %s --check-prefix=STRICT-ALIGN
150 ; RUN: llc < %s -mtriple=thumb-none-linux-gnueabi -mcpu=cortex-m0 | FileCheck %s --check-prefix=STRICT-ALIGN
151 ; ARMv5
152 ; RUN: llc < %s -mtriple=armv5-none-linux-gnueabi -mcpu=arm1022e -arm-no-strict-align | FileCheck %s --check-prefix=NO-STRICT-ALIGN
153 ; RUN: llc < %s -mtriple=armv5-none-linux-gnueabi -mcpu=arm1022e -arm-strict-align | FileCheck %s --check-prefix=STRICT-ALIGN
154 ; RUN: llc < %s -mtriple=armv5-none-linux-gnueabi -mcpu=arm1022e | FileCheck %s --check-prefix=STRICT-ALIGN
155
156 ; XSCALE:      .eabi_attribute 6, 5
157 ; XSCALE:      .eabi_attribute 8, 1
158 ; XSCALE:      .eabi_attribute 9, 1
159
160 ; DYN-ROUNDING: .eabi_attribute 19, 1
161
162 ; V6:   .eabi_attribute 6, 6
163 ; V6:   .eabi_attribute 8, 1
164 ;; We assume round-to-nearest by default (matches GCC)
165 ; V6-NOT:   .eabi_attribute 19
166 ;; The default choice made by llc is for a V6 CPU without an FPU.
167 ;; This is not an interesting detail, but for such CPUs, the default intention is to use
168 ;; software floating-point support. The choice is not important for targets without
169 ;; FPU support!
170 ; V6:   .eabi_attribute 20, 1
171 ; V6:   .eabi_attribute 21, 1
172 ; V6-NOT:   .eabi_attribute 22
173 ; V6:   .eabi_attribute 23, 3
174 ; V6:   .eabi_attribute 24, 1
175 ; V6:   .eabi_attribute 25, 1
176 ; V6-NOT:   .eabi_attribute 27
177 ; V6-NOT:   .eabi_attribute 28
178 ; V6-NOT:    .eabi_attribute 36
179 ; V6:    .eabi_attribute 38, 1
180 ; V6-NOT:    .eabi_attribute 42
181 ; V6-NOT:  .eabi_attribute 44
182 ; V6-NOT:    .eabi_attribute 68
183
184 ; V6-FAST-NOT:   .eabi_attribute 19
185 ;; Despite the V6 CPU having no FPU by default, we chose to flush to
186 ;; positive zero here. There's no hardware support doing this, but the
187 ;; fast maths software library might.
188 ; V6-FAST-NOT:   .eabi_attribute 20
189 ; V6-FAST-NOT:   .eabi_attribute 21
190 ; V6-FAST-NOT:   .eabi_attribute 22
191 ; V6-FAST:   .eabi_attribute 23, 1
192
193 ;; We emit 6, 12 for both v6-M and v6S-M, technically this is incorrect for
194 ;; V6-M, however we don't model the OS extension so this is fine.
195 ; V6M:  .eabi_attribute 6, 12
196 ; V6M-NOT:  .eabi_attribute 7
197 ; V6M:  .eabi_attribute 8, 0
198 ; V6M:  .eabi_attribute 9, 1
199 ; V6M-NOT:   .eabi_attribute 19
200 ;; The default choice made by llc is for a V6M CPU without an FPU.
201 ;; This is not an interesting detail, but for such CPUs, the default intention is to use
202 ;; software floating-point support. The choice is not important for targets without
203 ;; FPU support!
204 ; V6M:  .eabi_attribute 20, 1
205 ; V6M:   .eabi_attribute 21, 1
206 ; V6M-NOT:   .eabi_attribute 22
207 ; V6M:   .eabi_attribute 23, 3
208 ; V6M:  .eabi_attribute 24, 1
209 ; V6M:  .eabi_attribute 25, 1
210 ; V6M-NOT:  .eabi_attribute 27
211 ; V6M-NOT:  .eabi_attribute 28
212 ; V6M-NOT:  .eabi_attribute 36
213 ; V6M:  .eabi_attribute 38, 1
214 ; V6M-NOT:  .eabi_attribute 42
215 ; V6M-NOT:  .eabi_attribute 44
216 ; V6M-NOT:  .eabi_attribute 68
217
218 ; V6M-FAST-NOT:   .eabi_attribute 19
219 ;; Despite the V6M CPU having no FPU by default, we chose to flush to
220 ;; positive zero here. There's no hardware support doing this, but the
221 ;; fast maths software library might.
222 ; V6M-FAST-NOT:  .eabi_attribute 20
223 ; V6M-FAST-NOT:   .eabi_attribute 21
224 ; V6M-FAST-NOT:   .eabi_attribute 22
225 ; V6M-FAST:   .eabi_attribute 23, 1
226
227 ; ARM1156T2F-S: .cpu arm1156t2f-s
228 ; ARM1156T2F-S: .eabi_attribute 6, 8
229 ; ARM1156T2F-S: .eabi_attribute 8, 1
230 ; ARM1156T2F-S: .eabi_attribute 9, 2
231 ; ARM1156T2F-S: .fpu vfpv2
232 ; ARM1156T2F-S-NOT:   .eabi_attribute 19
233 ;; We default to IEEE 754 compliance
234 ; ARM1156T2F-S: .eabi_attribute 20, 1
235 ; ARM1156T2F-S: .eabi_attribute 21, 1
236 ; ARM1156T2F-S-NOT: .eabi_attribute 22
237 ; ARM1156T2F-S: .eabi_attribute 23, 3
238 ; ARM1156T2F-S: .eabi_attribute 24, 1
239 ; ARM1156T2F-S: .eabi_attribute 25, 1
240 ; ARM1156T2F-S-NOT: .eabi_attribute 27
241 ; ARM1156T2F-S-NOT: .eabi_attribute 28
242 ; ARM1156T2F-S-NOT: .eabi_attribute 36
243 ; ARM1156T2F-S: .eabi_attribute 38, 1
244 ; ARM1156T2F-S-NOT:    .eabi_attribute 42
245 ; ARM1156T2F-S-NOT:    .eabi_attribute 44
246 ; ARM1156T2F-S-NOT:    .eabi_attribute 68
247
248 ; ARM1156T2F-S-FAST-NOT:   .eabi_attribute 19
249 ;; V6 cores default to flush to positive zero (value 0). Note that value 2 is also equally
250 ;; valid for this core, it's an implementation defined question as to which of 0 and 2 you
251 ;; select. LLVM historically picks 0.
252 ; ARM1156T2F-S-FAST-NOT: .eabi_attribute 20
253 ; ARM1156T2F-S-FAST-NOT:   .eabi_attribute 21
254 ; ARM1156T2F-S-FAST-NOT:   .eabi_attribute 22
255 ; ARM1156T2F-S-FAST:   .eabi_attribute 23, 1
256
257 ; V7M:  .eabi_attribute 6, 10
258 ; V7M:  .eabi_attribute 7, 77
259 ; V7M:  .eabi_attribute 8, 0
260 ; V7M:  .eabi_attribute 9, 2
261 ; V7M-NOT:   .eabi_attribute 19
262 ;; The default choice made by llc is for a V7M CPU without an FPU.
263 ;; This is not an interesting detail, but for such CPUs, the default intention is to use
264 ;; software floating-point support. The choice is not important for targets without
265 ;; FPU support!
266 ; V7M:  .eabi_attribute 20, 1
267 ; V7M: .eabi_attribute 21, 1
268 ; V7M-NOT: .eabi_attribute 22
269 ; V7M: .eabi_attribute 23, 3
270 ; V7M:  .eabi_attribute 24, 1
271 ; V7M:  .eabi_attribute 25, 1
272 ; V7M-NOT:  .eabi_attribute 27
273 ; V7M-NOT:  .eabi_attribute 28
274 ; V7M-NOT:  .eabi_attribute 36
275 ; V7M:  .eabi_attribute 38, 1
276 ; V7M-NOT:  .eabi_attribute 42
277 ; V7M-NOT:  .eabi_attribute 44
278 ; V7M-NOT:  .eabi_attribute 68
279
280 ; V7M-FAST-NOT:   .eabi_attribute 19
281 ;; Despite the V7M CPU having no FPU by default, we chose to flush
282 ;; preserving sign. This matches what the hardware would do in the
283 ;; architecture revision were to exist on the current target.
284 ; V7M-FAST:  .eabi_attribute 20, 2
285 ; V7M-FAST-NOT:   .eabi_attribute 21
286 ; V7M-FAST-NOT:   .eabi_attribute 22
287 ; V7M-FAST:   .eabi_attribute 23, 1
288
289 ; V7:      .syntax unified
290 ; V7: .eabi_attribute 6, 10
291 ; V7-NOT:   .eabi_attribute 19
292 ;; In safe-maths mode we default to an IEEE 754 compliant choice.
293 ; V7: .eabi_attribute 20, 1
294 ; V7: .eabi_attribute 21, 1
295 ; V7-NOT: .eabi_attribute 22
296 ; V7: .eabi_attribute 23, 3
297 ; V7: .eabi_attribute 24, 1
298 ; V7: .eabi_attribute 25, 1
299 ; V7-NOT: .eabi_attribute 27
300 ; V7-NOT: .eabi_attribute 28
301 ; V7-NOT: .eabi_attribute 36
302 ; V7: .eabi_attribute 38, 1
303 ; V7-NOT:    .eabi_attribute 42
304 ; V7-NOT:    .eabi_attribute 44
305 ; V7-NOT:    .eabi_attribute 68
306
307 ; V7-FAST-NOT:   .eabi_attribute 19
308 ;; The default CPU does have an FPU and it must be VFPv3 or better, so it flushes
309 ;; denormals to zero preserving the sign.
310 ; V7-FAST: .eabi_attribute 20, 2
311 ; V7-FAST-NOT:   .eabi_attribute 21
312 ; V7-FAST-NOT:   .eabi_attribute 22
313 ; V7-FAST:   .eabi_attribute 23, 1
314
315 ; V8:      .syntax unified
316 ; V8: .eabi_attribute 67, "2.09"
317 ; V8: .eabi_attribute 6, 14
318 ; V8-NOT:   .eabi_attribute 19
319 ; V8: .eabi_attribute 20, 1
320 ; V8: .eabi_attribute 21, 1
321 ; V8-NOT: .eabi_attribute 22
322 ; V8: .eabi_attribute 23, 3
323 ; V8-NOT: .eabi_attribute 44
324
325 ; V8-FAST-NOT:   .eabi_attribute 19
326 ;; The default does have an FPU, and for V8-A, it flushes preserving sign.
327 ; V8-FAST: .eabi_attribute 20, 2
328 ; V8-FAST-NOT: .eabi_attribute 21
329 ; V8-FAST-NOT: .eabi_attribute 22
330 ; V8-FAST: .eabi_attribute 23, 1
331
332 ; Vt8:     .syntax unified
333 ; Vt8: .eabi_attribute 6, 14
334 ; Vt8-NOT:   .eabi_attribute 19
335 ; Vt8: .eabi_attribute 20, 1
336 ; Vt8: .eabi_attribute 21, 1
337 ; Vt8-NOT: .eabi_attribute 22
338 ; Vt8: .eabi_attribute 23, 3
339
340 ; V8-FPARMv8:      .syntax unified
341 ; V8-FPARMv8: .eabi_attribute 6, 14
342 ; V8-FPARMv8: .fpu fp-armv8
343
344 ; V8-NEON:      .syntax unified
345 ; V8-NEON: .eabi_attribute 6, 14
346 ; V8-NEON: .fpu neon
347 ; V8-NEON: .eabi_attribute 12, 3
348
349 ; V8-FPARMv8-NEON:      .syntax unified
350 ; V8-FPARMv8-NEON: .eabi_attribute 6, 14
351 ; V8-FPARMv8-NEON: .fpu neon-fp-armv8
352 ; V8-FPARMv8-NEON: .eabi_attribute 12, 3
353
354 ; V8-FPARMv8-NEON-CRYPTO:      .syntax unified
355 ; V8-FPARMv8-NEON-CRYPTO: .eabi_attribute 6, 14
356 ; V8-FPARMv8-NEON-CRYPTO: .fpu crypto-neon-fp-armv8
357 ; V8-FPARMv8-NEON-CRYPTO: .eabi_attribute 12, 3
358
359 ; Tag_CPU_unaligned_access
360 ; NO-STRICT-ALIGN: .eabi_attribute 34, 1
361 ; STRICT-ALIGN: .eabi_attribute 34, 0
362
363 ; Tag_CPU_arch  'ARMv7'
364 ; CORTEX-A7-CHECK: .eabi_attribute      6, 10
365 ; CORTEX-A7-NOFPU: .eabi_attribute      6, 10
366
367 ; CORTEX-A7-FPUV4: .eabi_attribute      6, 10
368
369 ; Tag_CPU_arch_profile 'A'
370 ; CORTEX-A7-CHECK: .eabi_attribute      7, 65
371 ; CORTEX-A7-NOFPU: .eabi_attribute      7, 65
372 ; CORTEX-A7-FPUV4: .eabi_attribute      7, 65
373
374 ; Tag_ARM_ISA_use
375 ; CORTEX-A7-CHECK: .eabi_attribute      8, 1
376 ; CORTEX-A7-NOFPU: .eabi_attribute      8, 1
377 ; CORTEX-A7-FPUV4: .eabi_attribute      8, 1
378
379 ; Tag_THUMB_ISA_use
380 ; CORTEX-A7-CHECK: .eabi_attribute      9, 2
381 ; CORTEX-A7-NOFPU: .eabi_attribute      9, 2
382 ; CORTEX-A7-FPUV4: .eabi_attribute      9, 2
383
384 ; CORTEX-A7-CHECK: .fpu neon-vfpv4
385 ; CORTEX-A7-NOFPU-NOT: .fpu
386 ; CORTEX-A7-FPUV4: .fpu vfpv4
387
388 ; CORTEX-A7-CHECK-NOT:   .eabi_attribute 19
389 ; Tag_ABI_FP_denormal
390 ;; We default to IEEE 754 compliance
391 ; CORTEX-A7-CHECK: .eabi_attribute      20, 1
392 ;; The A7 has VFPv3 support by default, so flush preserving sign.
393 ; CORTEX-A7-CHECK-FAST: .eabi_attribute 20, 2
394 ; CORTEX-A7-NOFPU: .eabi_attribute      20, 1
395 ;; Despite there being no FPU, we chose to flush to zero preserving
396 ;; sign. This matches what the hardware would do for this architecture
397 ;; revision.
398 ; CORTEX-A7-NOFPU-FAST: .eabi_attribute 20, 2
399 ; CORTEX-A7-FPUV4: .eabi_attribute      20, 1
400 ;; The VFPv4 FPU flushes preserving sign.
401 ; CORTEX-A7-FPUV4-FAST: .eabi_attribute 20, 2
402
403 ; Tag_ABI_FP_exceptions
404 ; CORTEX-A7-CHECK: .eabi_attribute      21, 1
405 ; CORTEX-A7-NOFPU: .eabi_attribute      21, 1
406 ; CORTEX-A7-FPUV4: .eabi_attribute      21, 1
407
408 ; Tag_ABI_FP_user_exceptions
409 ; CORTEX-A7-CHECK-NOT: .eabi_attribute      22
410 ; CORTEX-A7-NOFPU-NOT: .eabi_attribute      22
411 ; CORTEX-A7-FPUV4-NOT: .eabi_attribute      22
412
413 ; Tag_ABI_FP_number_model
414 ; CORTEX-A7-CHECK: .eabi_attribute      23, 3
415 ; CORTEX-A7-NOFPU: .eabi_attribute      23, 3
416 ; CORTEX-A7-FPUV4: .eabi_attribute      23, 3
417
418 ; Tag_ABI_align_needed
419 ; CORTEX-A7-CHECK: .eabi_attribute      24, 1
420 ; CORTEX-A7-NOFPU: .eabi_attribute      24, 1
421 ; CORTEX-A7-FPUV4: .eabi_attribute      24, 1
422
423 ; Tag_ABI_align_preserved
424 ; CORTEX-A7-CHECK: .eabi_attribute      25, 1
425 ; CORTEX-A7-NOFPU: .eabi_attribute      25, 1
426 ; CORTEX-A7-FPUV4: .eabi_attribute      25, 1
427
428 ; Tag_FP_HP_extension
429 ; CORTEX-A7-CHECK: .eabi_attribute      36, 1
430 ; CORTEX-A7-NOFPU: .eabi_attribute      36, 1
431 ; CORTEX-A7-FPUV4: .eabi_attribute      36, 1
432
433 ; Tag_FP_16bit_format
434 ; CORTEX-A7-CHECK: .eabi_attribute      38, 1
435 ; CORTEX-A7-NOFPU: .eabi_attribute      38, 1
436 ; CORTEX-A7-FPUV4: .eabi_attribute      38, 1
437
438 ; Tag_MPextension_use
439 ; CORTEX-A7-CHECK: .eabi_attribute      42, 1
440 ; CORTEX-A7-NOFPU: .eabi_attribute      42, 1
441 ; CORTEX-A7-FPUV4: .eabi_attribute      42, 1
442
443 ; Tag_DIV_use
444 ; CORTEX-A7-CHECK: .eabi_attribute      44, 2
445 ; CORTEX-A7-NOFPU: .eabi_attribute      44, 2
446 ; CORTEX-A7-FPUV4: .eabi_attribute      44, 2
447
448 ; Tag_Virtualization_use
449 ; CORTEX-A7-CHECK: .eabi_attribute      68, 3
450 ; CORTEX-A7-NOFPU: .eabi_attribute      68, 3
451 ; CORTEX-A7-FPUV4: .eabi_attribute      68, 3
452
453 ; CORTEX-A5-DEFAULT:        .cpu    cortex-a5
454 ; CORTEX-A5-DEFAULT:        .eabi_attribute 6, 10
455 ; CORTEX-A5-DEFAULT:        .eabi_attribute 7, 65
456 ; CORTEX-A5-DEFAULT:        .eabi_attribute 8, 1
457 ; CORTEX-A5-DEFAULT:        .eabi_attribute 9, 2
458 ; CORTEX-A5-DEFAULT:        .fpu    neon-vfpv4
459 ; CORTEX-A5-NOT:   .eabi_attribute 19
460 ;; We default to IEEE 754 compliance
461 ; CORTEX-A5-DEFAULT:        .eabi_attribute 20, 1
462 ; CORTEX-A5-DEFAULT:        .eabi_attribute 21, 1
463 ; CORTEX-A5-DEFAULT-NOT:        .eabi_attribute 22
464 ; CORTEX-A5-DEFAULT:        .eabi_attribute 23, 3
465 ; CORTEX-A5-DEFAULT:        .eabi_attribute 24, 1
466 ; CORTEX-A5-DEFAULT:        .eabi_attribute 25, 1
467 ; CORTEX-A5-DEFAULT:        .eabi_attribute 42, 1
468 ; CORTEX-A5-DEFAULT-NOT:        .eabi_attribute 44
469 ; CORTEX-A5-DEFAULT:        .eabi_attribute 68, 1
470
471 ; CORTEX-A5-DEFAULT-FAST-NOT:   .eabi_attribute 19
472 ;; The A5 defaults to a VFPv4 FPU, so it flushed preserving sign when -ffast-math
473 ;; is given.
474 ; CORTEX-A5-DEFAULT-FAST:        .eabi_attribute 20, 2
475 ; CORTEX-A5-DEFAULT-FAST-NOT: .eabi_attribute 21
476 ; CORTEX-A5-DEFAULT-FAST-NOT: .eabi_attribute 22
477 ; CORTEX-A5-DEFAULT-FAST: .eabi_attribute 23, 1
478
479 ; CORTEX-A5-NONEON:        .cpu    cortex-a5
480 ; CORTEX-A5-NONEON:        .eabi_attribute 6, 10
481 ; CORTEX-A5-NONEON:        .eabi_attribute 7, 65
482 ; CORTEX-A5-NONEON:        .eabi_attribute 8, 1
483 ; CORTEX-A5-NONEON:        .eabi_attribute 9, 2
484 ; CORTEX-A5-NONEON:        .fpu    vfpv4-d16
485 ;; We default to IEEE 754 compliance
486 ; CORTEX-A5-NONEON:        .eabi_attribute 20, 1
487 ; CORTEX-A5-NONEON:        .eabi_attribute 21, 1
488 ; CORTEX-A5-NONEON-NOT:    .eabi_attribute 22
489 ; CORTEX-A5-NONEON:        .eabi_attribute 23, 3
490 ; CORTEX-A5-NONEON:        .eabi_attribute 24, 1
491 ; CORTEX-A5-NONEON:        .eabi_attribute 25, 1
492 ; CORTEX-A5-NONEON:        .eabi_attribute 42, 1
493 ; CORTEX-A5-NONEON:        .eabi_attribute 68, 1
494
495 ; CORTEX-A5-NONEON-FAST-NOT:   .eabi_attribute 19
496 ;; The A5 defaults to a VFPv4 FPU, so it flushed preserving sign when -ffast-math
497 ;; is given.
498 ; CORTEX-A5-NONEON-FAST:        .eabi_attribute 20, 2
499 ; CORTEX-A5-NONEON-FAST-NOT: .eabi_attribute 21
500 ; CORTEX-A5-NONEON-FAST-NOT: .eabi_attribute 22
501 ; CORTEX-A5-NONEON-FAST: .eabi_attribute 23, 1
502
503 ; CORTEX-A5-NOFPU:        .cpu    cortex-a5
504 ; CORTEX-A5-NOFPU:        .eabi_attribute 6, 10
505 ; CORTEX-A5-NOFPU:        .eabi_attribute 7, 65
506 ; CORTEX-A5-NOFPU:        .eabi_attribute 8, 1
507 ; CORTEX-A5-NOFPU:        .eabi_attribute 9, 2
508 ; CORTEX-A5-NOFPU-NOT:    .fpu
509 ; CORTEX-A5-NOFPU-NOT:   .eabi_attribute 19
510 ;; We default to IEEE 754 compliance
511 ; CORTEX-A5-NOFPU:        .eabi_attribute 20, 1
512 ; CORTEX-A5-NOFPU:        .eabi_attribute 21, 1
513 ; CORTEX-A5-NOFPU-NOT:    .eabi_attribute 22
514 ; CORTEX-A5-NOFPU:        .eabi_attribute 23, 3
515 ; CORTEX-A5-NOFPU:        .eabi_attribute 24, 1
516 ; CORTEX-A5-NOFPU:        .eabi_attribute 25, 1
517 ; CORTEX-A5-NOFPU:        .eabi_attribute 42, 1
518 ; CORTEX-A5-NOFPU:        .eabi_attribute 68, 1
519
520 ; CORTEX-A5-NOFPU-FAST-NOT:   .eabi_attribute 19
521 ;; Despite there being no FPU, we chose to flush to zero preserving
522 ;; sign. This matches what the hardware would do for this architecture
523 ;; revision.
524 ; CORTEX-A5-NOFPU-FAST: .eabi_attribute 20, 2
525 ; CORTEX-A5-NOFPU-FAST-NOT: .eabi_attribute 21
526 ; CORTEX-A5-NOFPU-FAST-NOT: .eabi_attribute 22
527 ; CORTEX-A5-NOFPU-FAST: .eabi_attribute 23, 1
528
529 ; CORTEX-A9-SOFT:  .cpu cortex-a9
530 ; CORTEX-A9-SOFT:  .eabi_attribute 6, 10
531 ; CORTEX-A9-SOFT:  .eabi_attribute 7, 65
532 ; CORTEX-A9-SOFT:  .eabi_attribute 8, 1
533 ; CORTEX-A9-SOFT:  .eabi_attribute 9, 2
534 ; CORTEX-A9-SOFT:  .fpu neon
535 ; CORTEX-A9-SOFT-NOT:   .eabi_attribute 19
536 ;; We default to IEEE 754 compliance
537 ; CORTEX-A9-SOFT:  .eabi_attribute 20, 1
538 ; CORTEX-A9-SOFT:  .eabi_attribute 21, 1
539 ; CORTEX-A9-SOFT-NOT:  .eabi_attribute 22
540 ; CORTEX-A9-SOFT:  .eabi_attribute 23, 3
541 ; CORTEX-A9-SOFT:  .eabi_attribute 24, 1
542 ; CORTEX-A9-SOFT:  .eabi_attribute 25, 1
543 ; CORTEX-A9-SOFT-NOT:  .eabi_attribute 27
544 ; CORTEX-A9-SOFT-NOT:  .eabi_attribute 28
545 ; CORTEX-A9-SOFT:  .eabi_attribute 36, 1
546 ; CORTEX-A9-SOFT:  .eabi_attribute 38, 1
547 ; CORTEX-A9-SOFT:  .eabi_attribute 42, 1
548 ; CORTEX-A9-SOFT-NOT:  .eabi_attribute 44
549 ; CORTEX-A9-SOFT:  .eabi_attribute 68, 1
550
551 ; CORTEX-A9-SOFT-FAST-NOT:   .eabi_attribute 19
552 ;; The A9 defaults to a VFPv3 FPU, so it flushes preseving sign when
553 ;; -ffast-math is specified.
554 ; CORTEX-A9-SOFT-FAST:  .eabi_attribute 20, 2
555 ; CORTEX-A5-SOFT-FAST-NOT: .eabi_attribute 21
556 ; CORTEX-A5-SOFT-FAST-NOT: .eabi_attribute 22
557 ; CORTEX-A5-SOFT-FAST: .eabi_attribute 23, 1
558
559 ; CORTEX-A9-HARD:  .cpu cortex-a9
560 ; CORTEX-A9-HARD:  .eabi_attribute 6, 10
561 ; CORTEX-A9-HARD:  .eabi_attribute 7, 65
562 ; CORTEX-A9-HARD:  .eabi_attribute 8, 1
563 ; CORTEX-A9-HARD:  .eabi_attribute 9, 2
564 ; CORTEX-A9-HARD:  .fpu neon
565 ; CORTEX-A9-HARD-NOT:   .eabi_attribute 19
566 ;; We default to IEEE 754 compliance
567 ; CORTEX-A9-HARD:  .eabi_attribute 20, 1
568 ; CORTEX-A9-HARD:  .eabi_attribute 21, 1
569 ; CORTEX-A9-HARD-NOT:  .eabi_attribute 22
570 ; CORTEX-A9-HARD:  .eabi_attribute 23, 3
571 ; CORTEX-A9-HARD:  .eabi_attribute 24, 1
572 ; CORTEX-A9-HARD:  .eabi_attribute 25, 1
573 ; CORTEX-A9-HARD-NOT:  .eabi_attribute 27
574 ; CORTEX-A9-HARD:  .eabi_attribute 28, 1
575 ; CORTEX-A9-HARD:  .eabi_attribute 36, 1
576 ; CORTEX-A9-HARD:  .eabi_attribute 38, 1
577 ; CORTEX-A9-HARD:  .eabi_attribute 42, 1
578 ; CORTEX-A9-HARD:  .eabi_attribute 68, 1
579
580 ; CORTEX-A9-HARD-FAST-NOT:   .eabi_attribute 19
581 ;; The A9 defaults to a VFPv3 FPU, so it flushes preseving sign when
582 ;; -ffast-math is specified.
583 ; CORTEX-A9-HARD-FAST:  .eabi_attribute 20, 2
584 ; CORTEX-A9-HARD-FAST-NOT:  .eabi_attribute 21
585 ; CORTEX-A9-HARD-FAST-NOT:  .eabi_attribute 22
586 ; CORTEX-A9-HARD-FAST:  .eabi_attribute 23, 1
587
588 ; CORTEX-A12-DEFAULT:  .cpu cortex-a12
589 ; CORTEX-A12-DEFAULT:  .eabi_attribute 6, 10
590 ; CORTEX-A12-DEFAULT:  .eabi_attribute 7, 65
591 ; CORTEX-A12-DEFAULT:  .eabi_attribute 8, 1
592 ; CORTEX-A12-DEFAULT:  .eabi_attribute 9, 2
593 ; CORTEX-A12-DEFAULT:  .fpu neon-vfpv4
594 ; CORTEX-A12-DEFAULT-NOT:   .eabi_attribute 19
595 ;; We default to IEEE 754 compliance
596 ; CORTEX-A12-DEFAULT:  .eabi_attribute 20, 1
597 ; CORTEX-A12-DEFAULT:  .eabi_attribute 21, 1
598 ; CORTEX-A12-DEFAULT-NOT:  .eabi_attribute 22
599 ; CORTEX-A12-DEFAULT:  .eabi_attribute 23, 3
600 ; CORTEX-A12-DEFAULT:  .eabi_attribute 24, 1
601 ; CORTEX-A12-DEFAULT:  .eabi_attribute 25, 1
602 ; CORTEX-A12-DEFAULT:  .eabi_attribute 42, 1
603 ; CORTEX-A12-DEFAULT:  .eabi_attribute 44, 2
604 ; CORTEX-A12-DEFAULT:  .eabi_attribute 68, 3
605
606 ; CORTEX-A12-DEFAULT-FAST-NOT:   .eabi_attribute 19
607 ;; The A12 defaults to a VFPv3 FPU, so it flushes preseving sign when
608 ;; -ffast-math is specified.
609 ; CORTEX-A12-DEFAULT-FAST:  .eabi_attribute 20, 2
610 ; CORTEX-A12-HARD-FAST-NOT:  .eabi_attribute 21
611 ; CORTEX-A12-HARD-FAST-NOT:  .eabi_attribute 22
612 ; CORTEX-A12-HARD-FAST:  .eabi_attribute 23, 1
613
614 ; CORTEX-A12-NOFPU:  .cpu cortex-a12
615 ; CORTEX-A12-NOFPU:  .eabi_attribute 6, 10
616 ; CORTEX-A12-NOFPU:  .eabi_attribute 7, 65
617 ; CORTEX-A12-NOFPU:  .eabi_attribute 8, 1
618 ; CORTEX-A12-NOFPU:  .eabi_attribute 9, 2
619 ; CORTEX-A12-NOFPU-NOT:  .fpu
620 ; CORTEX-A12-NOFPU-NOT:   .eabi_attribute 19
621 ;; We default to IEEE 754 compliance
622 ; CORTEX-A12-NOFPU:  .eabi_attribute 20, 1
623 ; CORTEX-A12-NOFPU:  .eabi_attribute 21, 1
624 ; CORTEX-A12-NOFPU-NOT:  .eabi_attribute 22
625 ; CORTEX-A12-NOFPU:  .eabi_attribute 23, 3
626 ; CORTEX-A12-NOFPU:  .eabi_attribute 24, 1
627 ; CORTEX-A12-NOFPU:  .eabi_attribute 25, 1
628 ; CORTEX-A12-NOFPU:  .eabi_attribute 42, 1
629 ; CORTEX-A12-NOFPU:  .eabi_attribute 44, 2
630 ; CORTEX-A12-NOFPU:  .eabi_attribute 68, 3
631
632 ; CORTEX-A12-NOFPU-FAST-NOT:   .eabi_attribute 19
633 ;; Despite there being no FPU, we chose to flush to zero preserving
634 ;; sign. This matches what the hardware would do for this architecture
635 ;; revision.
636 ; CORTEX-A12-NOFPU-FAST:  .eabi_attribute 20, 2
637 ; CORTEX-A12-NOFPU-FAST-NOT:  .eabi_attribute 21
638 ; CORTEX-A12-NOFPU-FAST-NOT:  .eabi_attribute 22
639 ; CORTEX-A12-NOFPU-FAST:  .eabi_attribute 23, 1
640
641 ; CORTEX-A15: .cpu cortex-a15
642 ; CORTEX-A15: .eabi_attribute 6, 10
643 ; CORTEX-A15: .eabi_attribute 7, 65
644 ; CORTEX-A15: .eabi_attribute 8, 1
645 ; CORTEX-A15: .eabi_attribute 9, 2
646 ; CORTEX-A15: .fpu neon-vfpv4
647 ; CORTEX-A15-NOT:   .eabi_attribute 19
648 ;; We default to IEEE 754 compliance
649 ; CORTEX-A15: .eabi_attribute 20, 1
650 ; CORTEX-A15: .eabi_attribute 21, 1
651 ; CORTEX-A15-NOT: .eabi_attribute 22
652 ; CORTEX-A15: .eabi_attribute 23, 3
653 ; CORTEX-A15: .eabi_attribute 24, 1
654 ; CORTEX-A15: .eabi_attribute 25, 1
655 ; CORTEX-A15-NOT: .eabi_attribute 27
656 ; CORTEX-A15-NOT: .eabi_attribute 28
657 ; CORTEX-A15: .eabi_attribute 36, 1
658 ; CORTEX-A15: .eabi_attribute 38, 1
659 ; CORTEX-A15: .eabi_attribute 42, 1
660 ; CORTEX-A15: .eabi_attribute 44, 2
661 ; CORTEX-A15: .eabi_attribute 68, 3
662
663 ; CORTEX-A15-FAST-NOT:   .eabi_attribute 19
664 ;; The A15 defaults to a VFPv3 FPU, so it flushes preseving sign when
665 ;; -ffast-math is specified.
666 ; CORTEX-A15-FAST: .eabi_attribute 20, 2
667 ; CORTEX-A15-FAST-NOT:  .eabi_attribute 21
668 ; CORTEX-A15-FAST-NOT:  .eabi_attribute 22
669 ; CORTEX-A15-FAST:  .eabi_attribute 23, 1
670
671 ; CORTEX-A17-DEFAULT:  .cpu cortex-a17
672 ; CORTEX-A17-DEFAULT:  .eabi_attribute 6, 10
673 ; CORTEX-A17-DEFAULT:  .eabi_attribute 7, 65
674 ; CORTEX-A17-DEFAULT:  .eabi_attribute 8, 1
675 ; CORTEX-A17-DEFAULT:  .eabi_attribute 9, 2
676 ; CORTEX-A17-DEFAULT:  .fpu neon-vfpv4
677 ; CORTEX-A17-DEFAULT-NOT:   .eabi_attribute 19
678 ;; We default to IEEE 754 compliance
679 ; CORTEX-A17-DEFAULT:  .eabi_attribute 20, 1
680 ; CORTEX-A17-DEFAULT:  .eabi_attribute 21, 1
681 ; CORTEX-A17-DEFAULT-NOT:  .eabi_attribute 22
682 ; CORTEX-A17-DEFAULT:  .eabi_attribute 23, 3
683 ; CORTEX-A17-DEFAULT:  .eabi_attribute 24, 1
684 ; CORTEX-A17-DEFAULT:  .eabi_attribute 25, 1
685 ; CORTEX-A17-DEFAULT:  .eabi_attribute 42, 1
686 ; CORTEX-A17-DEFAULT:  .eabi_attribute 44, 2
687 ; CORTEX-A17-DEFAULT:  .eabi_attribute 68, 3
688
689 ; CORTEX-A17-FAST-NOT:   .eabi_attribute 19
690 ;; The A17 defaults to a VFPv3 FPU, so it flushes preseving sign when
691 ;; -ffast-math is specified.
692 ; CORTEX-A17-FAST:  .eabi_attribute 20, 2
693 ; CORTEX-A17-FAST-NOT:  .eabi_attribute 21
694 ; CORTEX-A17-FAST-NOT:  .eabi_attribute 22
695 ; CORTEX-A17-FAST:  .eabi_attribute 23, 1
696
697 ; CORTEX-A17-NOFPU:  .cpu cortex-a17
698 ; CORTEX-A17-NOFPU:  .eabi_attribute 6, 10
699 ; CORTEX-A17-NOFPU:  .eabi_attribute 7, 65
700 ; CORTEX-A17-NOFPU:  .eabi_attribute 8, 1
701 ; CORTEX-A17-NOFPU:  .eabi_attribute 9, 2
702 ; CORTEX-A17-NOFPU-NOT:  .fpu
703 ; CORTEX-A17-NOFPU-NOT:   .eabi_attribute 19
704 ;; We default to IEEE 754 compliance
705 ; CORTEX-A17-NOFPU:  .eabi_attribute 20, 1
706 ; CORTEX-A17-NOFPU:  .eabi_attribute 21, 1
707 ; CORTEX-A17-NOFPU-NOT:  .eabi_attribute 22
708 ; CORTEX-A17-NOFPU:  .eabi_attribute 23, 3
709 ; CORTEX-A17-NOFPU:  .eabi_attribute 24, 1
710 ; CORTEX-A17-NOFPU:  .eabi_attribute 25, 1
711 ; CORTEX-A17-NOFPU:  .eabi_attribute 42, 1
712 ; CORTEX-A17-NOFPU:  .eabi_attribute 44, 2
713 ; CORTEX-A17-NOFPU:  .eabi_attribute 68, 3
714
715 ; CORTEX-A17-NOFPU-NOT:   .eabi_attribute 19
716 ;; Despite there being no FPU, we chose to flush to zero preserving
717 ;; sign. This matches what the hardware would do for this architecture
718 ;; revision.
719 ; CORTEX-A17-NOFPU-FAST:  .eabi_attribute 20, 2
720 ; CORTEX-A17-NOFPU-FAST-NOT:  .eabi_attribute 21
721 ; CORTEX-A17-NOFPU-FAST-NOT:  .eabi_attribute 22
722 ; CORTEX-A17-NOFPU-FAST:  .eabi_attribute 23, 1
723
724 ; CORTEX-M0:  .cpu cortex-m0
725 ; CORTEX-M0:  .eabi_attribute 6, 12
726 ; CORTEX-M0-NOT:  .eabi_attribute 7
727 ; CORTEX-M0:  .eabi_attribute 8, 0
728 ; CORTEX-M0:  .eabi_attribute 9, 1
729 ; CORTEX-M0-NOT:   .eabi_attribute 19
730 ;; We default to IEEE 754 compliance
731 ; CORTEX-M0:  .eabi_attribute 20, 1
732 ; CORTEX-M0:  .eabi_attribute 21, 1
733 ; CORTEX-M0-NOT:  .eabi_attribute 22
734 ; CORTEX-M0:  .eabi_attribute 23, 3
735 ; CORTEX-M0:  .eabi_attribute 24, 1
736 ; CORTEX-M0:  .eabi_attribute 25, 1
737 ; CORTEX-M0-NOT:  .eabi_attribute 27
738 ; CORTEX-M0-NOT:  .eabi_attribute 28
739 ; CORTEX-M0-NOT:  .eabi_attribute 36
740 ; CORTEX-M0:  .eabi_attribute 38, 1
741 ; CORTEX-M0-NOT:  .eabi_attribute 42
742 ; CORTEX-M0-NOT:  .eabi_attribute 44
743 ; CORTEX-M0-NOT:  .eabi_attribute 68
744
745 ; CORTEX-M0-FAST-NOT:   .eabi_attribute 19
746 ;; Despite the M0 CPU having no FPU in this scenario, we chose to
747 ;; flush to positive zero here. There's no hardware support doing
748 ;; this, but the fast maths software library might and such behaviour
749 ;; would match hardware support on this architecture revision if it
750 ;; existed.
751 ; CORTEX-M0-FAST-NOT:  .eabi_attribute 20
752 ; CORTEX-M0-FAST-NOT:  .eabi_attribute 21
753 ; CORTEX-M0-FAST-NOT:  .eabi_attribute 22
754 ; CORTEX-M0-FAST:  .eabi_attribute 23, 1
755
756 ; CORTEX-M0PLUS:  .cpu cortex-m0plus
757 ; CORTEX-M0PLUS:  .eabi_attribute 6, 12
758 ; CORTEX-M0PLUS-NOT:  .eabi_attribute 7
759 ; CORTEX-M0PLUS:  .eabi_attribute 8, 0
760 ; CORTEX-M0PLUS:  .eabi_attribute 9, 1
761 ; CORTEX-M0PLUS-NOT:   .eabi_attribute 19
762 ;; We default to IEEE 754 compliance
763 ; CORTEX-M0PLUS:  .eabi_attribute 20, 1
764 ; CORTEX-M0PLUS:  .eabi_attribute 21, 1
765 ; CORTEX-M0PLUS-NOT:  .eabi_attribute 22
766 ; CORTEX-M0PLUS:  .eabi_attribute 23, 3
767 ; CORTEX-M0PLUS:  .eabi_attribute 24, 1
768 ; CORTEX-M0PLUS:  .eabi_attribute 25, 1
769 ; CORTEX-M0PLUS-NOT:  .eabi_attribute 27
770 ; CORTEX-M0PLUS-NOT:  .eabi_attribute 28
771 ; CORTEX-M0PLUS-NOT:  .eabi_attribute 36
772 ; CORTEX-M0PLUS:  .eabi_attribute 38, 1
773 ; CORTEX-M0PLUS-NOT:  .eabi_attribute 42
774 ; CORTEX-M0PLUS-NOT:  .eabi_attribute 44
775 ; CORTEX-M0PLUS-NOT:  .eabi_attribute 68
776
777 ; CORTEX-M0PLUS-FAST-NOT:   .eabi_attribute 19
778 ;; Despite the M0+ CPU having no FPU in this scenario, we chose to
779 ;; flush to positive zero here. There's no hardware support doing
780 ;; this, but the fast maths software library might and such behaviour
781 ;; would match hardware support on this architecture revision if it
782 ;; existed.
783 ; CORTEX-M0PLUS-FAST-NOT:  .eabi_attribute 20
784 ; CORTEX-M0PLUS-FAST-NOT:  .eabi_attribute 21
785 ; CORTEX-M0PLUS-FAST-NOT:  .eabi_attribute 22
786 ; CORTEX-M0PLUS-FAST:  .eabi_attribute 23, 1
787
788 ; CORTEX-M1:  .cpu cortex-m1
789 ; CORTEX-M1:  .eabi_attribute 6, 12
790 ; CORTEX-M1-NOT:  .eabi_attribute 7
791 ; CORTEX-M1:  .eabi_attribute 8, 0
792 ; CORTEX-M1:  .eabi_attribute 9, 1
793 ; CORTEX-M1-NOT:   .eabi_attribute 19
794 ;; We default to IEEE 754 compliance
795 ; CORTEX-M1:  .eabi_attribute 20, 1
796 ; CORTEX-M1:  .eabi_attribute 21, 1
797 ; CORTEX-M1-NOT:  .eabi_attribute 22
798 ; CORTEX-M1:  .eabi_attribute 23, 3
799 ; CORTEX-M1:  .eabi_attribute 24, 1
800 ; CORTEX-M1:  .eabi_attribute 25, 1
801 ; CORTEX-M1-NOT:  .eabi_attribute 27
802 ; CORTEX-M1-NOT:  .eabi_attribute 28
803 ; CORTEX-M1-NOT:  .eabi_attribute 36
804 ; CORTEX-M1:  .eabi_attribute 38, 1
805 ; CORTEX-M1-NOT:  .eabi_attribute 42
806 ; CORTEX-M1-NOT:  .eabi_attribute 44
807 ; CORTEX-M1-NOT:  .eabi_attribute 68
808
809 ; CORTEX-M1-FAST-NOT:   .eabi_attribute 19
810 ;; Despite the M1 CPU having no FPU in this scenario, we chose to
811 ;; flush to positive zero here. There's no hardware support doing
812 ;; this, but the fast maths software library might and such behaviour
813 ;; would match hardware support on this architecture revision if it
814 ;; existed.
815 ; CORTEX-M1-FAST-NOT:  .eabi_attribute 20
816 ; CORTEX-M1-FAST-NOT:  .eabi_attribute 21
817 ; CORTEX-M1-FAST-NOT:  .eabi_attribute 22
818 ; CORTEX-M1-FAST:  .eabi_attribute 23, 1
819
820 ; SC000:  .cpu sc000
821 ; SC000:  .eabi_attribute 6, 12
822 ; SC000-NOT:  .eabi_attribute 7
823 ; SC000:  .eabi_attribute 8, 0
824 ; SC000:  .eabi_attribute 9, 1
825 ; SC000-NOT:   .eabi_attribute 19
826 ;; We default to IEEE 754 compliance
827 ; SC000:  .eabi_attribute 20, 1
828 ; SC000:  .eabi_attribute 21, 1
829 ; SC000-NOT:  .eabi_attribute 22
830 ; SC000:  .eabi_attribute 23, 3
831 ; SC000:  .eabi_attribute 24, 1
832 ; SC000:  .eabi_attribute 25, 1
833 ; SC000-NOT:  .eabi_attribute 27
834 ; SC000-NOT:  .eabi_attribute 28
835 ; SC000-NOT:  .eabi_attribute 36
836 ; SC000:  .eabi_attribute 38, 1
837 ; SC000-NOT:  .eabi_attribute 42
838 ; SC000-NOT:  .eabi_attribute 44
839 ; SC000-NOT:  .eabi_attribute 68
840
841 ; SC000-FAST-NOT:   .eabi_attribute 19
842 ;; Despite the SC000 CPU having no FPU in this scenario, we chose to
843 ;; flush to positive zero here. There's no hardware support doing
844 ;; this, but the fast maths software library might and such behaviour
845 ;; would match hardware support on this architecture revision if it
846 ;; existed.
847 ; SC000-FAST-NOT:  .eabi_attribute 20
848 ; SC000-FAST-NOT:  .eabi_attribute 21
849 ; SC000-FAST-NOT:  .eabi_attribute 22
850 ; SC000-FAST:  .eabi_attribute 23, 1
851
852 ; CORTEX-M3:  .cpu cortex-m3
853 ; CORTEX-M3:  .eabi_attribute 6, 10
854 ; CORTEX-M3:  .eabi_attribute 7, 77
855 ; CORTEX-M3:  .eabi_attribute 8, 0
856 ; CORTEX-M3:  .eabi_attribute 9, 2
857 ; CORTEX-M3-NOT:   .eabi_attribute 19
858 ;; We default to IEEE 754 compliance
859 ; CORTEX-M3:  .eabi_attribute 20, 1
860 ; CORTEX-M3:  .eabi_attribute 21, 1
861 ; CORTEX-M3-NOT:  .eabi_attribute 22
862 ; CORTEX-M3:  .eabi_attribute 23, 3
863 ; CORTEX-M3:  .eabi_attribute 24, 1
864 ; CORTEX-M3:  .eabi_attribute 25, 1
865 ; CORTEX-M3-NOT:  .eabi_attribute 27
866 ; CORTEX-M3-NOT:  .eabi_attribute 28
867 ; CORTEX-M3-NOT:  .eabi_attribute 36
868 ; CORTEX-M3:  .eabi_attribute 38, 1
869 ; CORTEX-M3-NOT:  .eabi_attribute 42
870 ; CORTEX-M3-NOT:  .eabi_attribute 44
871 ; CORTEX-M3-NOT:  .eabi_attribute 68
872
873 ; CORTEX-M3-FAST-NOT:   .eabi_attribute 19
874 ;; Despite there being no FPU, we chose to flush to zero preserving
875 ;; sign. This matches what the hardware would do for this architecture
876 ;; revision.
877 ; CORTEX-M3-FAST:  .eabi_attribute 20, 2
878 ; CORTEX-M3-FAST-NOT:  .eabi_attribute 21
879 ; CORTEX-M3-FAST-NOT:  .eabi_attribute 22
880 ; CORTEX-M3-FAST:  .eabi_attribute 23, 1
881
882 ; SC300:  .cpu sc300
883 ; SC300:  .eabi_attribute 6, 10
884 ; SC300:  .eabi_attribute 7, 77
885 ; SC300:  .eabi_attribute 8, 0
886 ; SC300:  .eabi_attribute 9, 2
887 ; SC300-NOT:   .eabi_attribute 19
888 ;; We default to IEEE 754 compliance
889 ; SC300:  .eabi_attribute 20, 1
890 ; SC300:  .eabi_attribute 21, 1
891 ; SC300-NOT:  .eabi_attribute 22
892 ; SC300:  .eabi_attribute 23, 3
893 ; SC300:  .eabi_attribute 24, 1
894 ; SC300:  .eabi_attribute 25, 1
895 ; SC300-NOT:  .eabi_attribute 27
896 ; SC300-NOT:  .eabi_attribute 28
897 ; SC300-NOT:  .eabi_attribute 36
898 ; SC300:  .eabi_attribute 38, 1
899 ; SC300-NOT:  .eabi_attribute 42
900 ; SC300-NOT:  .eabi_attribute 44
901 ; SC300-NOT:  .eabi_attribute 68
902
903 ; SC300-FAST-NOT:   .eabi_attribute 19
904 ;; Despite there being no FPU, we chose to flush to zero preserving
905 ;; sign. This matches what the hardware would do for this architecture
906 ;; revision.
907 ; SC300-FAST:  .eabi_attribute 20, 2
908 ; SC300-FAST-NOT:  .eabi_attribute 21
909 ; SC300-FAST-NOT:  .eabi_attribute 22
910 ; SC300-FAST:  .eabi_attribute 23, 1
911
912 ; CORTEX-M4-SOFT:  .cpu cortex-m4
913 ; CORTEX-M4-SOFT:  .eabi_attribute 6, 13
914 ; CORTEX-M4-SOFT:  .eabi_attribute 7, 77
915 ; CORTEX-M4-SOFT:  .eabi_attribute 8, 0
916 ; CORTEX-M4-SOFT:  .eabi_attribute 9, 2
917 ; CORTEX-M4-SOFT:  .fpu vfpv4-d16
918 ; CORTEX-M4-SOFT-NOT:   .eabi_attribute 19
919 ;; We default to IEEE 754 compliance
920 ; CORTEX-M4-SOFT:  .eabi_attribute 20, 1
921 ; CORTEX-M4-SOFT:  .eabi_attribute 21, 1
922 ; CORTEX-M4-SOFT-NOT:  .eabi_attribute 22
923 ; CORTEX-M4-SOFT:  .eabi_attribute 23, 3
924 ; CORTEX-M4-SOFT:  .eabi_attribute 24, 1
925 ; CORTEX-M4-SOFT:  .eabi_attribute 25, 1
926 ; CORTEX-M4-SOFT:  .eabi_attribute 27, 1
927 ; CORTEX-M4-SOFT-NOT:  .eabi_attribute 28
928 ; CORTEX-M4-SOFT:  .eabi_attribute 36, 1
929 ; CORTEX-M4-SOFT:  .eabi_attribute 38, 1
930 ; CORTEX-M4-SOFT-NOT:  .eabi_attribute 42
931 ; CORTEX-M4-SOFT-NOT:  .eabi_attribute 44
932 ; CORTEX-M4-SOFT-NOT:  .eabi_attribute 68
933
934 ; CORTEX-M4-SOFT-FAST-NOT:   .eabi_attribute 19
935 ;; The M4 defaults to a VFPv4 FPU, so it flushes preseving sign when
936 ;; -ffast-math is specified.
937 ; CORTEX-M4-SOFT-FAST:  .eabi_attribute 20, 2
938 ; CORTEX-M4-SOFT-FAST-NOT:  .eabi_attribute 21
939 ; CORTEX-M4-SOFT-FAST-NOT:  .eabi_attribute 22
940 ; CORTEX-M4-SOFT-FAST:  .eabi_attribute 23, 1
941
942 ; CORTEX-M4-HARD:  .cpu cortex-m4
943 ; CORTEX-M4-HARD:  .eabi_attribute 6, 13
944 ; CORTEX-M4-HARD:  .eabi_attribute 7, 77
945 ; CORTEX-M4-HARD:  .eabi_attribute 8, 0
946 ; CORTEX-M4-HARD:  .eabi_attribute 9, 2
947 ; CORTEX-M4-HARD:  .fpu vfpv4-d16
948 ; CORTEX-M4-HARD-NOT:   .eabi_attribute 19
949 ;; We default to IEEE 754 compliance
950 ; CORTEX-M4-HARD:  .eabi_attribute 20, 1
951 ; CORTEX-M4-HARD:  .eabi_attribute 21, 1
952 ; CORTEX-M4-HARD-NOT:  .eabi_attribute 22
953 ; CORTEX-M4-HARD:  .eabi_attribute 23, 3
954 ; CORTEX-M4-HARD:  .eabi_attribute 24, 1
955 ; CORTEX-M4-HARD:  .eabi_attribute 25, 1
956 ; CORTEX-M4-HARD:  .eabi_attribute 27, 1
957 ; CORTEX-M4-HARD:  .eabi_attribute 28, 1
958 ; CORTEX-M4-HARD:  .eabi_attribute 36, 1
959 ; CORTEX-M4-HARD:  .eabi_attribute 38, 1
960 ; CORTEX-M4-HARD-NOT:  .eabi_attribute 42
961 ; CORTEX-M4-HARD-NOT:  .eabi_attribute 44
962 ; CORTEX-M4-HARD-NOT:  .eabi_attribute 68
963
964 ; CORTEX-M4-HARD-FAST-NOT:   .eabi_attribute 19
965 ;; The M4 defaults to a VFPv4 FPU, so it flushes preseving sign when
966 ;; -ffast-math is specified.
967 ; CORTEX-M4-HARD-FAST:  .eabi_attribute 20, 2
968 ; CORTEX-M4-HARD-FAST-NOT:  .eabi_attribute 21
969 ; CORTEX-M4-HARD-FAST-NOT:  .eabi_attribute 22
970 ; CORTEX-M4-HARD-FAST:  .eabi_attribute 23, 1
971
972 ; CORTEX-M7:  .cpu    cortex-m7
973 ; CORTEX-M7:  .eabi_attribute 6, 13
974 ; CORTEX-M7:  .eabi_attribute 7, 77
975 ; CORTEX-M7:  .eabi_attribute 8, 0
976 ; CORTEX-M7:  .eabi_attribute 9, 2
977 ; CORTEX-M7-SOFT-NOT: .fpu
978 ; CORTEX-M7-SINGLE:  .fpu fpv5-d16
979 ; CORTEX-M7-DOUBLE:  .fpu fpv5-d16
980 ; CORTEX-M7:  .eabi_attribute 17, 1
981 ; CORTEX-M7-NOT:   .eabi_attribute 19
982 ;; We default to IEEE 754 compliance
983 ; CORTEX-M7:  .eabi_attribute 20, 1
984 ; CORTEX-M7:  .eabi_attribute 21, 1
985 ; CORTEX-M7-NOT:  .eabi_attribute 22
986 ; CORTEX-M7:  .eabi_attribute 23, 3
987 ; CORTEX-M7:  .eabi_attribute 24, 1
988 ; CORTEX-M7:  .eabi_attribute 25, 1
989 ; CORTEX-M7-SOFT-NOT: .eabi_attribute 27
990 ; CORTEX-M7-SINGLE:  .eabi_attribute 27, 1
991 ; CORTEX-M7-DOUBLE-NOT: .eabi_attribute 27
992 ; CORTEX-M7:  .eabi_attribute 36, 1
993 ; CORTEX-M7:  .eabi_attribute 38, 1
994 ; CORTEX-M7-NOT:  .eabi_attribute 44
995 ; CORTEX-M7:  .eabi_attribute 14, 0
996
997 ; CORTEX-M7-NOFPU-FAST-NOT:   .eabi_attribute 19
998 ;; The M7 has the ARMv8 FP unit, which always flushes preserving sign.
999 ; CORTEX-M7-FAST:  .eabi_attribute 20, 2
1000 ;; Despite there being no FPU, we chose to flush to zero preserving
1001 ;; sign. This matches what the hardware would do for this architecture
1002 ;; revision.
1003 ; CORTEX-M7-NOFPU-FAST: .eabi_attribute 20, 2
1004 ; CORTEX-M7-NOFPU-FAST-NOT:  .eabi_attribute 21
1005 ; CORTEX-M7-NOFPU-FAST-NOT:  .eabi_attribute 22
1006 ; CORTEX-M7-NOFPU-FAST:  .eabi_attribute 23, 1
1007
1008 ; CORTEX-R5:  .cpu cortex-r5
1009 ; CORTEX-R5:  .eabi_attribute 6, 10
1010 ; CORTEX-R5:  .eabi_attribute 7, 82
1011 ; CORTEX-R5:  .eabi_attribute 8, 1
1012 ; CORTEX-R5:  .eabi_attribute 9, 2
1013 ; CORTEX-R5:  .fpu vfpv3-d16
1014 ; CORTEX-R5-NOT:   .eabi_attribute 19
1015 ;; We default to IEEE 754 compliance
1016 ; CORTEX-R5:  .eabi_attribute 20, 1
1017 ; CORTEX-R5:  .eabi_attribute 21, 1
1018 ; CORTEX-R5-NOT:  .eabi_attribute 22
1019 ; CORTEX-R5:  .eabi_attribute 23, 3
1020 ; CORTEX-R5:  .eabi_attribute 24, 1
1021 ; CORTEX-R5:  .eabi_attribute 25, 1
1022 ; CORTEX-R5:  .eabi_attribute 27, 1
1023 ; CORTEX-R5-NOT:  .eabi_attribute 28
1024 ; CORTEX-R5-NOT:  .eabi_attribute 36
1025 ; CORTEX-R5:  .eabi_attribute 38, 1
1026 ; CORTEX-R5-NOT:  .eabi_attribute 42
1027 ; CORTEX-R5:  .eabi_attribute 44, 2
1028 ; CORTEX-R5-NOT:  .eabi_attribute 68
1029
1030 ; CORTEX-R5-FAST-NOT:   .eabi_attribute 19
1031 ;; The R5 has the VFPv3 FP unit, which always flushes preserving sign.
1032 ; CORTEX-R5-FAST:  .eabi_attribute 20, 2
1033 ; CORTEX-R5-FAST-NOT:  .eabi_attribute 21
1034 ; CORTEX-R5-FAST-NOT:  .eabi_attribute 22
1035 ; CORTEX-R5-FAST:  .eabi_attribute 23, 1
1036
1037 ; CORTEX-R7:  .cpu cortex-r7
1038 ; CORTEX-R7:  .eabi_attribute 6, 10
1039 ; CORTEX-R7:  .eabi_attribute 7, 82
1040 ; CORTEX-R7:  .eabi_attribute 8, 1
1041 ; CORTEX-R7:  .eabi_attribute 9, 2
1042 ; CORTEX-R7:  .fpu vfpv3-d16
1043 ; CORTEX-R7-NOT:   .eabi_attribute 19
1044 ;; We default to IEEE 754 compliance
1045 ; CORTEX-R7:  .eabi_attribute 20, 1
1046 ; CORTEX-R7:  .eabi_attribute 21, 1
1047 ; CORTEX-R7-NOT:  .eabi_attribute 22
1048 ; CORTEX-R7:  .eabi_attribute 23, 3
1049 ; CORTEX-R7:  .eabi_attribute 24, 1
1050 ; CORTEX-R7:  .eabi_attribute 25, 1
1051 ; CORTEX-R7:  .eabi_attribute 27, 1
1052 ; CORTEX-R7-NOT:  .eabi_attribute 28
1053 ; CORTEX-R7-NOT:  .eabi_attribute 36
1054 ; CORTEX-R7:  .eabi_attribute 38, 1
1055 ; CORTEX-R7:  .eabi_attribute 42, 1
1056 ; CORTEX-R7:  .eabi_attribute 44, 2
1057 ; CORTEX-R7-NOT:  .eabi_attribute 68
1058
1059 ; CORTEX-R7-FAST-NOT:   .eabi_attribute 19
1060 ;; The R7 has the VFPv3 FP unit, which always flushes preserving sign.
1061 ; CORTEX-R7-FAST:  .eabi_attribute 20, 2
1062 ; CORTEX-R7-FAST-NOT:  .eabi_attribute 21
1063 ; CORTEX-R7-FAST-NOT:  .eabi_attribute 22
1064 ; CORTEX-R7-FAST:  .eabi_attribute 23, 1
1065
1066 ; CORTEX-A53:  .cpu cortex-a53
1067 ; CORTEX-A53:  .eabi_attribute 6, 14
1068 ; CORTEX-A53:  .eabi_attribute 7, 65
1069 ; CORTEX-A53:  .eabi_attribute 8, 1
1070 ; CORTEX-A53:  .eabi_attribute 9, 2
1071 ; CORTEX-A53:  .fpu crypto-neon-fp-armv8
1072 ; CORTEX-A53:  .eabi_attribute 12, 3
1073 ; CORTEX-A53-NOT:   .eabi_attribute 19
1074 ;; We default to IEEE 754 compliance
1075 ; CORTEX-A53:  .eabi_attribute 20, 1
1076 ; CORTEX-A53:  .eabi_attribute 21, 1
1077 ; CORTEX-A53-NOT:  .eabi_attribute 22
1078 ; CORTEX-A53:  .eabi_attribute 23, 3
1079 ; CORTEX-A53:  .eabi_attribute 24, 1
1080 ; CORTEX-A53:  .eabi_attribute 25, 1
1081 ; CORTEX-A53-NOT:  .eabi_attribute 27
1082 ; CORTEX-A53-NOT:  .eabi_attribute 28
1083 ; CORTEX-A53:  .eabi_attribute 36, 1
1084 ; CORTEX-A53:  .eabi_attribute 38, 1
1085 ; CORTEX-A53:  .eabi_attribute 42, 1
1086 ; CORTEX-A53-NOT:  .eabi_attribute 44
1087 ; CORTEX-A53:  .eabi_attribute 68, 3
1088
1089 ; CORTEX-A53-FAST-NOT:   .eabi_attribute 19
1090 ;; The A53 has the ARMv8 FP unit, which always flushes preserving sign.
1091 ; CORTEX-A53-FAST:  .eabi_attribute 20, 2
1092 ; CORTEX-A53-FAST-NOT:  .eabi_attribute 21
1093 ; CORTEX-A53-FAST-NOT:  .eabi_attribute 22
1094 ; CORTEX-A53-FAST:  .eabi_attribute 23, 1
1095
1096 ; CORTEX-A57:  .cpu cortex-a57
1097 ; CORTEX-A57:  .eabi_attribute 6, 14
1098 ; CORTEX-A57:  .eabi_attribute 7, 65
1099 ; CORTEX-A57:  .eabi_attribute 8, 1
1100 ; CORTEX-A57:  .eabi_attribute 9, 2
1101 ; CORTEX-A57:  .fpu crypto-neon-fp-armv8
1102 ; CORTEX-A57:  .eabi_attribute 12, 3
1103 ; CORTEX-A57-NOT:   .eabi_attribute 19
1104 ;; We default to IEEE 754 compliance
1105 ; CORTEX-A57:  .eabi_attribute 20, 1
1106 ; CORTEX-A57:  .eabi_attribute 21, 1
1107 ; CORTEX-A57-NOT:  .eabi_attribute 22
1108 ; CORTEX-A57:  .eabi_attribute 23, 3
1109 ; CORTEX-A57:  .eabi_attribute 24, 1
1110 ; CORTEX-A57:  .eabi_attribute 25, 1
1111 ; CORTEX-A57-NOT:  .eabi_attribute 27
1112 ; CORTEX-A57-NOT:  .eabi_attribute 28
1113 ; CORTEX-A57:  .eabi_attribute 36, 1
1114 ; CORTEX-A57:  .eabi_attribute 38, 1
1115 ; CORTEX-A57:  .eabi_attribute 42, 1
1116 ; CORTEX-A57-NOT:  .eabi_attribute 44
1117 ; CORTEX-A57:  .eabi_attribute 68, 3
1118
1119 ; CORTEX-A57-FAST-NOT:   .eabi_attribute 19
1120 ;; The A57 has the ARMv8 FP unit, which always flushes preserving sign.
1121 ; CORTEX-A57-FAST:  .eabi_attribute 20, 2
1122 ; CORTEX-A57-FAST-NOT:  .eabi_attribute 21
1123 ; CORTEX-A57-FAST-NOT:  .eabi_attribute 22
1124 ; CORTEX-A57-FAST:  .eabi_attribute 23, 1
1125
1126 ; CORTEX-A72:  .cpu cortex-a72
1127 ; CORTEX-A72:  .eabi_attribute 6, 14
1128 ; CORTEX-A72:  .eabi_attribute 7, 65
1129 ; CORTEX-A72:  .eabi_attribute 8, 1
1130 ; CORTEX-A72:  .eabi_attribute 9, 2
1131 ; CORTEX-A72:  .fpu crypto-neon-fp-armv8
1132 ; CORTEX-A72:  .eabi_attribute 12, 3
1133 ; CORTEX-A72-NOT:   .eabi_attribute 19
1134 ;; We default to IEEE 754 compliance
1135 ; CORTEX-A72:  .eabi_attribute 20, 1
1136 ; CORTEX-A72:  .eabi_attribute 21, 1
1137 ; CORTEX-A72-NOT:  .eabi_attribute 22
1138 ; CORTEX-A72:  .eabi_attribute 23, 3
1139 ; CORTEX-A72:  .eabi_attribute 24, 1
1140 ; CORTEX-A72:  .eabi_attribute 25, 1
1141 ; CORTEX-A72-NOT:  .eabi_attribute 27
1142 ; CORTEX-A72-NOT:  .eabi_attribute 28
1143 ; CORTEX-A72:  .eabi_attribute 36, 1
1144 ; CORTEX-A72:  .eabi_attribute 38, 1
1145 ; CORTEX-A72:  .eabi_attribute 42, 1
1146 ; CORTEX-A72-NOT:  .eabi_attribute 44
1147 ; CORTEX-A72:  .eabi_attribute 68, 3
1148
1149 ; CORTEX-A72-FAST-NOT:   .eabi_attribute 19
1150 ;; The A72 has the ARMv8 FP unit, which always flushes preserving sign.
1151 ; CORTEX-A72-FAST:  .eabi_attribute 20, 2
1152 ; CORTEX-A72-FAST-NOT:  .eabi_attribute 21
1153 ; CORTEX-A72-FAST-NOT:  .eabi_attribute 22
1154 ; CORTEX-A72-FAST:  .eabi_attribute 23, 1
1155
1156 ; RELOC-PIC:  .eabi_attribute 15, 1
1157 ; RELOC-PIC:  .eabi_attribute 16, 1
1158 ; RELOC-PIC:  .eabi_attribute 17, 2
1159 ; RELOC-OTHER:  .eabi_attribute 17, 1
1160
1161 ; PCS-R9-USE:  .eabi_attribute 14, 0
1162 ; PCS-R9-RESERVE:  .eabi_attribute 14, 3
1163
1164 define i32 @f(i64 %z) {
1165     ret i32 0
1166 }