Descriptioncmd/6l, cmd/8l: fix MOVL MOVQ optab
The entry for LEAL/LEAQ in these optabs was listed as having
two data bytes in the y array. In fact they had and expect no data
bytes. However, the general loop expects to be able to look at at
least one data byte, to make sure it is not 0x0f. So give them each
a single data byte set to 0 (not 0x0f).
Since the MOV instructions have the largest optab cases, this
requires growing the size of the data array.
Clang found this bug because the general o->op[z] == 0x0f
test was using z == 22, which was out of bounds.
In practice the next byte in memory was probably not 0x0f
so it wasn't truly broken. But might as well be clean.
Update issue 5764
Patch Set 1 #Patch Set 2 : diff -r 2d673b7f9c9e https://code.google.com/p/go/ #Patch Set 3 : diff -r f22ec517eda6 https://code.google.com/p/go/ #
MessagesTotal messages: 3
|