X86: Make shifts/rotations that write to 32 bits of a register zero extend.

This commit is contained in:
Gabe Black 2009-08-05 02:59:25 -07:00
parent 7f9a3af250
commit 029d360db2

View file

@ -734,7 +734,7 @@ let {{
DestReg = merge(DestReg, top | bottom, dataSize);
}
else
DestReg = DestReg;
DestReg = merge(DestReg, DestReg, dataSize);
'''
flag_code = '''
// If the shift amount is zero, no flags should be modified.
@ -771,7 +771,7 @@ let {{
DestReg = merge(DestReg, top | bottom, dataSize);
}
else
DestReg = DestReg;
DestReg = merge(DestReg, DestReg, dataSize);
'''
flag_code = '''
// If the shift amount is zero, no flags should be modified.
@ -805,7 +805,7 @@ let {{
DestReg = merge(DestReg, top | bottom, dataSize);
}
else
DestReg = DestReg;
DestReg = merge(DestReg, DestReg, dataSize);
'''
flag_code = '''
// If the shift amount is zero, no flags should be modified.
@ -844,7 +844,7 @@ let {{
DestReg = merge(DestReg, top | bottom, dataSize);
}
else
DestReg = DestReg;
DestReg = merge(DestReg, DestReg, dataSize);
'''
flag_code = '''
// If the shift amount is zero, no flags should be modified.