summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/init.c
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2019-11-05 10:31:16 +0300
committerSimon Atanasyan <simon@atanasyan.com>2019-11-05 12:10:58 +0300
commite578d0fd295a67bce1e1fc922237f459deb49c7e (patch)
tree8d8f6cd93f99e2d41f91325b7a1a207f4ecbcfd5 /clang/test/Preprocessor/init.c
parent92164cf25d513d44fdb5d727a33d02ad4c87384e (diff)
downloadbcm5719-llvm-e578d0fd295a67bce1e1fc922237f459deb49c7e.tar.gz
bcm5719-llvm-e578d0fd295a67bce1e1fc922237f459deb49c7e.zip
[mips] Fix `__mips_isa_rev` macros value for Octeon CPU
Diffstat (limited to 'clang/test/Preprocessor/init.c')
-rw-r--r--clang/test/Preprocessor/init.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/init.c b/clang/test/Preprocessor/init.c
index 18972de3534..4e79077687c 100644
--- a/clang/test/Preprocessor/init.c
+++ b/clang/test/Preprocessor/init.c
@@ -4832,6 +4832,15 @@
// MIPS-ARCH-64R6:#define _MIPS_ISA _MIPS_ISA_MIPS64
// MIPS-ARCH-64R6:#define __mips_isa_rev 6
//
+// RUN: %clang_cc1 -E -dM -ffreestanding -triple=mips64-none-none \
+// RUN: -target-cpu octeon < /dev/null \
+// RUN: | FileCheck -match-full-lines -check-prefix MIPS-ARCH-OCTEON %s
+//
+// MIPS-ARCH-OCTEON:#define _MIPS_ARCH "octeon"
+// MIPS-ARCH-OCTEON:#define _MIPS_ARCH_OCTEON 1
+// MIPS-ARCH-OCTEON:#define _MIPS_ISA _MIPS_ISA_MIPS64
+// MIPS-ARCH-OCTEON:#define __mips_isa_rev 2
+//
// Check MIPS float ABI macros
//
// RUN: %clang_cc1 -E -dM -ffreestanding \
OpenPOWER on IntegriCloud