Add missing FP build attribute tests.
[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=armv6-linux-gnueabi -mcpu=arm1156t2f-s | FileCheck %s --check-prefix=ARM1156T2F-S
11 ; 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
12 ; RUN: llc < %s -mtriple=armv6-linux-gnueabi -mcpu=arm1156t2f-s -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
13 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi | FileCheck %s --check-prefix=V7M
14 ; 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
15 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
16 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi | FileCheck %s --check-prefix=V7
17 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
18 ; 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
19 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi | FileCheck %s --check-prefix=V8
20 ; 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
21 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
22 ; RUN: llc < %s -mtriple=thumbv8-linux-gnueabi | FileCheck %s --check-prefix=Vt8
23 ; RUN: llc < %s -mtriple=thumbv8-linux-gnueabi -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
24 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mattr=-neon,-crypto | FileCheck %s --check-prefix=V8-FPARMv8
25 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mattr=-fp-armv8,-crypto | FileCheck %s --check-prefix=V8-NEON
26 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mattr=-crypto | FileCheck %s --check-prefix=V8-FPARMv8-NEON
27 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi | FileCheck %s --check-prefix=V8-FPARMv8-NEON-CRYPTO
28 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a5 | FileCheck %s --check-prefix=CORTEX-A5-DEFAULT
29 ; 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
30 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a5 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
31 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a5 -mattr=-neon,+d16 | FileCheck %s --check-prefix=CORTEX-A5-NONEON
32 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a5 -mattr=-vfp2 | FileCheck %s --check-prefix=CORTEX-A5-NOFPU
33 ; 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
34 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a9 -float-abi=soft | FileCheck %s --check-prefix=CORTEX-A9-SOFT
35 ; 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
36 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a9 -float-abi=hard | FileCheck %s --check-prefix=CORTEX-A9-HARD
37 ; 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
38 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a9 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
39 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a12 | FileCheck %s --check-prefix=CORTEX-A12-DEFAULT
40 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a9 -float-abi=soft | FileCheck %s --check-prefix=CORTEX-A9-SOFT
41 ; 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
42 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a12 -mattr=-vfp2 | FileCheck %s --check-prefix=CORTEX-A12-NOFPU
43 ; 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
44 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a12 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
45 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a15 | FileCheck %s --check-prefix=CORTEX-A15
46 ; 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
47 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a15 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
48 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a17 | FileCheck %s --check-prefix=CORTEX-A17-DEFAULT
49 ; 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
50 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a17 -mattr=-vfp2 | FileCheck %s --check-prefix=CORTEX-A17-NOFPU
51 ; 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
52 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a17 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
53 ; RUN: llc < %s -mtriple=thumbv6m-linux-gnueabi -mcpu=cortex-m0 | FileCheck %s --check-prefix=CORTEX-M0
54 ; 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
55 ; RUN: llc < %s -mtriple=thumbv6m-linux-gnueabi -mcpu=cortex-m0 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
56 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -mcpu=cortex-m3 | FileCheck %s --check-prefix=CORTEX-M3
57 ; 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
58 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -mcpu=cortex-m3 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
59 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -mcpu=cortex-m4 -float-abi=soft | FileCheck %s --check-prefix=CORTEX-M4-SOFT
60 ; 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
61 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -mcpu=cortex-m4 -float-abi=hard | FileCheck %s --check-prefix=CORTEX-M4-HARD
62 ; 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
63 ; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -mcpu=cortex-m4 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
64 ; RUN: llc < %s -mtriple=thumbv7em-linux-gnueabi -mcpu=cortex-m7 -mattr=-vfp2 | FileCheck %s --check-prefix=CORTEX-M7 --check-prefix=CORTEX-M7-SOFT
65 ; 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
66 ; 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
67 ; 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
68 ; RUN: llc < %s -mtriple=thumbv7em-linux-gnueabi -mcpu=cortex-m7 | FileCheck %s --check-prefix=CORTEX-M7-DOUBLE
69 ; RUN: llc < %s -mtriple=thumbv7em-linux-gnueabi -mcpu=cortex-m7 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
70 ; RUN: llc < %s -mtriple=armv7r-linux-gnueabi -mcpu=cortex-r5 | FileCheck %s --check-prefix=CORTEX-R5
71 ; 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
72 ; RUN: llc < %s -mtriple=armv7r-linux-gnueabi -mcpu=cortex-r5 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
73 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mcpu=cortex-a53 | FileCheck %s --check-prefix=CORTEX-A53
74 ; 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
75 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mcpu=cortex-a53 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
76 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mcpu=cortex-a57 | FileCheck %s --check-prefix=CORTEX-A57
77 ; 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
78 ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mcpu=cortex-a57 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
79 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7 | FileCheck %s  --check-prefix=CORTEX-A7-CHECK
80 ; 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
81 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7 -mattr=-vfp2,-vfp3,-vfp4,-neon | FileCheck %s --check-prefix=CORTEX-A7-NOFPU
82 ; 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
83 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7 -mattr=+vfp4,-neon | FileCheck %s --check-prefix=CORTEX-A7-FPUV4
84 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
85 ; 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
86 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7 -mattr=+vfp4,,+d16,-neon | FileCheck %s --check-prefix=CORTEX-A7-FPUV4
87 ; RUN: llc < %s -mtriple=arm-none-linux-gnueabi -relocation-model=pic | FileCheck %s --check-prefix=RELOC-PIC
88 ; RUN: llc < %s -mtriple=arm-none-linux-gnueabi -relocation-model=static | FileCheck %s --check-prefix=RELOC-OTHER
89 ; RUN: llc < %s -mtriple=arm-none-linux-gnueabi -relocation-model=default | FileCheck %s --check-prefix=RELOC-OTHER
90 ; RUN: llc < %s -mtriple=arm-none-linux-gnueabi -relocation-model=dynamic-no-pic | FileCheck %s --check-prefix=RELOC-OTHER
91 ; RUN: llc < %s -mtriple=arm-none-linux-gnueabi | FileCheck %s --check-prefix=RELOC-OTHER
92 ; RUN: llc < %s -mtriple=arm-none-linux-gnueabi | FileCheck %s --check-prefix=PCS-R9-USE
93 ; RUN: llc < %s -mtriple=arm-none-linux-gnueabi -arm-reserve-r9 | FileCheck %s --check-prefix=PCS-R9-RESERVE
94
95 ; ARMv8a (AArch32)
96 ; RUN: llc < %s -mtriple=armv8-none-linux-gnueabi -mcpu=cortex-a57 -arm-no-strict-align | FileCheck %s --check-prefix=NO-STRICT-ALIGN
97 ; RUN: llc < %s -mtriple=armv8-none-linux-gnueabi -mcpu=cortex-a57 -arm-strict-align | FileCheck %s --check-prefix=STRICT-ALIGN
98 ; RUN: llc < %s -mtriple=armv8-none-linux-gnueabi -mcpu=cortex-a57 | FileCheck %s --check-prefix=NO-STRICT-ALIGN
99 ; ARMv7a
100 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7 -arm-no-strict-align | FileCheck %s --check-prefix=NO-STRICT-ALIGN
101 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7 -arm-strict-align | FileCheck %s --check-prefix=STRICT-ALIGN
102 ; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mcpu=cortex-a7 | FileCheck %s --check-prefix=NO-STRICT-ALIGN
103 ; ARMv7r
104 ; RUN: llc < %s -mtriple=armv7r-none-linux-gnueabi -mcpu=cortex-r5 -arm-no-strict-align | FileCheck %s --check-prefix=NO-STRICT-ALIGN
105 ; RUN: llc < %s -mtriple=armv7r-none-linux-gnueabi -mcpu=cortex-r5 -arm-strict-align | FileCheck %s --check-prefix=STRICT-ALIGN
106 ; RUN: llc < %s -mtriple=armv7r-none-linux-gnueabi -mcpu=cortex-r5 | FileCheck %s --check-prefix=NO-STRICT-ALIGN
107 ; ARMv7m
108 ; RUN: llc < %s -mtriple=thumbv7m-none-linux-gnueabi -mcpu=cortex-m3 -arm-no-strict-align | FileCheck %s --check-prefix=NO-STRICT-ALIGN
109 ; RUN: llc < %s -mtriple=thumbv7m-none-linux-gnueabi -mcpu=cortex-m3 -arm-strict-align | FileCheck %s --check-prefix=STRICT-ALIGN
110 ; RUN: llc < %s -mtriple=thumbv7m-none-linux-gnueabi -mcpu=cortex-m3 | FileCheck %s --check-prefix=NO-STRICT-ALIGN
111 ; ARMv6
112 ; RUN: llc < %s -mtriple=armv6-none-netbsd-gnueabi -mcpu=arm1136j-s | FileCheck %s --check-prefix=NO-STRICT-ALIGN
113 ; RUN: llc < %s -mtriple=armv6-none-linux-gnueabi -mcpu=arm1136j-s | FileCheck %s --check-prefix=STRICT-ALIGN
114 ; RUN: llc < %s -mtriple=armv6-none-linux-gnueabi -mcpu=arm1136j-s -arm-no-strict-align | FileCheck %s --check-prefix=NO-STRICT-ALIGN
115 ; RUN: llc < %s -mtriple=armv6-none-linux-gnueabi -mcpu=arm1136j-s -arm-strict-align | FileCheck %s --check-prefix=STRICT-ALIGN
116 ; ARMv6m
117 ; RUN: llc < %s -mtriple=thumb-none-linux-gnueabi -arm-no-strict-align -mcpu=cortex-m0 | FileCheck %s --check-prefix=STRICT-ALIGN
118 ; RUN: llc < %s -mtriple=thumb-none-linux-gnueabi -arm-strict-align -mcpu=cortex-m0 | FileCheck %s --check-prefix=STRICT-ALIGN
119 ; RUN: llc < %s -mtriple=thumbv6m-none-linux-gnueabi -arm-no-strict-align | FileCheck %s --check-prefix=STRICT-ALIGN
120 ; RUN: llc < %s -mtriple=thumbv6m-none-linux-gnueabi -arm-strict-align | FileCheck %s --check-prefix=STRICT-ALIGN
121 ; RUN: llc < %s -mtriple=thumb-none-linux-gnueabi -mcpu=cortex-m0 | FileCheck %s --check-prefix=STRICT-ALIGN
122 ; RUN: llc < %s -mtriple=thumb-none-linux-gnueabi -mcpu=cortex-m0 | FileCheck %s --check-prefix=STRICT-ALIGN
123 ; ARMv5
124 ; RUN: llc < %s -mtriple=armv5-none-linux-gnueabi -mcpu=arm1022e -arm-no-strict-align | FileCheck %s --check-prefix=NO-STRICT-ALIGN
125 ; RUN: llc < %s -mtriple=armv5-none-linux-gnueabi -mcpu=arm1022e -arm-strict-align | FileCheck %s --check-prefix=STRICT-ALIGN
126 ; RUN: llc < %s -mtriple=armv5-none-linux-gnueabi -mcpu=arm1022e | FileCheck %s --check-prefix=STRICT-ALIGN
127
128 ; XSCALE:      .eabi_attribute 6, 5
129 ; XSCALE:      .eabi_attribute 8, 1
130 ; XSCALE:      .eabi_attribute 9, 1
131
132 ; DYN-ROUNDING: .eabi_attribute 19, 1
133
134 ; V6:   .eabi_attribute 6, 6
135 ; V6:   .eabi_attribute 8, 1
136 ;; We assume round-to-nearest by default (matches GCC)
137 ; V6-NOT:   .eabi_attribute 19
138 ;; The default choice made by llc is for a V6 CPU without an FPU.
139 ;; This is not an interesting detail, but for such CPUs, the default intention is to use
140 ;; software floating-point support. The choice is not important for targets without
141 ;; FPU support!
142 ; V6:   .eabi_attribute 20, 1
143 ; V6:   .eabi_attribute 21, 1
144 ; V6-NOT:   .eabi_attribute 22
145 ; V6:   .eabi_attribute 23, 3
146 ; V6:   .eabi_attribute 24, 1
147 ; V6:   .eabi_attribute 25, 1
148 ; V6-NOT:   .eabi_attribute 27
149 ; V6-NOT:   .eabi_attribute 28
150 ; V6-NOT:    .eabi_attribute 36
151 ; V6-NOT:    .eabi_attribute 42
152 ; V6-NOT:    .eabi_attribute 68
153
154 ; V6-FAST-NOT:   .eabi_attribute 19
155 ;; Despite the V6 CPU having no FPU by default, we chose to flush to
156 ;; positive zero here. There's no hardware support doing this, but the
157 ;; fast maths software library might.
158 ; V6-FAST-NOT:   .eabi_attribute 20
159 ; V6-FAST-NOT:   .eabi_attribute 21
160 ; V6-FAST-NOT:   .eabi_attribute 22
161 ; V6-FAST:   .eabi_attribute 23, 1
162
163 ; V6M:  .eabi_attribute 6, 12
164 ; V6M-NOT:  .eabi_attribute 7
165 ; V6M:  .eabi_attribute 8, 0
166 ; V6M:  .eabi_attribute 9, 1
167 ; V6M-NOT:   .eabi_attribute 19
168 ;; The default choice made by llc is for a V6M CPU without an FPU.
169 ;; This is not an interesting detail, but for such CPUs, the default intention is to use
170 ;; software floating-point support. The choice is not important for targets without
171 ;; FPU support!
172 ; V6M:  .eabi_attribute 20, 1
173 ; V6M:   .eabi_attribute 21, 1
174 ; V6M-NOT:   .eabi_attribute 22
175 ; V6M:   .eabi_attribute 23, 3
176 ; V6M:  .eabi_attribute 24, 1
177 ; V6M:  .eabi_attribute 25, 1
178 ; V6M-NOT:  .eabi_attribute 27
179 ; V6M-NOT:  .eabi_attribute 28
180 ; V6M-NOT:  .eabi_attribute 36
181 ; V6M-NOT:  .eabi_attribute 42
182 ; V6M-NOT:  .eabi_attribute 68
183
184 ; V6M-FAST-NOT:   .eabi_attribute 19
185 ;; Despite the V6M 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 ; V6M-FAST-NOT:  .eabi_attribute 20
189 ; V6M-FAST-NOT:   .eabi_attribute 21
190 ; V6M-FAST-NOT:   .eabi_attribute 22
191 ; V6M-FAST:   .eabi_attribute 23, 1
192
193 ; ARM1156T2F-S: .cpu arm1156t2f-s
194 ; ARM1156T2F-S: .eabi_attribute 6, 8
195 ; ARM1156T2F-S: .eabi_attribute 8, 1
196 ; ARM1156T2F-S: .eabi_attribute 9, 2
197 ; ARM1156T2F-S: .fpu vfpv2
198 ; ARM1156T2F-S-NOT:   .eabi_attribute 19
199 ;; We default to IEEE 754 compliance
200 ; ARM1156T2F-S: .eabi_attribute 20, 1
201 ; ARM1156T2F-S: .eabi_attribute 21, 1
202 ; ARM1156T2F-S-NOT: .eabi_attribute 22
203 ; ARM1156T2F-S: .eabi_attribute 23, 3
204 ; ARM1156T2F-S: .eabi_attribute 24, 1
205 ; ARM1156T2F-S: .eabi_attribute 25, 1
206 ; ARM1156T2F-S-NOT: .eabi_attribute 27
207 ; ARM1156T2F-S-NOT: .eabi_attribute 28
208 ; ARM1156T2F-S-NOT: .eabi_attribute 36
209 ; ARM1156T2F-S-NOT:    .eabi_attribute 42
210 ; ARM1156T2F-S-NOT:    .eabi_attribute 68
211
212 ; ARM1156T2F-S-FAST-NOT:   .eabi_attribute 19
213 ;; V6 cores default to flush to positive zero (value 0). Note that value 2 is also equally
214 ;; valid for this core, it's an implementation defined question as to which of 0 and 2 you
215 ;; select. LLVM historically picks 0.
216 ; ARM1156T2F-S-FAST-NOT: .eabi_attribute 20
217 ; ARM1156T2F-S-FAST-NOT:   .eabi_attribute 21
218 ; ARM1156T2F-S-FAST-NOT:   .eabi_attribute 22
219 ; ARM1156T2F-S-FAST:   .eabi_attribute 23, 1
220
221 ; V7M:  .eabi_attribute 6, 10
222 ; V7M:  .eabi_attribute 7, 77
223 ; V7M:  .eabi_attribute 8, 0
224 ; V7M:  .eabi_attribute 9, 2
225 ; V7M-NOT:   .eabi_attribute 19
226 ;; The default choice made by llc is for a V7M CPU without an FPU.
227 ;; This is not an interesting detail, but for such CPUs, the default intention is to use
228 ;; software floating-point support. The choice is not important for targets without
229 ;; FPU support!
230 ; V7M:  .eabi_attribute 20, 1
231 ; V7M: .eabi_attribute 21, 1
232 ; V7M-NOT: .eabi_attribute 22
233 ; V7M: .eabi_attribute 23, 3
234 ; V7M:  .eabi_attribute 24, 1
235 ; V7M:  .eabi_attribute 25, 1
236 ; V7M-NOT:  .eabi_attribute 27
237 ; V7M-NOT:  .eabi_attribute 28
238 ; V7M-NOT:  .eabi_attribute 36
239 ; V7M-NOT:  .eabi_attribute 42
240 ; V7M-NOT:  .eabi_attribute 44
241 ; V7M-NOT:  .eabi_attribute 68
242
243 ; V7M-FAST-NOT:   .eabi_attribute 19
244 ;; Despite the V7M CPU having no FPU by default, we chose to flush
245 ;; preserving sign. This matches what the hardware would do in the
246 ;; architecture revision were to exist on the current target.
247 ; V7M-FAST:  .eabi_attribute 20, 2
248 ; V7M-FAST-NOT:   .eabi_attribute 21
249 ; V7M-FAST-NOT:   .eabi_attribute 22
250 ; V7M-FAST:   .eabi_attribute 23, 1
251
252 ; V7:      .syntax unified
253 ; V7: .eabi_attribute 6, 10
254 ; V7-NOT:   .eabi_attribute 19
255 ;; In safe-maths mode we default to an IEEE 754 compliant choice.
256 ; V7: .eabi_attribute 20, 1
257 ; V7: .eabi_attribute 21, 1
258 ; V7-NOT: .eabi_attribute 22
259 ; V7: .eabi_attribute 23, 3
260 ; V7: .eabi_attribute 24, 1
261 ; V7: .eabi_attribute 25, 1
262 ; V7-NOT: .eabi_attribute 27
263 ; V7-NOT: .eabi_attribute 28
264 ; V7-NOT: .eabi_attribute 36
265 ; V7-NOT:    .eabi_attribute 42
266 ; V7-NOT:    .eabi_attribute 68
267
268 ; V7-FAST-NOT:   .eabi_attribute 19
269 ;; The default CPU does have an FPU and it must be VFPv3 or better, so it flushes
270 ;; denormals to zero preserving the sign.
271 ; V7-FAST: .eabi_attribute 20, 2
272 ; V7-FAST-NOT:   .eabi_attribute 21
273 ; V7-FAST-NOT:   .eabi_attribute 22
274 ; V7-FAST:   .eabi_attribute 23, 1
275
276 ; V8:      .syntax unified
277 ; V8: .eabi_attribute 6, 14
278 ; V8-NOT:   .eabi_attribute 19
279 ; V8: .eabi_attribute 20, 1
280 ; V8: .eabi_attribute 21, 1
281 ; V8-NOT: .eabi_attribute 22
282 ; V8: .eabi_attribute 23, 3
283
284 ; V8-FAST-NOT:   .eabi_attribute 19
285 ;; The default does have an FPU, and for V8-A, it flushes preserving sign.
286 ; V8-FAST: .eabi_attribute 20, 2
287 ; V8-FAST-NOT: .eabi_attribute 21
288 ; V8-FAST-NOT: .eabi_attribute 22
289 ; V8-FAST: .eabi_attribute 23, 1
290
291 ; Vt8:     .syntax unified
292 ; Vt8: .eabi_attribute 6, 14
293 ; Vt8-NOT:   .eabi_attribute 19
294 ; Vt8: .eabi_attribute 20, 1
295 ; Vt8: .eabi_attribute 21, 1
296 ; Vt8-NOT: .eabi_attribute 22
297 ; Vt8: .eabi_attribute 23, 3
298
299 ; V8-FPARMv8:      .syntax unified
300 ; V8-FPARMv8: .eabi_attribute 6, 14
301 ; V8-FPARMv8: .fpu fp-armv8
302
303 ; V8-NEON:      .syntax unified
304 ; V8-NEON: .eabi_attribute 6, 14
305 ; V8-NEON: .fpu neon
306 ; V8-NEON: .eabi_attribute 12, 3
307
308 ; V8-FPARMv8-NEON:      .syntax unified
309 ; V8-FPARMv8-NEON: .eabi_attribute 6, 14
310 ; V8-FPARMv8-NEON: .fpu neon-fp-armv8
311 ; V8-FPARMv8-NEON: .eabi_attribute 12, 3
312
313 ; V8-FPARMv8-NEON-CRYPTO:      .syntax unified
314 ; V8-FPARMv8-NEON-CRYPTO: .eabi_attribute 6, 14
315 ; V8-FPARMv8-NEON-CRYPTO: .fpu crypto-neon-fp-armv8
316 ; V8-FPARMv8-NEON-CRYPTO: .eabi_attribute 12, 3
317
318 ; Tag_CPU_unaligned_access
319 ; NO-STRICT-ALIGN: .eabi_attribute 34, 1
320 ; STRICT-ALIGN: .eabi_attribute 34, 0
321
322 ; Tag_CPU_arch  'ARMv7'
323 ; CORTEX-A7-CHECK: .eabi_attribute      6, 10
324 ; CORTEX-A7-NOFPU: .eabi_attribute      6, 10
325
326 ; CORTEX-A7-FPUV4: .eabi_attribute      6, 10
327
328 ; Tag_CPU_arch_profile 'A'
329 ; CORTEX-A7-CHECK: .eabi_attribute      7, 65
330 ; CORTEX-A7-NOFPU: .eabi_attribute      7, 65
331 ; CORTEX-A7-FPUV4: .eabi_attribute      7, 65
332
333 ; Tag_ARM_ISA_use
334 ; CORTEX-A7-CHECK: .eabi_attribute      8, 1
335 ; CORTEX-A7-NOFPU: .eabi_attribute      8, 1
336 ; CORTEX-A7-FPUV4: .eabi_attribute      8, 1
337
338 ; Tag_THUMB_ISA_use
339 ; CORTEX-A7-CHECK: .eabi_attribute      9, 2
340 ; CORTEX-A7-NOFPU: .eabi_attribute      9, 2
341 ; CORTEX-A7-FPUV4: .eabi_attribute      9, 2
342
343 ; CORTEX-A7-CHECK: .fpu neon-vfpv4
344 ; CORTEX-A7-NOFPU-NOT: .fpu
345 ; CORTEX-A7-FPUV4: .fpu vfpv4
346
347 ; CORTEX-A7-CHECK-NOT:   .eabi_attribute 19
348 ; Tag_ABI_FP_denormal
349 ;; We default to IEEE 754 compliance
350 ; CORTEX-A7-CHECK: .eabi_attribute      20, 1
351 ;; The A7 has VFPv3 support by default, so flush preserving sign.
352 ; CORTEX-A7-CHECK-FAST: .eabi_attribute 20, 2
353 ; CORTEX-A7-NOFPU: .eabi_attribute      20, 1
354 ;; Despite there being no FPU, we chose to flush to zero preserving
355 ;; sign. This matches what the hardware would do for this architecture
356 ;; revision.
357 ; CORTEX-A7-NOFPU-FAST: .eabi_attribute 20, 2
358 ; CORTEX-A7-FPUV4: .eabi_attribute      20, 1
359 ;; The VFPv4 FPU flushes preserving sign.
360 ; CORTEX-A7-FPUV4-FAST: .eabi_attribute 20, 2
361
362 ; Tag_ABI_FP_exceptions
363 ; CORTEX-A7-CHECK: .eabi_attribute      21, 1
364 ; CORTEX-A7-NOFPU: .eabi_attribute      21, 1
365 ; CORTEX-A7-FPUV4: .eabi_attribute      21, 1
366
367 ; Tag_ABI_FP_user_exceptions
368 ; CORTEX-A7-CHECK-NOT: .eabi_attribute      22
369 ; CORTEX-A7-NOFPU-NOT: .eabi_attribute      22
370 ; CORTEX-A7-FPUV4-NOT: .eabi_attribute      22
371
372 ; Tag_ABI_FP_number_model
373 ; CORTEX-A7-CHECK: .eabi_attribute      23, 3
374 ; CORTEX-A7-NOFPU: .eabi_attribute      23, 3
375 ; CORTEX-A7-FPUV4: .eabi_attribute      23, 3
376
377 ; Tag_ABI_align_needed
378 ; CORTEX-A7-CHECK: .eabi_attribute      24, 1
379 ; CORTEX-A7-NOFPU: .eabi_attribute      24, 1
380 ; CORTEX-A7-FPUV4: .eabi_attribute      24, 1
381
382 ; Tag_ABI_align_preserved
383 ; CORTEX-A7-CHECK: .eabi_attribute      25, 1
384 ; CORTEX-A7-NOFPU: .eabi_attribute      25, 1
385 ; CORTEX-A7-FPUV4: .eabi_attribute      25, 1
386
387 ; Tag_FP_HP_extension
388 ; CORTEX-A7-CHECK: .eabi_attribute      36, 1
389 ; CORTEX-A7-NOFPU: .eabi_attribute      36, 1
390 ; CORTEX-A7-FPUV4: .eabi_attribute      36, 1
391
392 ; Tag_MPextension_use
393 ; CORTEX-A7-CHECK: .eabi_attribute      42, 1
394 ; CORTEX-A7-NOFPU: .eabi_attribute      42, 1
395 ; CORTEX-A7-FPUV4: .eabi_attribute      42, 1
396
397 ; Tag_DIV_use
398 ; CORTEX-A7-CHECK: .eabi_attribute      44, 2
399 ; CORTEX-A7-NOFPU: .eabi_attribute      44, 2
400 ; CORTEX-A7-FPUV4: .eabi_attribute      44, 2
401
402 ; Tag_Virtualization_use
403 ; CORTEX-A7-CHECK: .eabi_attribute      68, 3
404 ; CORTEX-A7-NOFPU: .eabi_attribute      68, 3
405 ; CORTEX-A7-FPUV4: .eabi_attribute      68, 3
406
407 ; CORTEX-A5-DEFAULT:        .cpu    cortex-a5
408 ; CORTEX-A5-DEFAULT:        .eabi_attribute 6, 10
409 ; CORTEX-A5-DEFAULT:        .eabi_attribute 7, 65
410 ; CORTEX-A5-DEFAULT:        .eabi_attribute 8, 1
411 ; CORTEX-A5-DEFAULT:        .eabi_attribute 9, 2
412 ; CORTEX-A5-DEFAULT:        .fpu    neon-vfpv4
413 ; CORTEX-A5-NOT:   .eabi_attribute 19
414 ;; We default to IEEE 754 compliance
415 ; CORTEX-A5-DEFAULT:        .eabi_attribute 20, 1
416 ; CORTEX-A5-DEFAULT:        .eabi_attribute 21, 1
417 ; CORTEX-A5-DEFAULT-NOT:        .eabi_attribute 22
418 ; CORTEX-A5-DEFAULT:        .eabi_attribute 23, 3
419 ; CORTEX-A5-DEFAULT:        .eabi_attribute 24, 1
420 ; CORTEX-A5-DEFAULT:        .eabi_attribute 25, 1
421 ; CORTEX-A5-DEFAULT:        .eabi_attribute 42, 1
422 ; CORTEX-A5-DEFAULT:        .eabi_attribute 68, 1
423
424 ; CORTEX-A5-DEFAULT-FAST-NOT:   .eabi_attribute 19
425 ;; The A5 defaults to a VFPv4 FPU, so it flushed preserving sign when -ffast-math
426 ;; is given.
427 ; CORTEX-A5-DEFAULT-FAST:        .eabi_attribute 20, 2
428 ; CORTEX-A5-DEFAULT-FAST-NOT: .eabi_attribute 21
429 ; CORTEX-A5-DEFAULT-FAST-NOT: .eabi_attribute 22
430 ; CORTEX-A5-DEFAULT-FAST: .eabi_attribute 23, 1
431
432 ; CORTEX-A5-NONEON:        .cpu    cortex-a5
433 ; CORTEX-A5-NONEON:        .eabi_attribute 6, 10
434 ; CORTEX-A5-NONEON:        .eabi_attribute 7, 65
435 ; CORTEX-A5-NONEON:        .eabi_attribute 8, 1
436 ; CORTEX-A5-NONEON:        .eabi_attribute 9, 2
437 ; CORTEX-A5-NONEON:        .fpu    vfpv4-d16
438 ;; We default to IEEE 754 compliance
439 ; CORTEX-A5-NONEON:        .eabi_attribute 20, 1
440 ; CORTEX-A5-NONEON:        .eabi_attribute 21, 1
441 ; CORTEX-A5-NONEON-NOT:    .eabi_attribute 22
442 ; CORTEX-A5-NONEON:        .eabi_attribute 23, 3
443 ; CORTEX-A5-NONEON:        .eabi_attribute 24, 1
444 ; CORTEX-A5-NONEON:        .eabi_attribute 25, 1
445 ; CORTEX-A5-NONEON:        .eabi_attribute 42, 1
446 ; CORTEX-A5-NONEON:        .eabi_attribute 68, 1
447
448 ; CORTEX-A5-NONEON-FAST-NOT:   .eabi_attribute 19
449 ;; The A5 defaults to a VFPv4 FPU, so it flushed preserving sign when -ffast-math
450 ;; is given.
451 ; CORTEX-A5-NONEON-FAST:        .eabi_attribute 20, 2
452 ; CORTEX-A5-NONEON-FAST-NOT: .eabi_attribute 21
453 ; CORTEX-A5-NONEON-FAST-NOT: .eabi_attribute 22
454 ; CORTEX-A5-NONEON-FAST: .eabi_attribute 23, 1
455
456 ; CORTEX-A5-NOFPU:        .cpu    cortex-a5
457 ; CORTEX-A5-NOFPU:        .eabi_attribute 6, 10
458 ; CORTEX-A5-NOFPU:        .eabi_attribute 7, 65
459 ; CORTEX-A5-NOFPU:        .eabi_attribute 8, 1
460 ; CORTEX-A5-NOFPU:        .eabi_attribute 9, 2
461 ; CORTEX-A5-NOFPU-NOT:    .fpu
462 ; CORTEX-A5-NOFPU-NOT:   .eabi_attribute 19
463 ;; We default to IEEE 754 compliance
464 ; CORTEX-A5-NOFPU:        .eabi_attribute 20, 1
465 ; CORTEX-A5-NOFPU:        .eabi_attribute 21, 1
466 ; CORTEX-A5-NOFPU-NOT:    .eabi_attribute 22
467 ; CORTEX-A5-NOFPU:        .eabi_attribute 23, 3
468 ; CORTEX-A5-NOFPU:        .eabi_attribute 24, 1
469 ; CORTEX-A5-NOFPU:        .eabi_attribute 25, 1
470 ; CORTEX-A5-NOFPU:        .eabi_attribute 42, 1
471 ; CORTEX-A5-NOFPU:        .eabi_attribute 68, 1
472
473 ; CORTEX-A5-NOFPU-FAST-NOT:   .eabi_attribute 19
474 ;; Despite there being no FPU, we chose to flush to zero preserving
475 ;; sign. This matches what the hardware would do for this architecture
476 ;; revision.
477 ; CORTEX-A5-NOFPU-FAST: .eabi_attribute 20, 2
478 ; CORTEX-A5-NOFPU-FAST-NOT: .eabi_attribute 21
479 ; CORTEX-A5-NOFPU-FAST-NOT: .eabi_attribute 22
480 ; CORTEX-A5-NOFPU-FAST: .eabi_attribute 23, 1
481
482 ; CORTEX-A9-SOFT:  .cpu cortex-a9
483 ; CORTEX-A9-SOFT:  .eabi_attribute 6, 10
484 ; CORTEX-A9-SOFT:  .eabi_attribute 7, 65
485 ; CORTEX-A9-SOFT:  .eabi_attribute 8, 1
486 ; CORTEX-A9-SOFT:  .eabi_attribute 9, 2
487 ; CORTEX-A9-SOFT:  .fpu neon
488 ; CORTEX-A9-SOFT-NOT:   .eabi_attribute 19
489 ;; We default to IEEE 754 compliance
490 ; CORTEX-A9-SOFT:  .eabi_attribute 20, 1
491 ; CORTEX-A9-SOFT:  .eabi_attribute 21, 1
492 ; CORTEX-A9-SOFT-NOT:  .eabi_attribute 22
493 ; CORTEX-A9-SOFT:  .eabi_attribute 23, 3
494 ; CORTEX-A9-SOFT:  .eabi_attribute 24, 1
495 ; CORTEX-A9-SOFT:  .eabi_attribute 25, 1
496 ; CORTEX-A9-SOFT-NOT:  .eabi_attribute 27
497 ; CORTEX-A9-SOFT-NOT:  .eabi_attribute 28
498 ; CORTEX-A9-SOFT:  .eabi_attribute 36, 1
499 ; CORTEX-A9-SOFT:  .eabi_attribute 42, 1
500 ; CORTEX-A9-SOFT:  .eabi_attribute 68, 1
501
502 ; CORTEX-A9-SOFT-FAST-NOT:   .eabi_attribute 19
503 ;; The A9 defaults to a VFPv3 FPU, so it flushes preseving sign when
504 ;; -ffast-math is specified.
505 ; CORTEX-A9-SOFT-FAST:  .eabi_attribute 20, 2
506 ; CORTEX-A5-SOFT-FAST-NOT: .eabi_attribute 21
507 ; CORTEX-A5-SOFT-FAST-NOT: .eabi_attribute 22
508 ; CORTEX-A5-SOFT-FAST: .eabi_attribute 23, 1
509
510 ; CORTEX-A9-HARD:  .cpu cortex-a9
511 ; CORTEX-A9-HARD:  .eabi_attribute 6, 10
512 ; CORTEX-A9-HARD:  .eabi_attribute 7, 65
513 ; CORTEX-A9-HARD:  .eabi_attribute 8, 1
514 ; CORTEX-A9-HARD:  .eabi_attribute 9, 2
515 ; CORTEX-A9-HARD:  .fpu neon
516 ; CORTEX-A9-HARD-NOT:   .eabi_attribute 19
517 ;; We default to IEEE 754 compliance
518 ; CORTEX-A9-HARD:  .eabi_attribute 20, 1
519 ; CORTEX-A9-HARD:  .eabi_attribute 21, 1
520 ; CORTEX-A9-HARD-NOT:  .eabi_attribute 22
521 ; CORTEX-A9-HARD:  .eabi_attribute 23, 3
522 ; CORTEX-A9-HARD:  .eabi_attribute 24, 1
523 ; CORTEX-A9-HARD:  .eabi_attribute 25, 1
524 ; CORTEX-A9-HARD-NOT:  .eabi_attribute 27
525 ; CORTEX-A9-HARD:  .eabi_attribute 28, 1
526 ; CORTEX-A9-HARD:  .eabi_attribute 36, 1
527 ; CORTEX-A9-HARD:  .eabi_attribute 42, 1
528 ; CORTEX-A9-HARD:  .eabi_attribute 68, 1
529
530 ; CORTEX-A9-HARD-FAST-NOT:   .eabi_attribute 19
531 ;; The A9 defaults to a VFPv3 FPU, so it flushes preseving sign when
532 ;; -ffast-math is specified.
533 ; CORTEX-A9-HARD-FAST:  .eabi_attribute 20, 2
534 ; CORTEX-A9-HARD-FAST-NOT:  .eabi_attribute 21
535 ; CORTEX-A9-HARD-FAST-NOT:  .eabi_attribute 22
536 ; CORTEX-A9-HARD-FAST:  .eabi_attribute 23, 1
537
538 ; CORTEX-A12-DEFAULT:  .cpu cortex-a12
539 ; CORTEX-A12-DEFAULT:  .eabi_attribute 6, 10
540 ; CORTEX-A12-DEFAULT:  .eabi_attribute 7, 65
541 ; CORTEX-A12-DEFAULT:  .eabi_attribute 8, 1
542 ; CORTEX-A12-DEFAULT:  .eabi_attribute 9, 2
543 ; CORTEX-A12-DEFAULT:  .fpu neon-vfpv4
544 ; CORTEX-A12-DEFAULT-NOT:   .eabi_attribute 19
545 ;; We default to IEEE 754 compliance
546 ; CORTEX-A12-DEFAULT:  .eabi_attribute 20, 1
547 ; CORTEX-A12-DEFAULT:  .eabi_attribute 21, 1
548 ; CORTEX-A12-DEFAULT-NOT:  .eabi_attribute 22
549 ; CORTEX-A12-DEFAULT:  .eabi_attribute 23, 3
550 ; CORTEX-A12-DEFAULT:  .eabi_attribute 24, 1
551 ; CORTEX-A12-DEFAULT:  .eabi_attribute 25, 1
552 ; CORTEX-A12-DEFAULT:  .eabi_attribute 42, 1
553 ; CORTEX-A12-DEFAULT:  .eabi_attribute 44, 2
554 ; CORTEX-A12-DEFAULT:  .eabi_attribute 68, 3
555
556 ; CORTEX-A12-DEFAULT-FAST-NOT:   .eabi_attribute 19
557 ;; The A12 defaults to a VFPv3 FPU, so it flushes preseving sign when
558 ;; -ffast-math is specified.
559 ; CORTEX-A12-DEFAULT-FAST:  .eabi_attribute 20, 2
560 ; CORTEX-A12-HARD-FAST-NOT:  .eabi_attribute 21
561 ; CORTEX-A12-HARD-FAST-NOT:  .eabi_attribute 22
562 ; CORTEX-A12-HARD-FAST:  .eabi_attribute 23, 1
563
564 ; CORTEX-A12-NOFPU:  .cpu cortex-a12
565 ; CORTEX-A12-NOFPU:  .eabi_attribute 6, 10
566 ; CORTEX-A12-NOFPU:  .eabi_attribute 7, 65
567 ; CORTEX-A12-NOFPU:  .eabi_attribute 8, 1
568 ; CORTEX-A12-NOFPU:  .eabi_attribute 9, 2
569 ; CORTEX-A12-NOFPU-NOT:  .fpu
570 ; CORTEX-A12-NOFPU-NOT:   .eabi_attribute 19
571 ;; We default to IEEE 754 compliance
572 ; CORTEX-A12-NOFPU:  .eabi_attribute 20, 1
573 ; CORTEX-A12-NOFPU:  .eabi_attribute 21, 1
574 ; CORTEX-A12-NOFPU-NOT:  .eabi_attribute 22
575 ; CORTEX-A12-NOFPU:  .eabi_attribute 23, 3
576 ; CORTEX-A12-NOFPU:  .eabi_attribute 24, 1
577 ; CORTEX-A12-NOFPU:  .eabi_attribute 25, 1
578 ; CORTEX-A12-NOFPU:  .eabi_attribute 42, 1
579 ; CORTEX-A12-NOFPU:  .eabi_attribute 44, 2
580 ; CORTEX-A12-NOFPU:  .eabi_attribute 68, 3
581
582 ; CORTEX-A12-NOFPU-FAST-NOT:   .eabi_attribute 19
583 ;; Despite there being no FPU, we chose to flush to zero preserving
584 ;; sign. This matches what the hardware would do for this architecture
585 ;; revision.
586 ; CORTEX-A12-NOFPU-FAST:  .eabi_attribute 20, 2
587 ; CORTEX-A12-NOFPU-FAST-NOT:  .eabi_attribute 21
588 ; CORTEX-A12-NOFPU-FAST-NOT:  .eabi_attribute 22
589 ; CORTEX-A12-NOFPU-FAST:  .eabi_attribute 23, 1
590
591 ; CORTEX-A15: .cpu cortex-a15
592 ; CORTEX-A15: .eabi_attribute 6, 10
593 ; CORTEX-A15: .eabi_attribute 7, 65
594 ; CORTEX-A15: .eabi_attribute 8, 1
595 ; CORTEX-A15: .eabi_attribute 9, 2
596 ; CORTEX-A15: .fpu neon-vfpv4
597 ; CORTEX-A15-NOT:   .eabi_attribute 19
598 ;; We default to IEEE 754 compliance
599 ; CORTEX-A15: .eabi_attribute 20, 1
600 ; CORTEX-A15: .eabi_attribute 21, 1
601 ; CORTEX-A15-NOT: .eabi_attribute 22
602 ; CORTEX-A15: .eabi_attribute 23, 3
603 ; CORTEX-A15: .eabi_attribute 24, 1
604 ; CORTEX-A15: .eabi_attribute 25, 1
605 ; CORTEX-A15-NOT: .eabi_attribute 27
606 ; CORTEX-A15-NOT: .eabi_attribute 28
607 ; CORTEX-A15: .eabi_attribute 36, 1
608 ; CORTEX-A15: .eabi_attribute 42, 1
609 ; CORTEX-A15: .eabi_attribute 44, 2
610 ; CORTEX-A15: .eabi_attribute 68, 3
611
612 ; CORTEX-A15-FAST-NOT:   .eabi_attribute 19
613 ;; The A15 defaults to a VFPv3 FPU, so it flushes preseving sign when
614 ;; -ffast-math is specified.
615 ; CORTEX-A15-FAST: .eabi_attribute 20, 2
616 ; CORTEX-A15-FAST-NOT:  .eabi_attribute 21
617 ; CORTEX-A15-FAST-NOT:  .eabi_attribute 22
618 ; CORTEX-A15-FAST:  .eabi_attribute 23, 1
619
620 ; CORTEX-A17-DEFAULT:  .cpu cortex-a17
621 ; CORTEX-A17-DEFAULT:  .eabi_attribute 6, 10
622 ; CORTEX-A17-DEFAULT:  .eabi_attribute 7, 65
623 ; CORTEX-A17-DEFAULT:  .eabi_attribute 8, 1
624 ; CORTEX-A17-DEFAULT:  .eabi_attribute 9, 2
625 ; CORTEX-A17-DEFAULT:  .fpu neon-vfpv4
626 ; CORTEX-A17-DEFAULT-NOT:   .eabi_attribute 19
627 ;; We default to IEEE 754 compliance
628 ; CORTEX-A17-DEFAULT:  .eabi_attribute 20, 1
629 ; CORTEX-A17-DEFAULT:  .eabi_attribute 21, 1
630 ; CORTEX-A17-DEFAULT-NOT:  .eabi_attribute 22
631 ; CORTEX-A17-DEFAULT:  .eabi_attribute 23, 3
632 ; CORTEX-A17-DEFAULT:  .eabi_attribute 24, 1
633 ; CORTEX-A17-DEFAULT:  .eabi_attribute 25, 1
634 ; CORTEX-A17-DEFAULT:  .eabi_attribute 42, 1
635 ; CORTEX-A17-DEFAULT:  .eabi_attribute 44, 2
636 ; CORTEX-A17-DEFAULT:  .eabi_attribute 68, 3
637
638 ; CORTEX-A17-FAST-NOT:   .eabi_attribute 19
639 ;; The A17 defaults to a VFPv3 FPU, so it flushes preseving sign when
640 ;; -ffast-math is specified.
641 ; CORTEX-A17-FAST:  .eabi_attribute 20, 2
642 ; CORTEX-A17-FAST-NOT:  .eabi_attribute 21
643 ; CORTEX-A17-FAST-NOT:  .eabi_attribute 22
644 ; CORTEX-A17-FAST:  .eabi_attribute 23, 1
645
646 ; CORTEX-A17-NOFPU:  .cpu cortex-a17
647 ; CORTEX-A17-NOFPU:  .eabi_attribute 6, 10
648 ; CORTEX-A17-NOFPU:  .eabi_attribute 7, 65
649 ; CORTEX-A17-NOFPU:  .eabi_attribute 8, 1
650 ; CORTEX-A17-NOFPU:  .eabi_attribute 9, 2
651 ; CORTEX-A17-NOFPU-NOT:  .fpu
652 ; CORTEX-A17-NOFPU-NOT:   .eabi_attribute 19
653 ;; We default to IEEE 754 compliance
654 ; CORTEX-A17-NOFPU:  .eabi_attribute 20, 1
655 ; CORTEX-A17-NOFPU:  .eabi_attribute 21, 1
656 ; CORTEX-A17-NOFPU-NOT:  .eabi_attribute 22
657 ; CORTEX-A17-NOFPU:  .eabi_attribute 23, 3
658 ; CORTEX-A17-NOFPU:  .eabi_attribute 24, 1
659 ; CORTEX-A17-NOFPU:  .eabi_attribute 25, 1
660 ; CORTEX-A17-NOFPU:  .eabi_attribute 42, 1
661 ; CORTEX-A17-NOFPU:  .eabi_attribute 44, 2
662 ; CORTEX-A17-NOFPU:  .eabi_attribute 68, 3
663
664 ; CORTEX-A17-NOFPU-NOT:   .eabi_attribute 19
665 ;; Despite there being no FPU, we chose to flush to zero preserving
666 ;; sign. This matches what the hardware would do for this architecture
667 ;; revision.
668 ; CORTEX-A17-NOFPU-FAST:  .eabi_attribute 20, 2
669 ; CORTEX-A17-NOFPU-FAST-NOT:  .eabi_attribute 21
670 ; CORTEX-A17-NOFPU-FAST-NOT:  .eabi_attribute 22
671 ; CORTEX-A17-NOFPU-FAST:  .eabi_attribute 23, 1
672
673 ; CORTEX-M0:  .cpu cortex-m0
674 ; CORTEX-M0:  .eabi_attribute 6, 12
675 ; CORTEX-M0-NOT:  .eabi_attribute 7
676 ; CORTEX-M0:  .eabi_attribute 8, 0
677 ; CORTEX-M0:  .eabi_attribute 9, 1
678 ; CORTEX-M0-NOT:   .eabi_attribute 19
679 ;; We default to IEEE 754 compliance
680 ; CORTEX-M0:  .eabi_attribute 20, 1
681 ; CORTEX-M0:  .eabi_attribute 21, 1
682 ; CORTEX-M0-NOT:  .eabi_attribute 22
683 ; CORTEX-M0:  .eabi_attribute 23, 3
684 ; CORTEX-M0:  .eabi_attribute 24, 1
685 ; CORTEX-M0:  .eabi_attribute 25, 1
686 ; CORTEX-M0-NOT:  .eabi_attribute 27
687 ; CORTEX-M0-NOT:  .eabi_attribute 28
688 ; CORTEX-M0-NOT:  .eabi_attribute 36
689 ; CORTEX-M0-NOT:  .eabi_attribute 42
690 ; CORTEX-M0-NOT:  .eabi_attribute 68
691
692 ; CORTEX-M0-FAST-NOT:   .eabi_attribute 19
693 ;; Despite the M0 CPU having no FPU in this scenario, we chose to
694 ;; flush to positive zero here. There's no hardware support doing
695 ;; this, but the fast maths software library might and such behaviour
696 ;; would match hardware support on this architecture revision if it
697 ;; existed.
698 ; CORTEX-M0-FAST-NOT:  .eabi_attribute 20
699 ; CORTEX-M0-FAST-NOT:  .eabi_attribute 21
700 ; CORTEX-M0-FAST-NOT:  .eabi_attribute 22
701 ; CORTEX-M0-FAST:  .eabi_attribute 23, 1
702
703 ; CORTEX-M3:  .cpu cortex-m3
704 ; CORTEX-M3:  .eabi_attribute 6, 10
705 ; CORTEX-M3:  .eabi_attribute 7, 77
706 ; CORTEX-M3:  .eabi_attribute 8, 0
707 ; CORTEX-M3:  .eabi_attribute 9, 2
708 ; CORTEX-M3-NOT:   .eabi_attribute 19
709 ;; We default to IEEE 754 compliance
710 ; CORTEX-M3:  .eabi_attribute 20, 1
711 ; CORTEX-M3:  .eabi_attribute 21, 1
712 ; CORTEX-M3-NOT:  .eabi_attribute 22
713 ; CORTEX-M3:  .eabi_attribute 23, 3
714 ; CORTEX-M3:  .eabi_attribute 24, 1
715 ; CORTEX-M3:  .eabi_attribute 25, 1
716 ; CORTEX-M3-NOT:  .eabi_attribute 27
717 ; CORTEX-M3-NOT:  .eabi_attribute 28
718 ; CORTEX-M3-NOT:  .eabi_attribute 36
719 ; CORTEX-M3-NOT:  .eabi_attribute 42
720 ; CORTEX-M3-NOT:  .eabi_attribute 44
721 ; CORTEX-M3-NOT:  .eabi_attribute 68
722
723 ; CORTEX-M3-FAST-NOT:   .eabi_attribute 19
724 ;; Despite there being no FPU, we chose to flush to zero preserving
725 ;; sign. This matches what the hardware would do for this architecture
726 ;; revision.
727 ; CORTEX-M3-FAST:  .eabi_attribute 20, 2
728 ; CORTEX-M3-FAST-NOT:  .eabi_attribute 21
729 ; CORTEX-M3-FAST-NOT:  .eabi_attribute 22
730 ; CORTEX-M3-FAST:  .eabi_attribute 23, 1
731
732 ; CORTEX-M4-SOFT:  .cpu cortex-m4
733 ; CORTEX-M4-SOFT:  .eabi_attribute 6, 13
734 ; CORTEX-M4-SOFT:  .eabi_attribute 7, 77
735 ; CORTEX-M4-SOFT:  .eabi_attribute 8, 0
736 ; CORTEX-M4-SOFT:  .eabi_attribute 9, 2
737 ; CORTEX-M4-SOFT:  .fpu vfpv4-d16
738 ; CORTEX-M4-SOFT-NOT:   .eabi_attribute 19
739 ;; We default to IEEE 754 compliance
740 ; CORTEX-M4-SOFT:  .eabi_attribute 20, 1
741 ; CORTEX-M4-SOFT:  .eabi_attribute 21, 1
742 ; CORTEX-M4-SOFT-NOT:  .eabi_attribute 22
743 ; CORTEX-M4-SOFT:  .eabi_attribute 23, 3
744 ; CORTEX-M4-SOFT:  .eabi_attribute 24, 1
745 ; CORTEX-M4-SOFT:  .eabi_attribute 25, 1
746 ; CORTEX-M4-SOFT:  .eabi_attribute 27, 1
747 ; CORTEX-M4-SOFT-NOT:  .eabi_attribute 28
748 ; CORTEX-M4-SOFT:  .eabi_attribute 36, 1
749 ; CORTEX-M4-SOFT-NOT:  .eabi_attribute 42
750 ; CORTEX-M4-SOFT-NOT:  .eabi_attribute 44
751 ; CORTEX-M4-SOFT-NOT:  .eabi_attribute 68
752
753 ; CORTEX-M4-SOFT-FAST-NOT:   .eabi_attribute 19
754 ;; The M4 defaults to a VFPv4 FPU, so it flushes preseving sign when
755 ;; -ffast-math is specified.
756 ; CORTEX-M4-SOFT-FAST:  .eabi_attribute 20, 2
757 ; CORTEX-M4-SOFT-FAST-NOT:  .eabi_attribute 21
758 ; CORTEX-M4-SOFT-FAST-NOT:  .eabi_attribute 22
759 ; CORTEX-M4-SOFT-FAST:  .eabi_attribute 23, 1
760
761 ; CORTEX-M4-HARD:  .cpu cortex-m4
762 ; CORTEX-M4-HARD:  .eabi_attribute 6, 13
763 ; CORTEX-M4-HARD:  .eabi_attribute 7, 77
764 ; CORTEX-M4-HARD:  .eabi_attribute 8, 0
765 ; CORTEX-M4-HARD:  .eabi_attribute 9, 2
766 ; CORTEX-M4-HARD:  .fpu vfpv4-d16
767 ; CORTEX-M4-HARD-NOT:   .eabi_attribute 19
768 ;; We default to IEEE 754 compliance
769 ; CORTEX-M4-HARD:  .eabi_attribute 20, 1
770 ; CORTEX-M4-HARD:  .eabi_attribute 21, 1
771 ; CORTEX-M4-HARD-NOT:  .eabi_attribute 22
772 ; CORTEX-M4-HARD:  .eabi_attribute 23, 3
773 ; CORTEX-M4-HARD:  .eabi_attribute 24, 1
774 ; CORTEX-M4-HARD:  .eabi_attribute 25, 1
775 ; CORTEX-M4-HARD:  .eabi_attribute 27, 1
776 ; CORTEX-M4-HARD:  .eabi_attribute 28, 1
777 ; CORTEX-M4-HARD:  .eabi_attribute 36, 1
778 ; CORTEX-M4-HARD-NOT:  .eabi_attribute 42
779 ; CORTEX-M4-HARD-NOT:  .eabi_attribute 44
780 ; CORTEX-M4-HARD-NOT:  .eabi_attribute 68
781
782 ; CORTEX-M4-HARD-FAST-NOT:   .eabi_attribute 19
783 ;; The M4 defaults to a VFPv4 FPU, so it flushes preseving sign when
784 ;; -ffast-math is specified.
785 ; CORTEX-M4-HARD-FAST:  .eabi_attribute 20, 2
786 ; CORTEX-M4-HARD-FAST-NOT:  .eabi_attribute 21
787 ; CORTEX-M4-HARD-FAST-NOT:  .eabi_attribute 22
788 ; CORTEX-M4-HARD-FAST:  .eabi_attribute 23, 1
789
790 ; CORTEX-M7:  .cpu    cortex-m7
791 ; CORTEX-M7:  .eabi_attribute 6, 13
792 ; CORTEX-M7:  .eabi_attribute 7, 77
793 ; CORTEX-M7:  .eabi_attribute 8, 0
794 ; CORTEX-M7:  .eabi_attribute 9, 2
795 ; CORTEX-M7-SOFT-NOT: .fpu
796 ; CORTEX-M7-SINGLE:  .fpu fpv5-d16
797 ; CORTEX-M7-DOUBLE:  .fpu fpv5-d16
798 ; CORTEX-M7:  .eabi_attribute 17, 1
799 ; CORTEX-M7-NOT:   .eabi_attribute 19
800 ;; We default to IEEE 754 compliance
801 ; CORTEX-M7:  .eabi_attribute 20, 1
802 ; CORTEX-M7:  .eabi_attribute 21, 1
803 ; CORTEX-M7-NOT:  .eabi_attribute 22
804 ; CORTEX-M7:  .eabi_attribute 23, 3
805 ; CORTEX-M7:  .eabi_attribute 24, 1
806 ; CORTEX-M7:  .eabi_attribute 25, 1
807 ; CORTEX-M7-SOFT-NOT: .eabi_attribute 27
808 ; CORTEX-M7-SINGLE:  .eabi_attribute 27, 1
809 ; CORTEX-M7-DOUBLE-NOT: .eabi_attribute 27
810 ; CORTEX-M7:  .eabi_attribute 36, 1
811 ; CORTEX-M7:  .eabi_attribute 14, 0
812
813 ; CORTEX-M7-NOFPU-FAST-NOT:   .eabi_attribute 19
814 ;; The M7 has the ARMv8 FP unit, which always flushes preserving sign.
815 ; CORTEX-M7-FAST:  .eabi_attribute 20, 2
816 ;; Despite there being no FPU, we chose to flush to zero preserving
817 ;; sign. This matches what the hardware would do for this architecture
818 ;; revision.
819 ; CORTEX-M7-NOFPU-FAST: .eabi_attribute 20, 2
820 ; CORTEX-M7-NOFPU-FAST-NOT:  .eabi_attribute 21
821 ; CORTEX-M7-NOFPU-FAST-NOT:  .eabi_attribute 22
822 ; CORTEX-M7-NOFPU-FAST:  .eabi_attribute 23, 1
823
824 ; CORTEX-R5:  .cpu cortex-r5
825 ; CORTEX-R5:  .eabi_attribute 6, 10
826 ; CORTEX-R5:  .eabi_attribute 7, 82
827 ; CORTEX-R5:  .eabi_attribute 8, 1
828 ; CORTEX-R5:  .eabi_attribute 9, 2
829 ; CORTEX-R5:  .fpu vfpv3-d16
830 ; CORTEX-R5-NOT:   .eabi_attribute 19
831 ;; We default to IEEE 754 compliance
832 ; CORTEX-R5:  .eabi_attribute 20, 1
833 ; CORTEX-R5:  .eabi_attribute 21, 1
834 ; CORTEX-R5-NOT:  .eabi_attribute 22
835 ; CORTEX-R5:  .eabi_attribute 23, 3
836 ; CORTEX-R5:  .eabi_attribute 24, 1
837 ; CORTEX-R5:  .eabi_attribute 25, 1
838 ; CORTEX-R5:  .eabi_attribute 27, 1
839 ; CORTEX-R5-NOT:  .eabi_attribute 28
840 ; CORTEX-R5-NOT:  .eabi_attribute 36
841 ; CORTEX-R5-NOT:  .eabi_attribute 42
842 ; CORTEX-R5:  .eabi_attribute 44, 2
843 ; CORTEX-R5-NOT:  .eabi_attribute 68
844
845 ; CORTEX-R5-FAST-NOT:   .eabi_attribute 19
846 ;; The R5 has the VFPv3 FP unit, which always flushes preserving sign.
847 ; CORTEX-R5-FAST:  .eabi_attribute 20, 2
848 ; CORTEX-R5-FAST-NOT:  .eabi_attribute 21
849 ; CORTEX-R5-FAST-NOT:  .eabi_attribute 22
850 ; CORTEX-R5-FAST:  .eabi_attribute 23, 1
851
852 ; CORTEX-A53:  .cpu cortex-a53
853 ; CORTEX-A53:  .eabi_attribute 6, 14
854 ; CORTEX-A53:  .eabi_attribute 7, 65
855 ; CORTEX-A53:  .eabi_attribute 8, 1
856 ; CORTEX-A53:  .eabi_attribute 9, 2
857 ; CORTEX-A53:  .fpu crypto-neon-fp-armv8
858 ; CORTEX-A53:  .eabi_attribute 12, 3
859 ; CORTEX-A53-NOT:   .eabi_attribute 19
860 ;; We default to IEEE 754 compliance
861 ; CORTEX-A53:  .eabi_attribute 20, 1
862 ; CORTEX-A53:  .eabi_attribute 21, 1
863 ; CORTEX-A53-NOT:  .eabi_attribute 22
864 ; CORTEX-A53:  .eabi_attribute 23, 3
865 ; CORTEX-A53:  .eabi_attribute 24, 1
866 ; CORTEX-A53:  .eabi_attribute 25, 1
867 ; CORTEX-A53-NOT:  .eabi_attribute 27
868 ; CORTEX-A53-NOT:  .eabi_attribute 28
869 ; CORTEX-A53:  .eabi_attribute 36, 1
870 ; CORTEX-A53:  .eabi_attribute 42, 1
871 ; CORTEX-A53-NOT:  .eabi_attribute 44
872 ; CORTEX-A53:  .eabi_attribute 68, 3
873
874 ; CORTEX-A53-FAST-NOT:   .eabi_attribute 19
875 ;; The A53 has the ARMv8 FP unit, which always flushes preserving sign.
876 ; CORTEX-A53-FAST:  .eabi_attribute 20, 2
877 ; CORTEX-A53-FAST-NOT:  .eabi_attribute 21
878 ; CORTEX-A53-FAST-NOT:  .eabi_attribute 22
879 ; CORTEX-A53-FAST:  .eabi_attribute 23, 1
880
881 ; CORTEX-A57:  .cpu cortex-a57
882 ; CORTEX-A57:  .eabi_attribute 6, 14
883 ; CORTEX-A57:  .eabi_attribute 7, 65
884 ; CORTEX-A57:  .eabi_attribute 8, 1
885 ; CORTEX-A57:  .eabi_attribute 9, 2
886 ; CORTEX-A57:  .fpu crypto-neon-fp-armv8
887 ; CORTEX-A57:  .eabi_attribute 12, 3
888 ; CORTEX-A57-NOT:   .eabi_attribute 19
889 ;; We default to IEEE 754 compliance
890 ; CORTEX-A57:  .eabi_attribute 20, 1
891 ; CORTEX-A57:  .eabi_attribute 21, 1
892 ; CORTEX-A57-NOT:  .eabi_attribute 22
893 ; CORTEX-A57:  .eabi_attribute 23, 3
894 ; CORTEX-A57:  .eabi_attribute 24, 1
895 ; CORTEX-A57:  .eabi_attribute 25, 1
896 ; CORTEX-A57-NOT:  .eabi_attribute 27
897 ; CORTEX-A57-NOT:  .eabi_attribute 28
898 ; CORTEX-A57:  .eabi_attribute 36, 1
899 ; CORTEX-A57:  .eabi_attribute 42, 1
900 ; CORTEX-A57-NOT:  .eabi_attribute 44
901 ; CORTEX-A57:  .eabi_attribute 68, 3
902
903 ; CORTEX-A57-FAST-NOT:   .eabi_attribute 19
904 ;; The A57 has the ARMv8 FP unit, which always flushes preserving sign.
905 ; CORTEX-A57-FAST:  .eabi_attribute 20, 2
906 ; CORTEX-A57-FAST-NOT:  .eabi_attribute 21
907 ; CORTEX-A57-FAST-NOT:  .eabi_attribute 22
908 ; CORTEX-A57-FAST:  .eabi_attribute 23, 1
909
910 ; RELOC-PIC:  .eabi_attribute 15, 1
911 ; RELOC-PIC:  .eabi_attribute 16, 1
912 ; RELOC-PIC:  .eabi_attribute 17, 2
913 ; RELOC-OTHER:  .eabi_attribute 17, 1
914
915 ; PCS-R9-USE:  .eabi_attribute 14, 0
916 ; PCS-R9-RESERVE:  .eabi_attribute 14, 3
917
918 define i32 @f(i64 %z) {
919     ret i32 0
920 }