OSDN Git Service

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