mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
Update generated files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55972 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e435a5d937
commit
d8ee59b0ca
File diff suppressed because it is too large
Load Diff
@ -366,7 +366,7 @@
|
||||
|
||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||
typedef union YYSTYPE
|
||||
#line 970 "/Volumes/Nanpura/fn_prop/llvm/lib/AsmParser/llvmAsmParser.y"
|
||||
#line 970 "/Users/gohman/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
|
||||
{
|
||||
llvm::Module *ModuleVal;
|
||||
llvm::Function *FunctionVal;
|
||||
|
@ -3097,8 +3097,6 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef {
|
||||
| ICMP IPredicates Types ValueRef ',' ValueRef {
|
||||
if (!UpRefs.empty())
|
||||
GEN_ERROR("Invalid upreference in type: " + (*$3)->getDescription());
|
||||
if (isa<VectorType>((*$3).get()))
|
||||
GEN_ERROR("Vector types not supported by icmp instruction");
|
||||
Value* tmpVal1 = getVal(*$3, $4);
|
||||
CHECK_FOR_ERROR
|
||||
Value* tmpVal2 = getVal(*$3, $6);
|
||||
@ -3111,8 +3109,6 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef {
|
||||
| FCMP FPredicates Types ValueRef ',' ValueRef {
|
||||
if (!UpRefs.empty())
|
||||
GEN_ERROR("Invalid upreference in type: " + (*$3)->getDescription());
|
||||
if (isa<VectorType>((*$3).get()))
|
||||
GEN_ERROR("Vector types not supported by fcmp instruction");
|
||||
Value* tmpVal1 = getVal(*$3, $4);
|
||||
CHECK_FOR_ERROR
|
||||
Value* tmpVal2 = getVal(*$3, $6);
|
||||
@ -3133,7 +3129,7 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef {
|
||||
CHECK_FOR_ERROR
|
||||
$$ = CmpInst::Create($1, $2, tmpVal1, tmpVal2);
|
||||
if ($$ == 0)
|
||||
GEN_ERROR("icmp operator returned null");
|
||||
GEN_ERROR("vicmp operator returned null");
|
||||
delete $3;
|
||||
}
|
||||
| VFCMP FPredicates Types ValueRef ',' ValueRef {
|
||||
@ -3147,7 +3143,7 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef {
|
||||
CHECK_FOR_ERROR
|
||||
$$ = CmpInst::Create($1, $2, tmpVal1, tmpVal2);
|
||||
if ($$ == 0)
|
||||
GEN_ERROR("fcmp operator returned null");
|
||||
GEN_ERROR("vfcmp operator returned null");
|
||||
delete $3;
|
||||
}
|
||||
| CastOps ResolvedVal TO Types {
|
||||
@ -3163,10 +3159,23 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef {
|
||||
delete $4;
|
||||
}
|
||||
| SELECT ResolvedVal ',' ResolvedVal ',' ResolvedVal {
|
||||
if ($2->getType() != Type::Int1Ty)
|
||||
GEN_ERROR("select condition must be boolean");
|
||||
if (isa<VectorType>($2->getType())) {
|
||||
// vector select
|
||||
if (!isa<VectorType>($4->getType())
|
||||
|| !isa<VectorType>($6->getType()) )
|
||||
GEN_ERROR("vector select value types must be vector types");
|
||||
const VectorType* cond_type = cast<VectorType>($2->getType());
|
||||
const VectorType* select_type = cast<VectorType>($4->getType());
|
||||
if (cond_type->getElementType() != Type::Int1Ty)
|
||||
GEN_ERROR("vector select condition element type must be boolean");
|
||||
if (cond_type->getNumElements() != select_type->getNumElements())
|
||||
GEN_ERROR("vector select number of elements must be the same");
|
||||
} else {
|
||||
if ($2->getType() != Type::Int1Ty)
|
||||
GEN_ERROR("select condition must be boolean");
|
||||
}
|
||||
if ($4->getType() != $6->getType())
|
||||
GEN_ERROR("select value types should match");
|
||||
GEN_ERROR("select value types must match");
|
||||
$$ = SelectInst::Create($2, $4, $6);
|
||||
CHECK_FOR_ERROR
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user