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