blob: 264d1fe9242cd51cfbd9847e653d4dca66e910c7 [file] [log] [blame] [raw]
{
"asm": [
{
"text": "_Z12testFunctionPii:",
"source": null,
"labels": []
},
{
"text": " pushq %rbp",
"source": {
"file": null,
"line": 1
},
"labels": []
},
{
"text": " movq %rsp, %rbp",
"source": {
"file": null,
"line": 1
},
"labels": []
},
{
"text": " movq %rdi, -24(%rbp)",
"source": {
"file": null,
"line": 1
},
"labels": []
},
{
"text": " movl %esi, -28(%rbp)",
"source": {
"file": null,
"line": 1
},
"labels": []
},
{
"text": " movl $0, -8(%rbp)",
"source": {
"file": null,
"line": 2
},
"labels": []
},
{
"text": " movl $0, -4(%rbp)",
"source": {
"file": null,
"line": 3
},
"labels": []
},
{
"text": ".L3:",
"source": null,
"labels": []
},
{
"text": " movl -4(%rbp), %eax",
"source": {
"file": null,
"line": 3
},
"labels": []
},
{
"text": " cmpl -28(%rbp), %eax",
"source": {
"file": null,
"line": 3
},
"labels": []
},
{
"text": " jge .L2",
"source": {
"file": null,
"line": 3
},
"labels": [
{
"name": ".L2",
"range": {
"startCol": 17,
"endCol": 20
}
}
]
},
{
"text": " movl -4(%rbp), %eax",
"source": {
"file": null,
"line": 4
},
"labels": []
},
{
"text": " cltq",
"source": {
"file": null,
"line": 4
},
"labels": []
},
{
"text": " leaq 0(,%rax,4), %rdx",
"source": {
"file": null,
"line": 4
},
"labels": []
},
{
"text": " movq -24(%rbp), %rax",
"source": {
"file": null,
"line": 4
},
"labels": []
},
{
"text": " addq %rdx, %rax",
"source": {
"file": null,
"line": 4
},
"labels": []
},
{
"text": " movl (%rax), %eax",
"source": {
"file": null,
"line": 4
},
"labels": []
},
{
"text": " addl %eax, -8(%rbp)",
"source": {
"file": null,
"line": 4
},
"labels": []
},
{
"text": " addl $1, -4(%rbp)",
"source": {
"file": null,
"line": 3
},
"labels": []
},
{
"text": " jmp .L3",
"source": {
"file": null,
"line": 3
},
"labels": [
{
"name": ".L3",
"range": {
"startCol": 17,
"endCol": 20
}
}
]
},
{
"text": ".L2:",
"source": null,
"labels": []
},
{
"text": " movl -8(%rbp), %eax",
"source": {
"file": null,
"line": 6
},
"labels": []
},
{
"text": " popq %rbp",
"source": {
"file": null,
"line": 7
},
"labels": []
},
{
"text": " ret",
"source": {
"file": null,
"line": 7
},
"labels": []
}
],
"labelDefinitions": {
"_Z12testFunctionPii": 1,
".L3": 8,
".L2": 21
}
}