[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y
Reid Spencer
reid at x10sys.com
Wed Jan 3 18:57:37 PST 2007
Changes in directory llvm/lib/AsmParser:
llvmAsmParser.y updated: 1.297 -> 1.298
---
Log message:
Disallow packed types in icmp/fcmp instructions. The code generator is
not prepared to handle them yet.
---
Diffs of the changes: (+4 -0)
llvmAsmParser.y | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.297 llvm/lib/AsmParser/llvmAsmParser.y:1.298
--- llvm/lib/AsmParser/llvmAsmParser.y:1.297 Wed Jan 3 18:05:48 2007
+++ llvm/lib/AsmParser/llvmAsmParser.y Wed Jan 3 20:57:22 2007
@@ -2549,6 +2549,8 @@
| ICMP IPredicates Types ValueRef ',' ValueRef {
if (!UpRefs.empty())
GEN_ERROR("Invalid upreference in type: " + (*$3)->getDescription());
+ if (isa<PackedType>((*$3).get()))
+ GEN_ERROR("Packed types not supported by icmp instruction");
Value* tmpVal1 = getVal(*$3, $4);
CHECK_FOR_ERROR
Value* tmpVal2 = getVal(*$3, $6);
@@ -2560,6 +2562,8 @@
| FCMP FPredicates Types ValueRef ',' ValueRef {
if (!UpRefs.empty())
GEN_ERROR("Invalid upreference in type: " + (*$3)->getDescription());
+ if (isa<PackedType>((*$3).get()))
+ GEN_ERROR("Packed types not supported by fcmp instruction");
Value* tmpVal1 = getVal(*$3, $4);
CHECK_FOR_ERROR
Value* tmpVal2 = getVal(*$3, $6);
More information about the llvm-commits
mailing list