mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Fix bug involving bool arguments to binary operators.
Fix typo in comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14684 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2a9f539168
commit
ccdd70a5c0
@ -904,7 +904,7 @@ void V8ISel::visitBinaryOperator (Instruction &I) {
|
||||
BuildMI (BB, Opcodes[OpCase], 2, ResultReg).addReg (Op0Reg).addReg (Op1Reg);
|
||||
}
|
||||
|
||||
switch (getClass (I.getType ())) {
|
||||
switch (getClassB (I.getType ())) {
|
||||
case cByte:
|
||||
if (I.getType ()->isSigned ()) { // add byte
|
||||
BuildMI (BB, V8::ANDri, 2, DestReg).addReg (ResultReg).addZImm (0xff);
|
||||
@ -926,7 +926,7 @@ void V8ISel::visitBinaryOperator (Instruction &I) {
|
||||
}
|
||||
break;
|
||||
case cInt:
|
||||
// Nothing todo here.
|
||||
// Nothing to do here.
|
||||
break;
|
||||
case cLong:
|
||||
// Only support and, or, xor.
|
||||
|
@ -904,7 +904,7 @@ void V8ISel::visitBinaryOperator (Instruction &I) {
|
||||
BuildMI (BB, Opcodes[OpCase], 2, ResultReg).addReg (Op0Reg).addReg (Op1Reg);
|
||||
}
|
||||
|
||||
switch (getClass (I.getType ())) {
|
||||
switch (getClassB (I.getType ())) {
|
||||
case cByte:
|
||||
if (I.getType ()->isSigned ()) { // add byte
|
||||
BuildMI (BB, V8::ANDri, 2, DestReg).addReg (ResultReg).addZImm (0xff);
|
||||
@ -926,7 +926,7 @@ void V8ISel::visitBinaryOperator (Instruction &I) {
|
||||
}
|
||||
break;
|
||||
case cInt:
|
||||
// Nothing todo here.
|
||||
// Nothing to do here.
|
||||
break;
|
||||
case cLong:
|
||||
// Only support and, or, xor.
|
||||
|
@ -904,7 +904,7 @@ void V8ISel::visitBinaryOperator (Instruction &I) {
|
||||
BuildMI (BB, Opcodes[OpCase], 2, ResultReg).addReg (Op0Reg).addReg (Op1Reg);
|
||||
}
|
||||
|
||||
switch (getClass (I.getType ())) {
|
||||
switch (getClassB (I.getType ())) {
|
||||
case cByte:
|
||||
if (I.getType ()->isSigned ()) { // add byte
|
||||
BuildMI (BB, V8::ANDri, 2, DestReg).addReg (ResultReg).addZImm (0xff);
|
||||
@ -926,7 +926,7 @@ void V8ISel::visitBinaryOperator (Instruction &I) {
|
||||
}
|
||||
break;
|
||||
case cInt:
|
||||
// Nothing todo here.
|
||||
// Nothing to do here.
|
||||
break;
|
||||
case cLong:
|
||||
// Only support and, or, xor.
|
||||
|
@ -904,7 +904,7 @@ void V8ISel::visitBinaryOperator (Instruction &I) {
|
||||
BuildMI (BB, Opcodes[OpCase], 2, ResultReg).addReg (Op0Reg).addReg (Op1Reg);
|
||||
}
|
||||
|
||||
switch (getClass (I.getType ())) {
|
||||
switch (getClassB (I.getType ())) {
|
||||
case cByte:
|
||||
if (I.getType ()->isSigned ()) { // add byte
|
||||
BuildMI (BB, V8::ANDri, 2, DestReg).addReg (ResultReg).addZImm (0xff);
|
||||
@ -926,7 +926,7 @@ void V8ISel::visitBinaryOperator (Instruction &I) {
|
||||
}
|
||||
break;
|
||||
case cInt:
|
||||
// Nothing todo here.
|
||||
// Nothing to do here.
|
||||
break;
|
||||
case cLong:
|
||||
// Only support and, or, xor.
|
||||
|
Loading…
Reference in New Issue
Block a user