1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/Bitcode/Inputs
Filipe Cabecinhas 9afdad64ab Extract the load/store type verification to a separate function.
Summary:
Added isLoadableOrStorableType to PointerType.

We were doing some checks in some places, occasionally assert()ing instead
of telling the caller. With this patch, I'm putting all type checking in
the same place for load/store type instructions, and verifying the same
thing every time.

I also added a check for load/store of a function type.

Applied extracted check to Load, Store, and Cmpxcg.

I don't have exhaustive tests for all of these, but all Error() calls in
TypeCheckLoadStoreInst are being tested (in invalid.test).

Reviewers: dblaikie, rafael

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D9785

llvm-svn: 237619
2015-05-18 21:48:55 +00:00
..
invalid-abbrev-fixed-size-too-big.bc Verify sizes when trying to read a BitcodeAbbrevOp 2015-04-23 13:25:35 +00:00
invalid-abbrev-vbr-size-too-big.bc Verify sizes when trying to read a BitcodeAbbrevOp 2015-04-23 13:25:35 +00:00
invalid-abbrev.bc
invalid-align.bc Use common parse routine to read alignment values from bitcode 2015-02-22 19:32:03 +00:00
invalid-array-element-type.bc Make sure that isValidElementType(Type) before calling {Array,Struct}Type::get(Type) 2015-04-29 01:27:01 +00:00
invalid-array-op-not-2nd-to-last.bc Turn an assert into report_fatal_error since it's reachable based on user input 2015-04-29 01:58:31 +00:00
invalid-array-type.bc Be more strict about the operand for the array type in BitcodeReader 2015-04-23 13:38:21 +00:00
invalid-bad-abbrev-number.bc
invalid-bitwidth.bc Check bit widths before trying to get a type. 2015-01-30 18:13:50 +00:00
invalid-call-mismatched-explicit-type.bc [opaque pointer type] Explicit pointee type for call instruction 2015-04-17 06:40:14 +00:00
invalid-call-non-function-explicit-type.bc [opaque pointer type] Explicit pointee type for call instruction 2015-04-17 06:40:14 +00:00
invalid-extract-0-indices.bc [BitcodeReader] Don't allow INSERTVAL/EXTRACTVAL with 0 indices 2015-05-16 00:33:12 +00:00
invalid-extractval-array-idx.bc [Bitcode reader] Fix a few assertions when reading invalid files 2015-02-16 00:03:11 +00:00
invalid-extractval-struct-idx.bc [Bitcode reader] Fix a few assertions when reading invalid files 2015-02-16 00:03:11 +00:00
invalid-extractval-too-many-idxs.bc [Bitcode reader] Fix a few assertions when reading invalid files 2015-02-16 00:03:11 +00:00
invalid-fp-shift.bc Have more strict type checks when creating BinOp nodes in BitcodeReader 2015-04-22 09:06:21 +00:00
invalid-fwdref-type-mismatch.bc Relax an assert when there's a type mismatch in forward references 2015-04-28 20:18:47 +00:00
invalid-GCTable-overflow.bc Don't overflow GCTable 2015-04-30 04:09:41 +00:00
invalid-gep-mismatched-explicit-type.bc Test bitcode parsing error-handling for incorrect explicit type 2015-03-16 21:35:48 +00:00
invalid-gep-operator-mismatched-explicit-type.bc Add testing for mismatched explicit type on a gep operator when loading from bitcode 2015-03-16 22:03:50 +00:00
invalid-insert-0-indices.bc [BitcodeReader] Don't allow INSERTVAL/EXTRACTVAL with 0 indices 2015-05-16 00:33:12 +00:00
invalid-insertval-array-idx.bc [Bitcode reader] Fix a few assertions when reading invalid files 2015-02-16 00:03:11 +00:00
invalid-insertval-struct-idx.bc [Bitcode reader] Fix a few assertions when reading invalid files 2015-02-16 00:03:11 +00:00
invalid-insertval-too-many-idxs.bc [Bitcode reader] Fix a few assertions when reading invalid files 2015-02-16 00:03:11 +00:00
invalid-invoke-mismatched-explicit-type.bc [opaque pointer type] bitcode: add explicit callee type to invoke instructions 2015-04-24 18:06:06 +00:00
invalid-invoke-non-function-explicit-type.bc [opaque pointer type] bitcode: add explicit callee type to invoke instructions 2015-04-24 18:06:06 +00:00
invalid-load-mismatched-explicit-type.bc Add testing for mismatched explicit type on a load instruction when loading from bitcode 2015-03-16 21:48:46 +00:00
invalid-load-pointer-type.bc Make sure Op->getType() is a PointerType before we cast<> it. 2015-04-30 01:13:31 +00:00
invalid-load-ptr-type.bc Extract the load/store type verification to a separate function. 2015-05-18 21:48:55 +00:00
invalid-no-proper-module.bc Error out of ParseBitcodeInto(Module*) if we haven't read a Module 2015-04-14 14:07:15 +00:00
invalid-non-vector-extractelement.bc [BitcodeReader] Fix asserts when we read a non-vector type for insert/extract/shuffle 2015-04-24 11:30:15 +00:00
invalid-non-vector-insertelement.bc [BitcodeReader] Fix asserts when we read a non-vector type for insert/extract/shuffle 2015-04-24 11:30:15 +00:00
invalid-non-vector-shufflevector.bc [BitcodeReader] Fix asserts when we read a non-vector type for insert/extract/shuffle 2015-04-24 11:30:15 +00:00
invalid-pointer-element-type.bc Check that we have a valid PointerType element type before calling get() 2015-04-29 02:27:28 +00:00
invalid-pr20485.bc
invalid-too-big-fwdref.bc Make sure we don't resize(0) when we get a fwdref with Idx == UINT_MAX 2015-04-30 00:52:42 +00:00
invalid-type-table-forward-ref.bc [bitcode reader] Fix an assert on invalid type tables 2015-01-30 10:57:58 +00:00
invalid-unexpected-eof.bc
invalid-vector-element-type.bc Make sure that isValidElementType(Type) before calling {Array,Struct}Type::get(Type) 2015-04-29 01:27:01 +00:00