mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-29 00:21:14 +00:00
97e496054a
Add CSKY target toolchains to support csky in linux and elf environment. It can leverage the basic universal Linux toolchain for linux environment, and only add some compile or link parameters. For elf environment, add a CSKYToolChain to support compile and link. Also add some parameters into basic codebase of clang driver. Differential Revision: https://reviews.llvm.org/D121445
16 lines
343 B
C
16 lines
343 B
C
// RUN: %clang -target csky-unknown-linux-gnu -x c -E -dM %s \
|
|
// RUN: -o - | FileCheck %s
|
|
|
|
// CHECK: __CK810__ 1
|
|
// CHECK: __CKCORE__ 2
|
|
// CHECK: __CSKYABI__ 2
|
|
// CHECK: __CSKYLE__ 1
|
|
// CHECK: __CSKY__ 2
|
|
|
|
// CHECK: __ck810__ 1
|
|
// CHECK: __ckcore__ 2
|
|
// CHECK: __cskyLE__ 1
|
|
// CHECK: __csky__ 2
|
|
// CHECK: __cskyabi__ 2
|
|
// CHECK: __cskyle__ 1
|