2018-01-11 21:36:56 +08:00
|
|
|
// A basic clang -cc1 command-line, and simple environment check.
|
|
|
|
|
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes -target riscv32 2>&1 | FileCheck -check-prefix=CC1 %s
|
|
|
|
// CC1: clang{{.*}} "-cc1" "-triple" "riscv32"
|
|
|
|
|
[RISCV] Add driver for riscv32-unknown-elf baremetal target
Summary:
This patch adds a driver for the baremetal RISC-V target (i.e. riscv32-unknown-elf). For reference, D39963 added basic target info and added support for riscv32-linux-unknown-elf.
Patch by: asb (Alex Bradbury)
Reviewers: efriedma, phosek, apazos, espindola, mgrang
Reviewed By: mgrang
Subscribers: jrtc27, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, emaste, mgorny, arichardson, rbar, johnrusso, simoncook, jordy.potman.lists, sabuasal, niosHD, kito-cheng, shiva0217, zzheng, edward-jones, mgrang, cfe-commits
Differential Revision: https://reviews.llvm.org/D46822
llvm-svn: 338385
2018-07-31 22:21:46 +08:00
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes \
|
|
|
|
// RUN: -target riscv32-unknown-elf \
|
|
|
|
// RUN: --gcc-toolchain=%S/Inputs/basic_riscv32_tree \
|
|
|
|
// RUN: --sysroot=%S/Inputs/basic_riscv32_tree/riscv32-unknown-elf 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=C-RV32-BAREMETAL-ILP32 %s
|
|
|
|
|
2018-08-24 11:05:08 +08:00
|
|
|
// C-RV32-BAREMETAL-ILP32: "-fuse-init-array"
|
[RISCV] Add driver for riscv32-unknown-elf baremetal target
Summary:
This patch adds a driver for the baremetal RISC-V target (i.e. riscv32-unknown-elf). For reference, D39963 added basic target info and added support for riscv32-linux-unknown-elf.
Patch by: asb (Alex Bradbury)
Reviewers: efriedma, phosek, apazos, espindola, mgrang
Reviewed By: mgrang
Subscribers: jrtc27, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, emaste, mgorny, arichardson, rbar, johnrusso, simoncook, jordy.potman.lists, sabuasal, niosHD, kito-cheng, shiva0217, zzheng, edward-jones, mgrang, cfe-commits
Differential Revision: https://reviews.llvm.org/D46822
llvm-svn: 338385
2018-07-31 22:21:46 +08:00
|
|
|
// C-RV32-BAREMETAL-ILP32: "{{.*}}Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1/../../../../bin{{/|\\\\}}riscv32-unknown-elf-ld"
|
|
|
|
// C-RV32-BAREMETAL-ILP32: "--sysroot={{.*}}/Inputs/basic_riscv32_tree/riscv32-unknown-elf"
|
|
|
|
// C-RV32-BAREMETAL-ILP32: "{{.*}}/Inputs/basic_riscv32_tree/riscv32-unknown-elf/lib{{/|\\\\}}crt0.o"
|
|
|
|
// C-RV32-BAREMETAL-ILP32: "{{.*}}/Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1{{/|\\\\}}crtbegin.o"
|
|
|
|
// C-RV32-BAREMETAL-ILP32: "-L{{.*}}/Inputs/basic_riscv32_tree/riscv32-unknown-elf/lib"
|
|
|
|
// C-RV32-BAREMETAL-ILP32: "-L{{.*}}/Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1"
|
|
|
|
// C-RV32-BAREMETAL-ILP32: "--start-group" "-lc" "-lgloss" "--end-group" "-lgcc"
|
|
|
|
// C-RV32-BAREMETAL-ILP32: "{{.*}}/Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1{{/|\\\\}}crtend.o"
|
|
|
|
|
2018-09-07 21:03:31 +08:00
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes \
|
|
|
|
// RUN: -target riscv32-unknown-elf \
|
2018-09-12 23:55:14 +08:00
|
|
|
// RUN: --sysroot= \
|
2018-09-07 21:03:31 +08:00
|
|
|
// RUN: --gcc-toolchain=%S/Inputs/basic_riscv32_tree 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=C-RV32-BAREMETAL-NOSYSROOT-ILP32 %s
|
|
|
|
|
|
|
|
// C-RV32-BAREMETAL-NOSYSROOT-ILP32: "-fuse-init-array"
|
|
|
|
// C-RV32-BAREMETAL-NOSYSROOT-ILP32: "{{.*}}Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1/../../../../bin{{/|\\\\}}riscv32-unknown-elf-ld"
|
|
|
|
// C-RV32-BAREMETAL-NOSYSROOT-ILP32: "{{.*}}/Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1/../../../../riscv32-unknown-elf/lib{{/|\\\\}}crt0.o"
|
|
|
|
// C-RV32-BAREMETAL-NOSYSROOT-ILP32: "{{.*}}/Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1{{/|\\\\}}crtbegin.o"
|
|
|
|
// C-RV32-BAREMETAL-NOSYSROOT-ILP32: "-L{{.*}}/Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1/../../../../riscv32-unknown-elf{{/|\\\\}}lib"
|
|
|
|
// C-RV32-BAREMETAL-NOSYSROOT-ILP32: "-L{{.*}}/Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1"
|
|
|
|
// C-RV32-BAREMETAL-NOSYSROOT-ILP32: "--start-group" "-lc" "-lgloss" "--end-group" "-lgcc"
|
|
|
|
// C-RV32-BAREMETAL-NOSYSROOT-ILP32: "{{.*}}/Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1{{/|\\\\}}crtend.o"
|
|
|
|
|
[RISCV] Add driver for riscv32-unknown-elf baremetal target
Summary:
This patch adds a driver for the baremetal RISC-V target (i.e. riscv32-unknown-elf). For reference, D39963 added basic target info and added support for riscv32-linux-unknown-elf.
Patch by: asb (Alex Bradbury)
Reviewers: efriedma, phosek, apazos, espindola, mgrang
Reviewed By: mgrang
Subscribers: jrtc27, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, emaste, mgorny, arichardson, rbar, johnrusso, simoncook, jordy.potman.lists, sabuasal, niosHD, kito-cheng, shiva0217, zzheng, edward-jones, mgrang, cfe-commits
Differential Revision: https://reviews.llvm.org/D46822
llvm-svn: 338385
2018-07-31 22:21:46 +08:00
|
|
|
// RUN: %clangxx %s -### -no-canonical-prefixes \
|
2018-08-01 02:47:48 +08:00
|
|
|
// RUN: -target riscv32-unknown-elf -stdlib=libstdc++ \
|
[RISCV] Add driver for riscv32-unknown-elf baremetal target
Summary:
This patch adds a driver for the baremetal RISC-V target (i.e. riscv32-unknown-elf). For reference, D39963 added basic target info and added support for riscv32-linux-unknown-elf.
Patch by: asb (Alex Bradbury)
Reviewers: efriedma, phosek, apazos, espindola, mgrang
Reviewed By: mgrang
Subscribers: jrtc27, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, emaste, mgorny, arichardson, rbar, johnrusso, simoncook, jordy.potman.lists, sabuasal, niosHD, kito-cheng, shiva0217, zzheng, edward-jones, mgrang, cfe-commits
Differential Revision: https://reviews.llvm.org/D46822
llvm-svn: 338385
2018-07-31 22:21:46 +08:00
|
|
|
// RUN: --gcc-toolchain=%S/Inputs/basic_riscv32_tree \
|
|
|
|
// RUN: --sysroot=%S/Inputs/basic_riscv32_tree/riscv32-unknown-elf 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CXX-RV32-BAREMETAL-ILP32 %s
|
|
|
|
|
2018-08-24 11:05:08 +08:00
|
|
|
// CXX-RV32-BAREMETAL-ILP32: "-fuse-init-array"
|
2018-09-07 21:03:31 +08:00
|
|
|
// CXX-RV32-BAREMETAL-ILP32: "-internal-isystem" "{{.*}}Inputs/basic_riscv32_tree/riscv32-unknown-elf/include/c++{{/|\\\\}}8.0.1"
|
[RISCV] Add driver for riscv32-unknown-elf baremetal target
Summary:
This patch adds a driver for the baremetal RISC-V target (i.e. riscv32-unknown-elf). For reference, D39963 added basic target info and added support for riscv32-linux-unknown-elf.
Patch by: asb (Alex Bradbury)
Reviewers: efriedma, phosek, apazos, espindola, mgrang
Reviewed By: mgrang
Subscribers: jrtc27, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, emaste, mgorny, arichardson, rbar, johnrusso, simoncook, jordy.potman.lists, sabuasal, niosHD, kito-cheng, shiva0217, zzheng, edward-jones, mgrang, cfe-commits
Differential Revision: https://reviews.llvm.org/D46822
llvm-svn: 338385
2018-07-31 22:21:46 +08:00
|
|
|
// CXX-RV32-BAREMETAL-ILP32: "{{.*}}Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1/../../../../bin{{/|\\\\}}riscv32-unknown-elf-ld"
|
|
|
|
// CXX-RV32-BAREMETAL-ILP32: "--sysroot={{.*}}/Inputs/basic_riscv32_tree/riscv32-unknown-elf"
|
|
|
|
// CXX-RV32-BAREMETAL-ILP32: "{{.*}}/Inputs/basic_riscv32_tree/riscv32-unknown-elf/lib{{/|\\\\}}crt0.o"
|
|
|
|
// CXX-RV32-BAREMETAL-ILP32: "{{.*}}/Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1{{/|\\\\}}crtbegin.o"
|
|
|
|
// CXX-RV32-BAREMETAL-ILP32: "-L{{.*}}/Inputs/basic_riscv32_tree/riscv32-unknown-elf/lib"
|
|
|
|
// CXX-RV32-BAREMETAL-ILP32: "-L{{.*}}/Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1"
|
|
|
|
// CXX-RV32-BAREMETAL-ILP32: "-lstdc++" "--start-group" "-lc" "-lgloss" "--end-group" "-lgcc"
|
|
|
|
// CXX-RV32-BAREMETAL-ILP32: "{{.*}}/Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1{{/|\\\\}}crtend.o"
|
2018-01-11 21:36:56 +08:00
|
|
|
|
2018-09-07 21:03:31 +08:00
|
|
|
// RUN: %clangxx %s -### -no-canonical-prefixes \
|
|
|
|
// RUN: -target riscv32-unknown-elf -stdlib=libstdc++ \
|
2018-09-12 23:55:14 +08:00
|
|
|
// RUN: --sysroot= \
|
2018-09-07 21:03:31 +08:00
|
|
|
// RUN: --gcc-toolchain=%S/Inputs/basic_riscv32_tree 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=CXX-RV32-BAREMETAL-NOSYSROOT-ILP32 %s
|
|
|
|
|
|
|
|
// CXX-RV32-BAREMETAL-NOSYSROOT-ILP32: "-fuse-init-array"
|
|
|
|
// CXX-RV32-BAREMETAL-NOSYSROOT-ILP32: "-internal-isystem" "{{.*}}Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1/../../../../riscv32-unknown-elf/include/c++{{/|\\\\}}8.0.1"
|
|
|
|
// CXX-RV32-BAREMETAL-NOSYSROOT-ILP32: "{{.*}}Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1/../../../../bin{{/|\\\\}}riscv32-unknown-elf-ld"
|
|
|
|
// CXX-RV32-BAREMETAL-NOSYSROOT-ILP32: "{{.*}}/Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1/../../../../riscv32-unknown-elf/lib{{/|\\\\}}crt0.o"
|
|
|
|
// CXX-RV32-BAREMETAL-NOSYSROOT-ILP32: "{{.*}}/Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1{{/|\\\\}}crtbegin.o"
|
|
|
|
// CXX-RV32-BAREMETAL-NOSYSROOT-ILP32: "-L{{.*}}/Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1/../../../../riscv32-unknown-elf/lib"
|
|
|
|
// CXX-RV32-BAREMETAL-NOSYSROOT-ILP32: "-L{{.*}}/Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1"
|
|
|
|
// CXX-RV32-BAREMETAL-NOSYSROOT-ILP32: "-lstdc++" "--start-group" "-lc" "-lgloss" "--end-group" "-lgcc"
|
|
|
|
// CXX-RV32-BAREMETAL-NOSYSROOT-ILP32: "{{.*}}/Inputs/basic_riscv32_tree/lib/gcc/riscv32-unknown-elf/8.0.1{{/|\\\\}}crtend.o"
|
|
|
|
|
2018-01-13 17:21:11 +08:00
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes -fuse-ld=ld \
|
2019-04-04 21:51:41 +08:00
|
|
|
// RUN: -target riscv32-unknown-linux-gnu \
|
2018-01-11 21:36:56 +08:00
|
|
|
// RUN: --gcc-toolchain=%S/Inputs/multilib_riscv_linux_sdk \
|
|
|
|
// RUN: --sysroot=%S/Inputs/multilib_riscv_linux_sdk/sysroot 2>&1 \
|
2018-05-14 17:14:43 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=C-RV32-LINUX-MULTI-ILP32 %s
|
2018-01-11 21:36:56 +08:00
|
|
|
|
2018-08-24 11:05:08 +08:00
|
|
|
// C-RV32-LINUX-MULTI-ILP32: "-fuse-init-array"
|
2018-05-14 17:14:43 +08:00
|
|
|
// C-RV32-LINUX-MULTI-ILP32: "{{.*}}/Inputs/multilib_riscv_linux_sdk/lib/gcc/riscv64-unknown-linux-gnu/7.2.0/../../../../riscv64-unknown-linux-gnu/bin{{/|\\\\}}ld"
|
|
|
|
// C-RV32-LINUX-MULTI-ILP32: "--sysroot={{.*}}/Inputs/multilib_riscv_linux_sdk/sysroot"
|
|
|
|
// C-RV32-LINUX-MULTI-ILP32: "-m" "elf32lriscv"
|
|
|
|
// C-RV32-LINUX-MULTI-ILP32: "-dynamic-linker" "/lib/ld-linux-riscv32-ilp32.so.1"
|
|
|
|
// C-RV32-LINUX-MULTI-ILP32: "{{.*}}/Inputs/multilib_riscv_linux_sdk/lib/gcc/riscv64-unknown-linux-gnu/7.2.0/lib32/ilp32{{/|\\\\}}crtbegin.o"
|
|
|
|
// C-RV32-LINUX-MULTI-ILP32: "-L{{.*}}/Inputs/multilib_riscv_linux_sdk/lib/gcc/riscv64-unknown-linux-gnu/7.2.0/lib32/ilp32"
|
|
|
|
// C-RV32-LINUX-MULTI-ILP32: "-L{{.*}}/Inputs/multilib_riscv_linux_sdk/sysroot/lib32/ilp32"
|
|
|
|
// C-RV32-LINUX-MULTI-ILP32: "-L{{.*}}/Inputs/multilib_riscv_linux_sdk/sysroot/usr/lib32/ilp32"
|
2018-01-11 21:36:56 +08:00
|
|
|
|
2018-01-13 17:21:11 +08:00
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes -fuse-ld=ld \
|
2019-04-04 21:51:41 +08:00
|
|
|
// RUN: -target riscv32-unknown-linux-gnu -march=rv32imafd -mabi=ilp32d \
|
2018-01-11 21:36:56 +08:00
|
|
|
// RUN: --gcc-toolchain=%S/Inputs/multilib_riscv_linux_sdk \
|
|
|
|
// RUN: --sysroot=%S/Inputs/multilib_riscv_linux_sdk/sysroot 2>&1 \
|
2018-05-14 17:14:43 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=C-RV32-LINUX-MULTI-ILP32D %s
|
|
|
|
|
2018-08-24 11:05:08 +08:00
|
|
|
// C-RV32-LINUX-MULTI-ILP32D: "-fuse-init-array"
|
2018-05-14 17:14:43 +08:00
|
|
|
// C-RV32-LINUX-MULTI-ILP32D: "{{.*}}/Inputs/multilib_riscv_linux_sdk/lib/gcc/riscv64-unknown-linux-gnu/7.2.0/../../../../riscv64-unknown-linux-gnu/bin{{/|\\\\}}ld"
|
|
|
|
// C-RV32-LINUX-MULTI-ILP32D: "--sysroot={{.*}}/Inputs/multilib_riscv_linux_sdk/sysroot"
|
|
|
|
// C-RV32-LINUX-MULTI-ILP32D: "-m" "elf32lriscv"
|
|
|
|
// C-RV32-LINUX-MULTI-ILP32D: "-dynamic-linker" "/lib/ld-linux-riscv32-ilp32d.so.1"
|
|
|
|
// C-RV32-LINUX-MULTI-ILP32D: "{{.*}}/Inputs/multilib_riscv_linux_sdk/lib/gcc/riscv64-unknown-linux-gnu/7.2.0/lib32/ilp32d{{/|\\\\}}crtbegin.o"
|
|
|
|
// C-RV32-LINUX-MULTI-ILP32D: "-L{{.*}}/Inputs/multilib_riscv_linux_sdk/lib/gcc/riscv64-unknown-linux-gnu/7.2.0/lib32/ilp32d"
|
|
|
|
// C-RV32-LINUX-MULTI-ILP32D: "-L{{.*}}/Inputs/multilib_riscv_linux_sdk/sysroot/lib32/ilp32d"
|
|
|
|
// C-RV32-LINUX-MULTI-ILP32D: "-L{{.*}}/Inputs/multilib_riscv_linux_sdk/sysroot/usr/lib32/ilp32d"
|
2018-01-11 21:36:56 +08:00
|
|
|
|
|
|
|
// RUN: %clang -target riscv32 %s -emit-llvm -S -o - | FileCheck %s
|
|
|
|
|
|
|
|
typedef __builtin_va_list va_list;
|
|
|
|
typedef __SIZE_TYPE__ size_t;
|
|
|
|
typedef __PTRDIFF_TYPE__ ptrdiff_t;
|
|
|
|
typedef __WCHAR_TYPE__ wchar_t;
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: @align_c = dso_local global i32 1
|
2018-01-11 21:36:56 +08:00
|
|
|
int align_c = __alignof(char);
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: @align_s = dso_local global i32 2
|
2018-01-11 21:36:56 +08:00
|
|
|
int align_s = __alignof(short);
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: @align_i = dso_local global i32 4
|
2018-01-11 21:36:56 +08:00
|
|
|
int align_i = __alignof(int);
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: @align_wc = dso_local global i32 4
|
2018-01-11 21:36:56 +08:00
|
|
|
int align_wc = __alignof(wchar_t);
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: @align_l = dso_local global i32 4
|
2018-01-11 21:36:56 +08:00
|
|
|
int align_l = __alignof(long);
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: @align_ll = dso_local global i32 8
|
2018-01-11 21:36:56 +08:00
|
|
|
int align_ll = __alignof(long long);
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: @align_p = dso_local global i32 4
|
2018-01-11 21:36:56 +08:00
|
|
|
int align_p = __alignof(void*);
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: @align_f = dso_local global i32 4
|
2018-01-11 21:36:56 +08:00
|
|
|
int align_f = __alignof(float);
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: @align_d = dso_local global i32 8
|
2018-01-11 21:36:56 +08:00
|
|
|
int align_d = __alignof(double);
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: @align_ld = dso_local global i32 16
|
2018-01-11 21:36:56 +08:00
|
|
|
int align_ld = __alignof(long double);
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: @align_vl = dso_local global i32 4
|
2018-01-11 21:36:56 +08:00
|
|
|
int align_vl = __alignof(va_list);
|
2018-01-16 01:54:52 +08:00
|
|
|
|
|
|
|
// Check types
|
|
|
|
|
|
|
|
// CHECK: zeroext i8 @check_char()
|
|
|
|
char check_char() { return 0; }
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: define dso_local signext i16 @check_short()
|
2018-01-16 01:54:52 +08:00
|
|
|
short check_short() { return 0; }
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: define dso_local i32 @check_int()
|
2018-01-16 01:54:52 +08:00
|
|
|
int check_int() { return 0; }
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: define dso_local i32 @check_wchar_t()
|
2018-01-16 01:54:52 +08:00
|
|
|
int check_wchar_t() { return 0; }
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: define dso_local i32 @check_long()
|
2018-01-16 01:54:52 +08:00
|
|
|
long check_long() { return 0; }
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: define dso_local i64 @check_longlong()
|
2018-01-16 01:54:52 +08:00
|
|
|
long long check_longlong() { return 0; }
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: define dso_local zeroext i8 @check_uchar()
|
2018-01-16 01:54:52 +08:00
|
|
|
unsigned char check_uchar() { return 0; }
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: define dso_local zeroext i16 @check_ushort()
|
2018-01-16 01:54:52 +08:00
|
|
|
unsigned short check_ushort() { return 0; }
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: define dso_local i32 @check_uint()
|
2018-01-16 01:54:52 +08:00
|
|
|
unsigned int check_uint() { return 0; }
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: define dso_local i32 @check_ulong()
|
2018-01-16 01:54:52 +08:00
|
|
|
unsigned long check_ulong() { return 0; }
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: define dso_local i64 @check_ulonglong()
|
2018-01-16 01:54:52 +08:00
|
|
|
unsigned long long check_ulonglong() { return 0; }
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: define dso_local i32 @check_size_t()
|
2018-01-16 01:54:52 +08:00
|
|
|
size_t check_size_t() { return 0; }
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: define dso_local float @check_float()
|
2018-01-16 01:54:52 +08:00
|
|
|
float check_float() { return 0; }
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: define dso_local double @check_double()
|
2018-01-16 01:54:52 +08:00
|
|
|
double check_double() { return 0; }
|
|
|
|
|
2018-02-08 06:15:33 +08:00
|
|
|
// CHECK: define dso_local fp128 @check_longdouble()
|
2018-01-16 01:54:52 +08:00
|
|
|
long double check_longdouble() { return 0; }
|