forked from OSchip/llvm-project
[X86][LWP] Add __LWP__ macro tests
Missed in rL302418 Differential Revision: https://reviews.llvm.org/D32770 llvm-svn: 302445
This commit is contained in:
parent
868813ffbb
commit
0fd1b6c0dc
|
@ -1601,6 +1601,7 @@
|
|||
// CHECK_BDVER1_M32: #define __AES__ 1
|
||||
// CHECK_BDVER1_M32: #define __AVX__ 1
|
||||
// CHECK_BDVER1_M32: #define __FMA4__ 1
|
||||
// CHECK_BDVER1_M32: #define __LWP__ 1
|
||||
// CHECK_BDVER1_M32: #define __LZCNT__ 1
|
||||
// CHECK_BDVER1_M32: #define __MMX__ 1
|
||||
// CHECK_BDVER1_M32: #define __PCLMUL__ 1
|
||||
|
@ -1630,6 +1631,7 @@
|
|||
// CHECK_BDVER1_M64: #define __AES__ 1
|
||||
// CHECK_BDVER1_M64: #define __AVX__ 1
|
||||
// CHECK_BDVER1_M64: #define __FMA4__ 1
|
||||
// CHECK_BDVER1_M64: #define __LWP__ 1
|
||||
// CHECK_BDVER1_M64: #define __LZCNT__ 1
|
||||
// CHECK_BDVER1_M64: #define __MMX__ 1
|
||||
// CHECK_BDVER1_M64: #define __PCLMUL__ 1
|
||||
|
@ -1664,6 +1666,7 @@
|
|||
// CHECK_BDVER2_M32: #define __F16C__ 1
|
||||
// CHECK_BDVER2_M32: #define __FMA4__ 1
|
||||
// CHECK_BDVER2_M32: #define __FMA__ 1
|
||||
// CHECK_BDVER2_M32: #define __LWP__ 1
|
||||
// CHECK_BDVER2_M32: #define __LZCNT__ 1
|
||||
// CHECK_BDVER2_M32: #define __MMX__ 1
|
||||
// CHECK_BDVER2_M32: #define __PCLMUL__ 1
|
||||
|
@ -1697,6 +1700,7 @@
|
|||
// CHECK_BDVER2_M64: #define __F16C__ 1
|
||||
// CHECK_BDVER2_M64: #define __FMA4__ 1
|
||||
// CHECK_BDVER2_M64: #define __FMA__ 1
|
||||
// CHECK_BDVER2_M64: #define __LWP__ 1
|
||||
// CHECK_BDVER2_M64: #define __LZCNT__ 1
|
||||
// CHECK_BDVER2_M64: #define __MMX__ 1
|
||||
// CHECK_BDVER2_M64: #define __PCLMUL__ 1
|
||||
|
@ -1733,6 +1737,7 @@
|
|||
// CHECK_BDVER3_M32: #define __FMA4__ 1
|
||||
// CHECK_BDVER3_M32: #define __FMA__ 1
|
||||
// CHECK_BDVER3_M32: #define __FSGSBASE__ 1
|
||||
// CHECK_BDVER3_M32: #define __LWP__ 1
|
||||
// CHECK_BDVER3_M32: #define __LZCNT__ 1
|
||||
// CHECK_BDVER3_M32: #define __MMX__ 1
|
||||
// CHECK_BDVER3_M32: #define __PCLMUL__ 1
|
||||
|
@ -1768,6 +1773,7 @@
|
|||
// CHECK_BDVER3_M64: #define __FMA4__ 1
|
||||
// CHECK_BDVER3_M64: #define __FMA__ 1
|
||||
// CHECK_BDVER3_M64: #define __FSGSBASE__ 1
|
||||
// CHECK_BDVER3_M64: #define __LWP__ 1
|
||||
// CHECK_BDVER3_M64: #define __LZCNT__ 1
|
||||
// CHECK_BDVER3_M64: #define __MMX__ 1
|
||||
// CHECK_BDVER3_M64: #define __PCLMUL__ 1
|
||||
|
@ -1807,6 +1813,7 @@
|
|||
// CHECK_BDVER4_M32: #define __FMA4__ 1
|
||||
// CHECK_BDVER4_M32: #define __FMA__ 1
|
||||
// CHECK_BDVER4_M32: #define __FSGSBASE__ 1
|
||||
// CHECK_BDVER4_M32: #define __LWP__ 1
|
||||
// CHECK_BDVER4_M32: #define __LZCNT__ 1
|
||||
// CHECK_BDVER4_M32: #define __MMX__ 1
|
||||
// CHECK_BDVER4_M32: #define __PCLMUL__ 1
|
||||
|
@ -1843,6 +1850,7 @@
|
|||
// CHECK_BDVER4_M64: #define __FMA4__ 1
|
||||
// CHECK_BDVER4_M64: #define __FMA__ 1
|
||||
// CHECK_BDVER4_M64: #define __FSGSBASE__ 1
|
||||
// CHECK_BDVER4_M64: #define __LWP__ 1
|
||||
// CHECK_BDVER4_M64: #define __LZCNT__ 1
|
||||
// CHECK_BDVER4_M64: #define __MMX__ 1
|
||||
// CHECK_BDVER4_M64: #define __PCLMUL__ 1
|
||||
|
|
|
@ -272,6 +272,14 @@
|
|||
// AESNOSSE2-NOT: #define __SSE2__ 1
|
||||
// AESNOSSE2-NOT: #define __SSE3__ 1
|
||||
|
||||
// RUN: %clang -target i386-unknown-unknown -march=pentiumpro -mlwp -x c -E -dM -o - %s | FileCheck -match-full-lines --check-prefix=LWP %s
|
||||
|
||||
// LWP: #define __LWP__ 1
|
||||
|
||||
// RUN: %clang -target i386-unknown-unknown -march=bdver1 -mno-lwp -x c -E -dM -o - %s | FileCheck -match-full-lines --check-prefix=NOLWP %s
|
||||
|
||||
// NOLWP-NOT: #define __LWP__ 1
|
||||
|
||||
// RUN: %clang -target i386-unknown-unknown -march=pentiumpro -msha -x c -E -dM -o - %s | FileCheck -match-full-lines --check-prefix=SHA %s
|
||||
|
||||
// SHA: #define __SHA__ 1
|
||||
|
|
Loading…
Reference in New Issue