clang-1/test/CodeGen
Eli Friedman 386ca78d0b Fix for PR5709: use the computed type of the declaration instead of the
type of the builtin when generating the function declaration for a builtin
library call.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90936 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-09 03:05:59 +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 Fix some codegen tests to include positive checks. 2009-11-20 17:23:39 +00:00
2008-07-21-mixed-var-fn-decl.c Convert a few tests to FileCheck for PR5307. 2009-10-26 20:49:20 +00:00
2008-07-22-bitfield-init-after-zero-len-array.c Normalize options to use '-FOO' instead of '--FOO'. 2009-11-29 09:33:10 +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 Fix some tests in -Asserts mode. 2009-11-11 03:48:26 +00:00
2008-07-30-implicit-initialization.c Normalize options to use '-FOO' instead of '--FOO'. 2009-11-29 09:33:10 +00:00
2008-07-30-redef-of-bitcasted-decl.c Normalize options to use '-FOO' instead of '--FOO'. 2009-11-29 09:33:10 +00:00
2008-07-31-asm-labels.c Eliminate &&s in tests. 2009-11-08 01:45:36 +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 Normalize options to use '-FOO' instead of '--FOO'. 2009-11-29 09:33:10 +00:00
2008-08-19-cast-of-typedef.c Normalize options to use '-FOO' instead of '--FOO'. 2009-11-29 09:33:10 +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
2009-10-20-GlobalDebug.c MIPS linkage name confuses gdb here. Generate and test DW_AT_name here. 2009-11-07 00:41:37 +00:00
OpaqueStruct.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR2001-bitfield-reload.c Update a test to FileCheck. 2009-11-22 18:56:40 +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 Don't #include <stdio.h> when tests don't need it, or use clang instead of clang-cc when they do. 2009-11-17 08:57:36 +00:00
PR3613-static-decl.c Eliminate &&s in tests. 2009-11-08 01:45:36 +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 Eliminate &&s in tests. 2009-11-08 01:45:36 +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 Fix some tests in -Asserts mode. 2009-11-11 03:48:26 +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 Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
alias.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
align-local.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
alignof.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
always_inline.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
arm-arguments.c Driver: Use '-target-abi' 'FOO' instead of '-target-abi=FOO'. 2009-11-20 22:32:30 +00:00
arm_asm_clobber.c Use clang-cc in this test. 2009-12-08 19:49:40 +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 Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
asm-inout.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
asm.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
atomic.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
attr-cleanup.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
attr-nodebug.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
attr-noinline.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
attr-used.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
attributes.c And now a test fix in +Asserts mode, which I broke. 2009-11-11 03:48:34 +00:00
bitfield-assign.c Eliminate &&s in tests. 2009-11-08 01:45:36 +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 Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
bitfield.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
blocks-1.c Don't #include <stdio.h> when tests don't need it, or use clang instead of clang-cc when they do. 2009-11-17 08:57:36 +00:00
blocks-2.c Remove unnecessary &&s. 2009-11-17 22:25:07 +00:00
blocks-aligned-byref-variable.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
blocks-seq.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
blocks.c Remove RUN: true lines. 2009-11-08 01:47:25 +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 Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
builtin-memfns.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
builtin-nanf.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
builtin-rename.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
builtin-stackaddress.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
builtin-unwind-init.c Convert a few tests to FileCheck for PR5307. 2009-10-26 20:49:20 +00:00
builtinmemcpy.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
builtins-x86.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
builtins.c Don't #include <stdio.h> when tests don't need it, or use clang instead of clang-cc when they do. 2009-11-17 08:57:36 +00:00
builtinshufflevector.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
c-strings.c Eliminate &&s in tests. 2009-11-08 01:45:36 +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.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 Eliminate &&s in tests. 2009-11-08 01:45:36 +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 Eliminate &&s in tests. 2009-11-08 01:45: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 PR5526: Make sure to set the right cast kinds for the inserted implicit casts. 2009-11-17 01:22:05 +00:00
const-init.c Use intptr_t from stdint.h (in freestanding mode) instead of redefining it here 2009-11-22 18:29:06 +00:00
const-label-addr.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
constant-comparison.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
constructor-attribute.c Don't #include <stdio.h> when tests don't need it, or use clang instead of clang-cc when they do. 2009-11-17 08:57:36 +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 Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
debug-info.c Normalize options to use '-FOO' instead of '--FOO'. 2009-11-29 09:33:10 +00:00
decl.c Remove include of system header. 2009-12-08 21:52:24 +00:00
designated-initializers.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
dllimport-dllexport.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
dostmt.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
emit-all-decls.c Eliminate &&s in tests. 2009-11-08 01:45:36 +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 add 'F' to a bunch of libm builtins so that codegen doesn't die on them, 2009-12-07 02:09:14 +00:00
ext-vector-shuffle.c Eliminate &&s in tests. 2009-11-08 01:45:36 +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 Convert test to FileCheck. 2009-11-20 23:46:56 +00:00
func-decl-cleanup.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
func-return-member.c Fix some codegen tests to include positive checks. 2009-11-20 17:23:39 +00:00
function-attributes.c Set OptimizeForSize LLVM function attribute with -Os. 2009-10-27 19:48:08 +00:00
function-decay.m don't dump .ll file in this dir. 2009-04-18 07:00:06 +00:00
functions.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
global-decls.c Remove RUN: true lines. 2009-11-08 01:47:25 +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 Fix some codegen tests to include positive checks. 2009-11-20 17:23:39 +00:00
indirect-goto.c make this interpretable. 2009-10-29 05:25:27 +00:00
init-with-member-expr.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
init.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
inline.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
inline2.c Eliminate &&s in tests. 2009-11-08 01:45:36 +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 Switch -f{builtin,math-errno,rtti} and -analyzer-purge-dead to -...no... variants instead of using llvm:🆑:init(true) arguments. 2009-11-19 04:55:23 +00:00
lineno-dbginfo.c Eliminate &&s in tests. 2009-11-08 01:45:36 +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 Don't #include <stdio.h> when tests don't need it, or use clang instead of clang-cc when they do. 2009-11-17 08:57:36 +00:00
mangle.c Mangle based on the declaration we're given, not the canonical 2009-10-28 16:31:34 +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 Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
object-size.c Switch over to checking .ll files instead of .s files. 2009-12-07 19:22:29 +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 Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
parameter-passing.c Remove RUN: true lines. 2009-11-08 01:47:25 +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 Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
pragma-pack-3.c Eliminate &&s in tests. 2009-11-08 01:45:36 +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 #include <stdio.h> when tests don't need it, or use clang instead of clang-cc when they do. 2009-11-17 08:57:36 +00:00
private-extern.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
rdr-6098585-default-after-caserange.c Normalize options to use '-FOO' instead of '--FOO'. 2009-11-29 09:33:10 +00:00
rdr-6098585-default-fallthrough-to-caserange.c Normalize options to use '-FOO' instead of '--FOO'. 2009-11-29 09:33:10 +00:00
rdr-6098585-empty-case-range.c Normalize options to use '-FOO' instead of '--FOO'. 2009-11-29 09:33:10 +00:00
rdr-6098585-fallthrough-to-empty-range.c Normalize options to use '-FOO' instead of '--FOO'. 2009-11-29 09:33:10 +00:00
rdr-6098585-unsigned-caserange.c Normalize options to use '-FOO' instead of '--FOO'. 2009-11-29 09:33:10 +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 Use '-FOO' 'BAR' instead of '-FOO=BAR' for FOO in -stack-protector, -fvisibility, and -fconstant-string-class. 2009-11-29 09:33:20 +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 Fix some codegen tests to include positive checks. 2009-11-20 17:23:39 +00:00
staticinit.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
stdcall-fastcall.c Eliminate &&s in tests. 2009-11-08 01:45:36 +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 Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
struct-x86-darwin.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
struct.c Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
switch.c Fix some codegen tests to include positive checks. 2009-11-20 17:23:39 +00:00
target-data.c Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
tentative-decls.c Remove RUN: true lines. 2009-11-08 01:47:25 +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 Eliminate &&s in tests. 2009-11-08 01:45:36 +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 clang emit undefs for padding of structs and unions instead of zeros. this enables constant compaction optimizations. 2009-10-29 11:27:06 +00:00
union.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
unreachable.c Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
unwind-attr.c Eliminate &&s in tests. 2009-11-08 01:45:36 +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 Pass '-mcpu' 'FOO' instead of '-mcpu=FOO'. 2009-11-20 22:21:52 +00:00
vfprintf.c Fix for PR5709: use the computed type of the declaration instead of the 2009-12-09 03:05:59 +00:00
visibility.c Use '-FOO' 'BAR' instead of '-FOO=BAR' for FOO in -stack-protector, -fvisibility, and -fconstant-string-class. 2009-11-29 09:33:20 +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 Don't #include <stdio.h> when tests don't need it, or use clang instead of clang-cc when they do. 2009-11-17 08:57:36 +00:00
volatile.c Eliminate &&s in tests. 2009-11-08 01:45:36 +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 Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
x86_32-arguments.c Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
x86_64-arguments.c Remove RUN: true lines. 2009-11-08 01:47:25 +00:00