We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1adb4d commit f67442eCopy full SHA for f67442e
lib/Target/X86/X86FastISel.cpp
@@ -1300,7 +1300,11 @@ bool X86FastISel::X86SelectDivRem(const Instruction *I) {
1300
unsigned TypeIndex, OpIndex;
1301
switch (VT.SimpleTy) {
1302
default: return false;
1303
- case MVT::i8: TypeIndex = 0; break;
+ // Don't handle the i8 case since we might end up trying
1304
+ // to use AH in a REX instruction. Instead just punt to
1305
+ // ISelDAGToDAG which has the logic to handle that case.
1306
+ case MVT::i8:
1307
+ return false;
1308
case MVT::i16: TypeIndex = 1; break;
1309
case MVT::i32: TypeIndex = 2; break;
1310
case MVT::i64: TypeIndex = 3;
0 commit comments