Files
compiler-explorer/test/cases/cl-maxarray.asm.dlcb.json
T
Matt Godbolt 476fde3c4c Identify lines referring to included files.
Now the API returns `source: {line: num, file: x}` where x
is null for the user-supplied file and a path otherwise.

Hopefully fixes #353, and #418 and #417 - previosuly we misidentified
external lines as being for this file, so the STL includes (for example)
would be misinterpreted as being local. As the STL includes are huge,
we'd try and colourise line 600, or similar.

Tests updated accordingly.
2017-07-30 08:49:24 -05:00

294 lines
4.9 KiB
JSON

[
{
"source": null,
"text": "maxArray PROC"
},
{
"opcodes": [
"48",
"8d",
"41",
"08"
],
"address": 0,
"source": {"file": null, "line": 2},
"text": " lea rax, QWORD PTR [rcx+8]"
},
{
"opcodes": [
"48",
"2b",
"d1"
],
"address": 4,
"source": {"file": null, "line": 2},
"text": " sub rdx, rcx"
},
{
"opcodes": [
"b9",
"00",
"40",
"00",
"00"
],
"address": 7,
"source": {"file": null, "line": 2},
"text": " mov ecx, 16384 ; 00004000H"
},
{
"opcodes": [
"0f",
"1f",
"40",
"00"
],
"address": 12,
"source": {"file": null, "line": 2},
"text": " npad 4"
},
{
"source": null,
"text": "$LL9@maxArray:"
},
{
"opcodes": [
"f2",
"0f",
"10",
"44",
"02",
"f8"
],
"address": 16,
"source": {"file": null, "line": 3},
"text": " movsd xmm0, QWORD PTR [rdx+rax-8]"
},
{
"opcodes": [
"66",
"0f",
"2f",
"40",
"f8"
],
"address": 22,
"source": {"file": null, "line": 3},
"text": " comisd xmm0, QWORD PTR [rax-8]"
},
{
"opcodes": [
"76",
"05"
],
"address": 27,
"source": {"file": null, "line": 3},
"text": " jbe SHORT $LN10@maxArray"
},
{
"opcodes": [
"f2",
"0f",
"11",
"40",
"f8"
],
"address": 29,
"source": {"file": null, "line": 3},
"text": " movsd QWORD PTR [rax-8], xmm0"
},
{
"source": null,
"text": "$LN10@maxArray:"
},
{
"opcodes": [
"f2",
"0f",
"10",
"04",
"02"
],
"address": 34,
"source": {"file": null, "line": 3},
"text": " movsd xmm0, QWORD PTR [rdx+rax]"
},
{
"opcodes": [
"66",
"0f",
"2f",
"00"
],
"address": 39,
"source": {"file": null, "line": 3},
"text": " comisd xmm0, QWORD PTR [rax]"
},
{
"opcodes": [
"76",
"04"
],
"address": 43,
"source": {"file": null, "line": 3},
"text": " jbe SHORT $LN14@maxArray"
},
{
"opcodes": [
"f2",
"0f",
"11",
"00"
],
"address": 45,
"source": {"file": null, "line": 3},
"text": " movsd QWORD PTR [rax], xmm0"
},
{
"source": null,
"text": "$LN14@maxArray:"
},
{
"opcodes": [
"f2",
"0f",
"10",
"44",
"02",
"08"
],
"address": 49,
"source": {"file": null, "line": 3},
"text": " movsd xmm0, QWORD PTR [rdx+rax+8]"
},
{
"opcodes": [
"66",
"0f",
"2f",
"40",
"08"
],
"address": 55,
"source": {"file": null, "line": 3},
"text": " comisd xmm0, QWORD PTR [rax+8]"
},
{
"opcodes": [
"76",
"05"
],
"address": 60,
"source": {"file": null, "line": 3},
"text": " jbe SHORT $LN15@maxArray"
},
{
"opcodes": [
"f2",
"0f",
"11",
"40",
"08"
],
"address": 62,
"source": {"file": null, "line": 3},
"text": " movsd QWORD PTR [rax+8], xmm0"
},
{
"source": null,
"text": "$LN15@maxArray:"
},
{
"opcodes": [
"f2",
"0f",
"10",
"44",
"02",
"10"
],
"address": 67,
"source": {"file": null, "line": 3},
"text": " movsd xmm0, QWORD PTR [rdx+rax+16]"
},
{
"opcodes": [
"66",
"0f",
"2f",
"40",
"10"
],
"address": 73,
"source": {"file": null, "line": 3},
"text": " comisd xmm0, QWORD PTR [rax+16]"
},
{
"opcodes": [
"76",
"05"
],
"address": 78,
"source": {"file": null, "line": 3},
"text": " jbe SHORT $LN16@maxArray"
},
{
"opcodes": [
"f2",
"0f",
"11",
"40",
"10"
],
"address": 80,
"source": {"file": null, "line": 3},
"text": " movsd QWORD PTR [rax+16], xmm0"
},
{
"source": null,
"text": "$LN16@maxArray:"
},
{
"opcodes": [
"48",
"83",
"c0",
"20"
],
"address": 85,
"source": {"file": null, "line": 3},
"text": " add rax, 32 ; 00000020H"
},
{
"opcodes": [
"48",
"83",
"e9",
"01"
],
"address": 89,
"source": {"file": null, "line": 2},
"text": " sub rcx, 1"
},
{
"opcodes": [
"75",
"b1"
],
"address": 93,
"source": {"file": null, "line": 2},
"text": " jne SHORT $LL9@maxArray"
},
{
"opcodes": [
"c3"
],
"address": 95,
"source": {"file": null, "line": 4},
"text": " ret 0"
},
{
"source": null,
"text": "maxArray ENDP"
}
]