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