mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-26 14:15:53 +00:00
For PR1080:
Emit the correct syntax for icmp and fcmp constant expressions. The predicate goes outside the parentheses not inside. This was a change made in the assembler without the corresponding change made in llvm-upgrade. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32942 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d08d23315d
commit
520071af0a
@ -1160,12 +1160,12 @@ ConstExpr: CastOps '(' ConstVal TO Types ')' {
|
||||
$$ = $1;
|
||||
}
|
||||
| ICMP IPredicates '(' ConstVal ',' ConstVal ')' {
|
||||
*$1 += "(" + *$2 + "," + *$4.cnst + "," + *$6.cnst + ")";
|
||||
*$1 += " " + *$2 + " (" + *$4.cnst + "," + *$6.cnst + ")";
|
||||
delete $2; $4.destroy(); $6.destroy();
|
||||
$$ = $1;
|
||||
}
|
||||
| FCMP FPredicates '(' ConstVal ',' ConstVal ')' {
|
||||
*$1 += "(" + *$2 + "," + *$4.cnst + "," + *$6.cnst + ")";
|
||||
*$1 += " " + *$2 + " (" + *$4.cnst + "," + *$6.cnst + ")";
|
||||
delete $2; $4.destroy(); $6.destroy();
|
||||
$$ = $1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user