hanchenye-llvm-project/clang/test/CodeGen
Chris Lattner 4f8a2e22c0 fix some cfstring related issues:
1) -fwritable-string does affect the non-utf16 version of cfstrings
   just not the utf16 ones.
2) utf16 strings should always be marked constant, as the __TEXT segment
   is readonly.
3) The name of the global doesn't matter, remove it from TargetInfo.
4) Trust the asmprinter to drop cstrings into the right section, like llvmgcc does now.

This fixes rdar://7115750

llvm-svn: 84077
2009-10-14 05:55:45 +00:00
..
2007-11-29-ArraySizeFromInitializer.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
2008-02-07-bitfield-bug.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
2008-02-08-bitfield-bug.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
2008-02-26-inline-asm-bug.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
2008-07-17-no-emit-on-error.c MultiTestRunner: Validate '&&' at the end of RUN lines. 2009-07-25 11:27:37 +00:00
2008-07-21-mixed-var-fn-decl.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
2008-07-22-bitfield-init-after-zero-len-array.c convert to filecheck and force a triple so that this passes on big 2009-08-27 23:22:19 +00:00
2008-07-22-packed-bitfield-access.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
2008-07-29-override-alias-decl.c Prep for new warning. 2009-07-21 20:52:43 +00:00
2008-07-30-implicit-initialization.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
2008-07-30-redef-of-bitcasted-decl.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
2008-07-31-asm-labels.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
2008-07-31-promotion-of-compound-pointer-arithmetic.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
2008-08-04-void-pointer-arithmetic.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
2008-08-19-cast-of-typedef.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
2008-08-25-incompatible-cond-expr.m Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
2008-09-22-bad-switch-type.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
2008-12-02-logical-or-fold.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
2009-01-21-invalid-debug-info.m Prep for new warning. 2009-07-21 20:52:43 +00:00
2009-03-22-increment-bitfield.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
2009-04-23-dbg.c Update clang for raw_fd_ostream no longer requiring F_Force. 2009-08-25 15:36:09 +00:00
2009-05-22-callingconv.c Add a target triple to a couple of tests which depend on it. Reported 2009-06-18 02:04:19 +00:00
2009-05-28-const-typedef.c PR4281: Fix bogus CodeGen assertion. The issue is that 2009-05-28 23:04:00 +00:00
2009-06-01-addrofknr.c Revert this, was a bug in my new warning code, not the test case. 2009-07-21 23:50:15 +00:00
2009-06-14-anonymous-union-init.c PR4390: Make sure to handle anonymous unions correctly while building 2009-06-14 21:41:37 +00:00
2009-07-31-DbgDeclare.c New test case for rev. 77694. 2009-07-31 18:24:12 +00:00
2009-08-14-vararray-crash.c Fix for PR4721: adjust CodeGen and ASTContext so that we have a 2009-08-15 02:50:32 +00:00
OpaqueStruct.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR2001-bitfield-reload.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR2413-void-address-cast-error.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR2643-null-store-to-bitfield.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR2743-reference-missing-static.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR3130-cond-constant.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR3589-freestanding-libcalls.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR3613-static-decl.c Enable the new struct type builder now that the constant struct builder works. (The old code will still be there until we know that everything works well. 2009-07-27 15:31:55 +00:00
PR3709-int-to-pointer-sign.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR4611-bitfield-layout.c Enable the new struct type builder now that the constant struct builder works. (The old code will still be there until we know that everything works well. 2009-07-27 15:31:55 +00:00
PR5060-align.c Set alignment on static function level decls and VLAs. Fixes PR5060. 2009-09-26 18:16:06 +00:00
address-space-cast.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
address-space-compound-literal.c Make address-space qualification work correctly for compound literals. 2009-08-26 20:01:39 +00:00
address-space-field1.c Tweak CHECK lines to eliminate a failure on i686-apple-darwin10 2009-09-30 21:39:51 +00:00
address-space-field2.c Convert some tests to FileCheck to be more portable. Patch by John Thompson. 2009-10-08 21:52:07 +00:00
address-space-field3.c Convert some tests to FileCheck to be more portable. Patch by John Thompson. 2009-10-08 21:52:07 +00:00
address-space-field4.c Convert some tests to FileCheck to be more portable. Patch by John Thompson. 2009-10-08 21:52:07 +00:00
address-space.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
alias.c Diagnose uses of function specifiers on declarations which don't declare 2009-04-07 19:37:57 +00:00
align-local.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
alignof.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
always_inline.c Fix PR4372, another case where non-prototyped functions can prevent 2009-06-13 00:26:38 +00:00
arm-arguments.c ARM/[A]APCS: Ignore empty records passed as arguments. 2009-09-14 21:54:03 +00:00
arm_asm_clobber.c Add ARM register names and aliases. 2009-09-17 07:03:19 +00:00
array.c Add noreturn as a type attribute, handle printing for them and handle 2009-07-25 21:26:53 +00:00
asm-2.c Remove the -arch option from clang-cc: for all practical purposes, it's 2009-05-19 11:12:40 +00:00
asm-inout.c Revert the fix for PR3800, it broke things. 2009-08-04 18:18:36 +00:00
asm.c fix PR4938 by recognizing % as a modifier on outputs, 2009-10-13 04:32:07 +00:00
atomic.c Fix a use-of-undefined, IRgen expects the RValue for "void" to be a scalar RValue. 2009-05-27 23:45:33 +00:00
attr-cleanup.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
attr-nodebug.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
attr-noinline.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
attr-used.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
attributes.c Add codegen for __builtin_abort. Convert to FileCheck. 2009-10-06 22:58:45 +00:00
bitfield-assign.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
bitfield-init.c Fix crash with constant initialization of bit-fields in unions. 2009-05-07 23:42:42 +00:00
bitfield-promote.c Implement bit-field promotion rules for C99. Fixes PR3500. 2009-05-01 20:41:21 +00:00
bitfield.c Simplify run line. 2009-06-01 08:55:08 +00:00
blocks-1.c Fixup codegen for nested blocks that use copy/dispose in the inner 2009-04-10 18:52:28 +00:00
blocks-2.c Disable tests that check debug info intrinsic. This does not work if debug info intrinsics are not used to encode debug info. 2009-10-12 23:46:58 +00:00
blocks-aligned-byref-variable.c Fix another byref bug. This should hopefully get QuickLookPlugins building successfully. 2009-09-13 17:55:13 +00:00
blocks-seq.c Make the forwarding member of block byref structs be a pointer to the block byref struct itself. 2009-09-10 01:32:12 +00:00
blocks.c Don't assert when we think we need copy/dispose, but don't need them. 2009-05-01 01:31:57 +00:00
bool-bitfield.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
bool-convert.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
bool-init.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
boolassign.c Prep for new warning. 2009-07-21 20:52:43 +00:00
builtin-attributes.c Fix subtle bug in generating LLVM function declarations for builtin functions. 2009-09-14 04:33:21 +00:00
builtin-count-zeros.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
builtin-memfns.c Remove the -arch option from clang-cc: for all practical purposes, it's 2009-05-19 11:12:40 +00:00
builtin-nanf.c Improve __builtin_nanf support; we now can deal with them as constants. 2009-05-30 03:56:50 +00:00
builtin-rename.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
builtin-stackaddress.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
builtin-unwind-init.c Add support for __builtin_unwind_init. 2009-06-02 09:37:50 +00:00
builtinmemcpy.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
builtins-ffs_parity_popcount.c MultiTestRunner: Validate '&&' at the end of RUN lines. 2009-07-25 11:27:37 +00:00
builtins-powi.c MultiTestRunner: Validate '&&' at the end of RUN lines. 2009-07-25 11:27:37 +00:00
builtins-x86.c Remove a few more vector builtins. 2009-06-07 09:32:56 +00:00
builtins.c PR4836, part 2: CodeGen for __builtin_isnan. 2009-09-01 04:19:44 +00:00
builtinshufflevector.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
c-strings.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
call-knr-indirect.c testcase for r72869, it turns out that it happens in Ruby. 2009-06-16 17:39:02 +00:00
cast-to-union.c Convert some tests to FileCheck to be more portable. Patch by John Thompson. 2009-10-08 21:52:07 +00:00
cast.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
cfstring.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
cfstring2.c remove #include of system header, making this a) not apple specific, and 2009-04-15 04:26:10 +00:00
cleanup-stack.c Make cleanup-stack.c test stronger, and work in release-asserts mode. 2009-05-11 22:30:29 +00:00
complex.c Change compound assignment operators to keep track of both the promoted 2009-03-28 01:22:36 +00:00
compound-literal.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
compound-type.c Change compound assignment operators to keep track of both the promoted 2009-03-28 01:22:36 +00:00
compound.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
conditional-gnu-ext.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
conditional.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
const-init.c In VC++, the *printf functions put an extra "0" in the exponent part 2009-10-08 21:57:41 +00:00
const-label-addr.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
constant-comparison.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
constructor-attribute.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
cxx-condition.cpp Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
cxx-default-arg.cpp Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
cxx-value-init.cpp Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
darwin-string-literals.c fix some cfstring related issues: 2009-10-14 05:55:45 +00:00
debug-info.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
designated-initializers.c Enable the new constant struct builder by default. The old code is still in place but will be removed shortly. The new struct builder works on big endian systems. 2009-07-27 05:54:15 +00:00
dllimport-dllexport.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
dostmt.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
emit-all-decls.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
empty-union-init.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
enum.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
exprs.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
ext-vector-shuffle.c MultiTestRunner: Validate '&&' at the end of RUN lines. 2009-07-25 11:27:37 +00:00
ext-vector.c Make vectorized floating-point comparisons work without crashing. 2009-07-22 06:07:16 +00:00
extern-block-var.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
flexible-array-init.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
func-decl-cleanup.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
func-return-member.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
function-attributes.c Prep for new warning. 2009-07-21 20:52:43 +00:00
function-decay.m don't dump .ll file in this dir. 2009-04-18 07:00:06 +00:00
functions.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
global-decls.c Prep for new warning. 2009-07-21 20:52:43 +00:00
global-init.c these tests include section specifiers that aren't valid on the 2009-08-10 18:56:44 +00:00
global-with-initialiser.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
globalinit.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
illegal-UTF8.m Avoid generating temp in source directory 2009-05-14 17:00:11 +00:00
incomplete-function-type.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
indirect-goto.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
init-with-member-expr.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
init.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
inline.c Rework the way we determine whether an externally visible symbol is 2009-09-13 07:46:26 +00:00
inline2.c Rework the way we determine whether an externally visible symbol is 2009-09-13 07:46:26 +00:00
int-to-pointer.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
kr-func-promote.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
kr-style-block.c pass -fblocks 2009-04-11 19:49:49 +00:00
libcalls.c Add a target triple to a couple of tests which depend on it. Reported 2009-06-18 02:04:19 +00:00
lineno-dbginfo.c Fix test, which could miss failures, and also avoid leaving temporary .i file in 2009-06-08 22:44:26 +00:00
linkage-redecl.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
long-double-x86.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
mandel.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
mangle.c Remove the -arch option from clang-cc: for all practical purposes, it's 2009-05-19 11:12:40 +00:00
merge-attrs.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
merge-statics.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
no-common.c Driver: Forward -fno-common to clang. 2009-03-26 16:37:00 +00:00
offsetof.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
opaque-pointer.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
overloadable.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
packed-union.c Packed unions should be packed. Fixes an assert Daniel reported. 2009-09-02 17:51:33 +00:00
parameter-passing.c Fix some made up triples. 2009-08-18 05:30:27 +00:00
pascal-string.c Fix pascal string support; testcase from mailing list message. 2009-04-01 03:17:08 +00:00
pointer-arithmetic.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
pointer-cmp-type.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
pointer-to-int.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
pragma-pack-1.c We don't need to keep track of the packed alignment, just whether the struct is packed or not. Fixes PR4610. 2009-07-23 17:24:40 +00:00
pragma-pack-2.c Add tests. 2009-08-08 19:43:14 +00:00
pragma-pack-3.c If the alignment of the chosen field in a union is greater than the alignment of the union, we need to use a packed LLVM struct. Fixes <rdar://problem/7184250>. 2009-09-03 22:56:02 +00:00
pragma-weak.c convert this to filecheck, hopefully it will fix PR4888. If nothing 2009-09-08 18:43:45 +00:00
predefined-expr.c Don't use the PredefinedExpr string as the global variable name, these don't 2009-09-12 23:06:21 +00:00
private-extern.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
rdr-6098585-default-after-caserange.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
rdr-6098585-default-fallthrough-to-caserange.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
rdr-6098585-empty-case-range.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
rdr-6098585-fallthrough-to-empty-range.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
rdr-6098585-unsigned-caserange.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
rdr-6732143-dangling-block-reference.m Fix a subtle bug where the cleanup scope entries had a dangling block reference 2009-04-01 04:37:47 +00:00
regparm.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
shared-string-literals.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
sizeof-vla.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
stack-protector.c Speed up testing by avoiding stdio.h, also helps testing on windows. 2009-10-08 23:05:06 +00:00
statements.c Teach sema and codegen about the difference between address of labels, 2009-10-13 07:14:16 +00:00
static-forward-decl-fun.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
static-forward-decl.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
static-local-union.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
static-order.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
staticinit.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
stdcall-fastcall.c MultiTestRunner: Validate '&&' at the end of RUN lines. 2009-07-25 11:27:37 +00:00
string-init.c codegen string literals using private linkage now like llvm-gcc, eliminating 2009-07-16 05:03:48 +00:00
string-literal.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
struct-comma.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
struct-copy.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
struct-init.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
struct-passing.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
struct-x86-darwin.c Enable the new struct type builder now that the constant struct builder works. (The old code will still be there until we know that everything works well. 2009-07-27 15:31:55 +00:00
struct.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
switch.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
target-data.c Add stack alignment to x86_64 target data. 2009-06-08 22:39:13 +00:00
tentative-decls.c Add testcase that illustrates the problem from r69699 regarding tentative definitions of statics 2009-05-01 15:45:53 +00:00
thread-specifier.c Print an error for uses of __thread on targets which don't support it. 2009-04-19 21:48:33 +00:00
trapv.c Oops, almost forgot the testcases. 2009-04-02 01:14:26 +00:00
typedef-func.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
typedef.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
types.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
uint128_t.c only support int128_t on 64-bit and larger targets. 32-bit targets don't 2009-04-30 06:18:40 +00:00
union-init.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
union-init2.c Make test a bit more precise. 2009-08-15 03:35:55 +00:00
union.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
unreachable.c Detect when the current generation point is unreachable after emitting 2009-07-19 08:23:12 +00:00
unwind-attr.c Prep for new warning. 2009-07-21 20:52:43 +00:00
var-align.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
variable-array.c PR3247: Handle a couple of cases where we weren't emitting VLA sizes (and 2009-04-20 03:54:15 +00:00
vector.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
visibility.c MultiTestRunner: Validate '&&' at the end of RUN lines. 2009-07-25 11:27:37 +00:00
vla.c Re-add a slightly more general version of the check from r72578; it is 2009-05-29 19:23:46 +00:00
volatile-1.c We don't want to validate bad code, 2009-05-29 16:24:13 +00:00
volatile.c Semantic checking for main(). 2009-07-25 04:36:53 +00:00
weak-global.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
weak-incomplete.c Handle the edge case of a weak function with incomplete type correctly. 2009-05-26 01:22:57 +00:00
whilestmt.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
writable-strings.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
x86.c MultiTestRunner: Validate '&&' at the end of RUN lines. 2009-07-25 11:27:37 +00:00
x86_32-arguments.c Darwin/x86-32: Enumerated types and block pointer types in structures were not 2009-09-24 05:12:36 +00:00
x86_64-arguments.c Fix a few tests to be -Asserts agnostic. 2009-08-23 19:28:59 +00:00