diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-12 08:08:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-12 08:08:27 +0000 |
commit | 55c9877b664c1bc6614ad588f376ef41fe6ab4ca (patch) | |
tree | c09996044c6d39baf475c20741b1901bb9ad87d6 /clang/test/Preprocessor/stdint.c | |
parent | 0fb5bbd4010e4df7c83c1c0df951cfc8dbb3e80c (diff) | |
download | bcm5719-llvm-55c9877b664c1bc6614ad588f376ef41fe6ab4ca.tar.gz bcm5719-llvm-55c9877b664c1bc6614ad588f376ef41fe6ab4ca.zip |
Generalize stdint.h for non-8-bit-multiple types, patch by
Ken Dyck!
"This adds definitions for types of 8-bit multiples
from 8 to 64 to stdint.h and rationalizes the selection of types
for the exact-width definitions in InitPreprocessor.cpp."
llvm-svn: 86977
Diffstat (limited to 'clang/test/Preprocessor/stdint.c')
-rw-r--r-- | clang/test/Preprocessor/stdint.c | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/clang/test/Preprocessor/stdint.c b/clang/test/Preprocessor/stdint.c index a1c82f4c203..2349c32b5e0 100644 --- a/clang/test/Preprocessor/stdint.c +++ b/clang/test/Preprocessor/stdint.c @@ -1,20 +1,20 @@ // RUN: clang-cc -E -ffreestanding -triple=arm-none-none %s | FileCheck -check-prefix ARM %s // -// ARM:typedef long long int int64_t; +// ARM:typedef signed long long int int64_t; // ARM:typedef unsigned long long int uint64_t; // ARM:typedef int64_t int_least64_t; // ARM:typedef uint64_t uint_least64_t; // ARM:typedef int64_t int_fast64_t; // ARM:typedef uint64_t uint_fast64_t; // -// ARM:typedef int int32_t; +// ARM:typedef signed int int32_t; // ARM:typedef unsigned int uint32_t; // ARM:typedef int32_t int_least32_t; // ARM:typedef uint32_t uint_least32_t; // ARM:typedef int32_t int_fast32_t; // ARM:typedef uint32_t uint_fast32_t; // -// ARM:typedef short int16_t; +// ARM:typedef signed short int16_t; // ARM:typedef unsigned short uint16_t; // ARM:typedef int16_t int_least16_t; // ARM:typedef uint16_t uint_least16_t; @@ -108,21 +108,21 @@ // // RUN: clang-cc -E -ffreestanding -triple=bfin-none-none %s | FileCheck -check-prefix BFIN %s // -// BFIN:typedef long long int int64_t; +// BFIN:typedef signed long long int int64_t; // BFIN:typedef unsigned long long int uint64_t; // BFIN:typedef int64_t int_least64_t; // BFIN:typedef uint64_t uint_least64_t; // BFIN:typedef int64_t int_fast64_t; // BFIN:typedef uint64_t uint_fast64_t; // -// BFIN:typedef int int32_t; +// BFIN:typedef signed int int32_t; // BFIN:typedef unsigned int uint32_t; // BFIN:typedef int32_t int_least32_t; // BFIN:typedef uint32_t uint_least32_t; // BFIN:typedef int32_t int_fast32_t; // BFIN:typedef uint32_t uint_fast32_t; // -// BFIN:typedef short int16_t; +// BFIN:typedef signed short int16_t; // BFIN:typedef unsigned short uint16_t; // BFIN:typedef int16_t int_least16_t; // BFIN:typedef uint16_t uint_least16_t; @@ -216,21 +216,21 @@ // // RUN: clang-cc -E -ffreestanding -triple=i386-none-none %s | FileCheck -check-prefix I386 %s // -// I386:typedef long long int int64_t; +// I386:typedef signed long long int int64_t; // I386:typedef unsigned long long int uint64_t; // I386:typedef int64_t int_least64_t; // I386:typedef uint64_t uint_least64_t; // I386:typedef int64_t int_fast64_t; // I386:typedef uint64_t uint_fast64_t; // -// I386:typedef int int32_t; +// I386:typedef signed int int32_t; // I386:typedef unsigned int uint32_t; // I386:typedef int32_t int_least32_t; // I386:typedef uint32_t uint_least32_t; // I386:typedef int32_t int_fast32_t; // I386:typedef uint32_t uint_fast32_t; // -// I386:typedef short int16_t; +// I386:typedef signed short int16_t; // I386:typedef unsigned short uint16_t; // I386:typedef int16_t int_least16_t; // I386:typedef uint16_t uint_least16_t; @@ -323,14 +323,14 @@ // // RUN: clang-cc -E -ffreestanding -triple=msp430-none-none %s | FileCheck -check-prefix MSP430 %s // -// MSP430:typedef long long int int32_t; -// MSP430:typedef unsigned long long int uint32_t; +// MSP430:typedef signed long int int32_t; +// MSP430:typedef unsigned long int uint32_t; // MSP430:typedef int32_t int_least32_t; // MSP430:typedef uint32_t uint_least32_t; // MSP430:typedef int32_t int_fast32_t; // MSP430:typedef uint32_t uint_fast32_t; // -// MSP430:typedef short int16_t; +// MSP430:typedef signed short int16_t; // MSP430:typedef unsigned short uint16_t; // MSP430:typedef int16_t int_least16_t; // MSP430:typedef uint16_t uint_least16_t; @@ -423,14 +423,14 @@ // // RUN: clang-cc -E -ffreestanding -triple=pic16-none-none %s | FileCheck -check-prefix PIC16 %s // -// PIC16:typedef long long int int32_t; -// PIC16:typedef unsigned long long int uint32_t; +// PIC16:typedef signed long int int32_t; +// PIC16:typedef unsigned long int uint32_t; // PIC16:typedef int32_t int_least32_t; // PIC16:typedef uint32_t uint_least32_t; // PIC16:typedef int32_t int_fast32_t; // PIC16:typedef uint32_t uint_fast32_t; // -// PIC16:typedef short int16_t; +// PIC16:typedef signed short int16_t; // PIC16:typedef unsigned short uint16_t; // PIC16:typedef int16_t int_least16_t; // PIC16:typedef uint16_t uint_least16_t; @@ -523,21 +523,21 @@ // // RUN: clang-cc -E -ffreestanding -triple=powerpc64-none-none %s | FileCheck -check-prefix PPC64 %s // -// PPC64:typedef long int int64_t; +// PPC64:typedef signed long int int64_t; // PPC64:typedef unsigned long int uint64_t; // PPC64:typedef int64_t int_least64_t; // PPC64:typedef uint64_t uint_least64_t; // PPC64:typedef int64_t int_fast64_t; // PPC64:typedef uint64_t uint_fast64_t; // -// PPC64:typedef int int32_t; +// PPC64:typedef signed int int32_t; // PPC64:typedef unsigned int uint32_t; // PPC64:typedef int32_t int_least32_t; // PPC64:typedef uint32_t uint_least32_t; // PPC64:typedef int32_t int_fast32_t; // PPC64:typedef uint32_t uint_fast32_t; // -// PPC64:typedef short int16_t; +// PPC64:typedef signed short int16_t; // PPC64:typedef unsigned short uint16_t; // PPC64:typedef int16_t int_least16_t; // PPC64:typedef uint16_t uint_least16_t; @@ -631,21 +631,21 @@ // RUN: clang-cc -E -ffreestanding -triple=powerpc-none-none %s | FileCheck -check-prefix PPC %s // // -// PPC:typedef long long int int64_t; +// PPC:typedef signed long long int int64_t; // PPC:typedef unsigned long long int uint64_t; // PPC:typedef int64_t int_least64_t; // PPC:typedef uint64_t uint_least64_t; // PPC:typedef int64_t int_fast64_t; // PPC:typedef uint64_t uint_fast64_t; // -// PPC:typedef int int32_t; +// PPC:typedef signed int int32_t; // PPC:typedef unsigned int uint32_t; // PPC:typedef int32_t int_least32_t; // PPC:typedef uint32_t uint_least32_t; // PPC:typedef int32_t int_fast32_t; // PPC:typedef uint32_t uint_fast32_t; // -// PPC:typedef short int16_t; +// PPC:typedef signed short int16_t; // PPC:typedef unsigned short uint16_t; // PPC:typedef int16_t int_least16_t; // PPC:typedef uint16_t uint_least16_t; @@ -738,21 +738,21 @@ // // RUN: clang-cc -E -ffreestanding -triple=s390x-none-none %s | FileCheck -check-prefix S390X %s // -// S390X:typedef long long int int64_t; -// S390X:typedef unsigned long long int uint64_t; +// S390X:typedef signed long int int64_t; +// S390X:typedef unsigned long int uint64_t; // S390X:typedef int64_t int_least64_t; // S390X:typedef uint64_t uint_least64_t; // S390X:typedef int64_t int_fast64_t; // S390X:typedef uint64_t uint_fast64_t; // -// S390X:typedef int int32_t; +// S390X:typedef signed int int32_t; // S390X:typedef unsigned int uint32_t; // S390X:typedef int32_t int_least32_t; // S390X:typedef uint32_t uint_least32_t; // S390X:typedef int32_t int_fast32_t; // S390X:typedef uint32_t uint_fast32_t; // -// S390X:typedef short int16_t; +// S390X:typedef signed short int16_t; // S390X:typedef unsigned short uint16_t; // S390X:typedef int16_t int_least16_t; // S390X:typedef uint16_t uint_least16_t; @@ -845,21 +845,21 @@ // // RUN: clang-cc -E -ffreestanding -triple=sparc-none-none %s | FileCheck -check-prefix SPARC %s // -// SPARC:typedef long long int int64_t; +// SPARC:typedef signed long long int int64_t; // SPARC:typedef unsigned long long int uint64_t; // SPARC:typedef int64_t int_least64_t; // SPARC:typedef uint64_t uint_least64_t; // SPARC:typedef int64_t int_fast64_t; // SPARC:typedef uint64_t uint_fast64_t; // -// SPARC:typedef int int32_t; +// SPARC:typedef signed int int32_t; // SPARC:typedef unsigned int uint32_t; // SPARC:typedef int32_t int_least32_t; // SPARC:typedef uint32_t uint_least32_t; // SPARC:typedef int32_t int_fast32_t; // SPARC:typedef uint32_t uint_fast32_t; // -// SPARC:typedef short int16_t; +// SPARC:typedef signed short int16_t; // SPARC:typedef unsigned short uint16_t; // SPARC:typedef int16_t int_least16_t; // SPARC:typedef uint16_t uint_least16_t; @@ -952,14 +952,14 @@ // // RUN: clang-cc -E -ffreestanding -triple=tce-none-none %s | FileCheck -check-prefix TCE %s // -// TCE:typedef int int32_t; +// TCE:typedef signed int int32_t; // TCE:typedef unsigned int uint32_t; // TCE:typedef int32_t int_least32_t; // TCE:typedef uint32_t uint_least32_t; // TCE:typedef int32_t int_fast32_t; // TCE:typedef uint32_t uint_fast32_t; // -// TCE:typedef short int16_t; +// TCE:typedef signed short int16_t; // TCE:typedef unsigned short uint16_t; // TCE:typedef int16_t int_least16_t; // TCE:typedef uint16_t uint_least16_t; @@ -1053,21 +1053,21 @@ // RUN: clang-cc -E -ffreestanding -triple=x86_64-none-none %s | FileCheck -check-prefix X86_64 %s // // -// X86_64:typedef long int int64_t; +// X86_64:typedef signed long int int64_t; // X86_64:typedef unsigned long int uint64_t; // X86_64:typedef int64_t int_least64_t; // X86_64:typedef uint64_t uint_least64_t; // X86_64:typedef int64_t int_fast64_t; // X86_64:typedef uint64_t uint_fast64_t; // -// X86_64:typedef int int32_t; +// X86_64:typedef signed int int32_t; // X86_64:typedef unsigned int uint32_t; // X86_64:typedef int32_t int_least32_t; // X86_64:typedef uint32_t uint_least32_t; // X86_64:typedef int32_t int_fast32_t; // X86_64:typedef uint32_t uint_fast32_t; // -// X86_64:typedef short int16_t; +// X86_64:typedef signed short int16_t; // X86_64:typedef unsigned short uint16_t; // X86_64:typedef int16_t int_least16_t; // X86_64:typedef uint16_t uint_least16_t; |