2015-01-24 04:15:05 +00:00
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-pr20485.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=INVALID-ENCODING %s
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=BAD-ABBREV %s
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-unexpected-eof.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=UNEXPECTED-EOF %s
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-bad-abbrev-number.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=BAD-ABBREV-NUMBER %s
|
2015-01-30 18:13:50 +00:00
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-type-table-forward-ref.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=BAD-TYPE-TABLE-FORWARD-REF %s
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-bitwidth.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=BAD-BITWIDTH %s
|
2015-02-22 19:32:03 +00:00
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-align.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=BAD-ALIGN %s
|
2015-03-16 21:35:48 +00:00
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-gep-mismatched-explicit-type.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=MISMATCHED-EXPLICIT-GEP %s
|
2015-03-16 21:48:46 +00:00
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-load-mismatched-explicit-type.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=MISMATCHED-EXPLICIT-LOAD %s
|
2015-03-16 22:03:50 +00:00
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-gep-operator-mismatched-explicit-type.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=MISMATCHED-EXPLICIT-GEP-OPERATOR %s
|
2015-04-17 06:40:14 +00:00
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-call-mismatched-explicit-type.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=MISMATCHED-EXPLICIT-CALL %s
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-call-non-function-explicit-type.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=NON-FUNCTION-EXPLICIT-CALL %s
|
2015-01-24 04:15:05 +00:00
|
|
|
|
|
|
|
INVALID-ENCODING: Invalid encoding
|
|
|
|
BAD-ABBREV: Abbreviation starts with an Array or a Blob
|
|
|
|
UNEXPECTED-EOF: Unexpected end of file
|
|
|
|
BAD-ABBREV-NUMBER: Invalid abbrev number
|
2015-01-30 18:13:50 +00:00
|
|
|
BAD-TYPE-TABLE-FORWARD-REF: Invalid TYPE table: Only named structs can be forward referenced
|
|
|
|
BAD-BITWIDTH: Bitwidth for integer type out of range
|
2015-02-22 19:32:03 +00:00
|
|
|
BAD-ALIGN: Invalid alignment value
|
2015-03-16 21:35:48 +00:00
|
|
|
MISMATCHED-EXPLICIT-GEP: Explicit gep type does not match pointee type of pointer operand
|
2015-03-16 21:48:46 +00:00
|
|
|
MISMATCHED-EXPLICIT-LOAD: Explicit load type does not match pointee type of pointer operand
|
2015-03-16 22:03:50 +00:00
|
|
|
MISMATCHED-EXPLICIT-GEP-OPERATOR: Explicit gep operator type does not match pointee type of pointer operand
|
2015-04-17 06:40:14 +00:00
|
|
|
MISMATCHED-EXPLICIT-CALL: Explicit call type does not match pointee type of callee operand
|
|
|
|
NON-FUNCTION-EXPLICIT-CALL: Explicit call type is not a function type
|
2015-02-16 00:03:11 +00:00
|
|
|
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-extractval-array-idx.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=EXTRACT-ARRAY %s
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-extractval-struct-idx.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=EXTRACT-STRUCT %s
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-extractval-too-many-idxs.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=EXTRACT-IDXS %s
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-insertval-array-idx.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=INSERT-ARRAY %s
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-insertval-struct-idx.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=INSERT-STRUCT %s
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-insertval-too-many-idxs.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=INSERT-IDXS %s
|
|
|
|
|
|
|
|
|
|
|
|
EXTRACT-ARRAY: EXTRACTVAL: Invalid array index
|
|
|
|
EXTRACT-STRUCT: EXTRACTVAL: Invalid struct index
|
|
|
|
EXTRACT-IDXS: EXTRACTVAL: Invalid type
|
|
|
|
INSERT-ARRAY: INSERTVAL: Invalid array index
|
|
|
|
INSERT-STRUCT: INSERTVAL: Invalid struct index
|
|
|
|
INSERT-IDXS: INSERTVAL: Invalid type
|
2015-04-14 14:07:15 +00:00
|
|
|
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-no-proper-module.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=NO-MODULE %s
|
|
|
|
|
|
|
|
NO-MODULE: Malformed IR file
|
2015-04-22 09:06:21 +00:00
|
|
|
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-fp-shift.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=FP-SHIFT %s
|
|
|
|
|
|
|
|
FP-SHIFT: Invalid record
|
2015-04-23 13:25:35 +00:00
|
|
|
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev-vbr-size-too-big.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=HUGE-ABBREV-OP %s
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-abbrev-fixed-size-too-big.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=HUGE-ABBREV-OP %s
|
|
|
|
|
|
|
|
HUGE-ABBREV-OP: Fixed or VBR abbrev record with size > MaxChunkData
|
2015-04-23 13:38:21 +00:00
|
|
|
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-array-type.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=ARRAY-TYPE %s
|
|
|
|
|
|
|
|
ARRAY-TYPE: Array element type can't be an Array or a Blob
|
2015-04-24 11:30:15 +00:00
|
|
|
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-non-vector-extractelement.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=INVALID-TYPE %s
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-non-vector-insertelement.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=INVALID-TYPE %s
|
|
|
|
RUN: not llvm-dis -disable-output %p/Inputs/invalid-non-vector-shufflevector.bc 2>&1 | \
|
|
|
|
RUN: FileCheck --check-prefix=INVALID-TYPE %s
|
|
|
|
|
|
|
|
INVALID-TYPE: Invalid type for value
|