Skip to content

Commit 1f14d1f

Browse files
eleanor-armdcandler
authored andcommitted
Enable targetting v8-R+ Aarch-32 (#486)
1 parent 8f110a0 commit 1f14d1f

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

cmake/multilib.yaml.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ Mappings:
152152
- Match: --target=(arm|thumb)v(8|8\.[1-9]|9|9\.[1-9])a-unknown-none-eabihf
153153
Flags:
154154
- --target=armv7-unknown-none-eabihf
155+
- Match: --target=(arm|thumb)v(8|8\.[1-9]|9|9\.[1-9])r-unknown-none-eabi
156+
Flags:
157+
- --target=armv7r-unknown-none-eabi
158+
- Match: --target=(arm|thumb)v(8|8\.[1-9]|9|9\.[1-9])r-unknown-none-eabihf
159+
Flags:
160+
- --target=armv7r-unknown-none-eabihf
155161

156162
# -march extensions
157163
- Match: -march=thumbv8\.[1-9]m\.main(\+[^\+]+)*\+fp16(\+[^\+]+)*

test/multilib/armv8r.test

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# RUN: %clang -print-multi-directory --target=armv8r-none-eabi -mfpu=none | FileCheck %s
2+
# RUN: %clang -print-multi-directory --target=armv8r-none-eabi -mfpu=none -marm | FileCheck %s
3+
# RUN: %clang -print-multi-directory --target=armv8r-none-eabi -mfpu=none -mthumb | FileCheck %s
4+
# CHECK: arm-none-eabi/armv7r_soft_nofp_exn_rtti{{$}}
5+
# CHECK-EMPTY:
6+
7+
# RUN: %clang -print-multi-directory --target=armv8r-none-eabihf -mfpu=vfpv3-d16 | FileCheck --check-prefix=VFPV3 %s
8+
# RUN: %clang -print-multi-directory --target=armv8r-none-eabihf -mfpu=neon-vfpv3 | FileCheck --check-prefix=VFPV3 %s
9+
# RUN: %clang -print-multi-directory --target=armv8r-none-eabihf -mfpu=vfpv3 | FileCheck --check-prefix=VFPV3 %s
10+
# RUN: %clang -print-multi-directory --target=armv8r-none-eabihf -mfpu=vfpv3-d16-fp16 | FileCheck --check-prefix=VFPV3 %s
11+
# RUN: %clang -print-multi-directory --target=armv8r-none-eabihf -mfpu=vfpv3-fp16 | FileCheck --check-prefix=VFPV3 %s
12+
# RUN: %clang -print-multi-directory --target=armv8r-none-eabihf -mfpu=vfpv4-d16 | FileCheck --check-prefix=VFPV3 %s
13+
# RUN: %clang -print-multi-directory --target=armv8r-none-eabihf -mfpu=vfpv4 | FileCheck --check-prefix=VFPV3 %s
14+
# RUN: %clang -print-multi-directory --target=armv8r-none-eabihf -mfpu=neon-fp16 | FileCheck --check-prefix=VFPV3 %s
15+
# RUN: %clang -print-multi-directory --target=armv8r-none-eabihf -mfpu=neon-vfpv4 | FileCheck --check-prefix=VFPV3 %s
16+
# RUN: %clang -print-multi-directory --target=armv8r-none-eabihf -mfpu=vfpv3-d16 -marm | FileCheck --check-prefix=VFPV3 %s
17+
# RUN: %clang -print-multi-directory --target=armv8r-none-eabihf -mfpu=vfpv3-d16 -mthumb | FileCheck --check-prefix=VFPV3 %s
18+
# VFPV3: arm-none-eabi/armv7r_hard_vfpv3_d16_exn_rtti{{$}}
19+
# VFPV3-EMPTY:

0 commit comments

Comments
 (0)