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