forked from OSchip/llvm-project
RAS extensions are part of ARMv8.2.
This patch enables +ras +noras to AArch64 in clang. Patch by: Roger Ferrer Ibanez and Oliver Stannard Differential Revision: http://reviews.llvm.org/D20283 llvm-svn: 271672
This commit is contained in:
parent
b53452b2b1
commit
ba7a16ff33
|
@ -2282,12 +2282,14 @@ static bool DecodeAArch64Features(const Driver &D, StringRef text,
|
|||
.Case("crypto", "+crypto")
|
||||
.Case("fp16", "+fullfp16")
|
||||
.Case("profile", "+spe")
|
||||
.Case("ras", "+ras")
|
||||
.Case("nofp", "-fp-armv8")
|
||||
.Case("nosimd", "-neon")
|
||||
.Case("nocrc", "-crc")
|
||||
.Case("nocrypto", "-crypto")
|
||||
.Case("nofp16", "-fullfp16")
|
||||
.Case("noprofile", "-spe")
|
||||
.Case("noras", "-ras")
|
||||
.Default(nullptr);
|
||||
if (result)
|
||||
Features.push_back(result);
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
// RUN: %clang -target aarch64-none-none-eabi -march=armv8a+ras -### -c %s 2>&1 | FileCheck --check-prefix=CHECK-RAS %s
|
||||
// RUN: %clang -target aarch64-none-none-eabi -mcpu=generic+ras -### -c %s 2>&1 | FileCheck --check-prefix=CHECK-RAS %s
|
||||
// CHECK-RAS: "-target-feature" "+ras"
|
||||
|
||||
// RUN: %clang -target aarch64-none-none-eabi -march=armv8a+noras -### -c %s 2>&1 | FileCheck --check-prefix=CHECK-NORAS %s
|
||||
// RUN: %clang -target aarch64-none-none-eabi -mcpu=generic+noras -### -c %s 2>&1 | FileCheck --check-prefix=CHECK-NORAS %s
|
||||
// CHECK-NORAS: "-target-feature" "-ras"
|
|
@ -0,0 +1,7 @@
|
|||
// RUN: %clang -target arm-none-none-eabi -march=armv8a+ras -### -c %s 2>&1 | FileCheck --check-prefix=CHECK-RAS %s
|
||||
// RUN: %clang -target arm-none-none-eabi -mcpu=generic+ras -### -c %s 2>&1 | FileCheck --check-prefix=CHECK-RAS %s
|
||||
// CHECK-RAS: "-target-feature" "+ras"
|
||||
|
||||
// RUN: %clang -target arm-none-none-eabi -march=armv8a+noras -### -c %s 2>&1 | FileCheck --check-prefix=CHECK-NORAS %s
|
||||
// RUN: %clang -target arm-none-none-eabi -mcpu=generic+noras -### -c %s 2>&1 | FileCheck --check-prefix=CHECK-NORAS %s
|
||||
// CHECK-NORAS: "-target-feature" "-ras"
|
Loading…
Reference in New Issue