mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 10:26:08 -06:00
bugfix mainsource detection
This commit is contained in:
+1
-1
@@ -405,7 +405,7 @@ export class AsmParser extends AsmRegex {
|
||||
handleStabs(line);
|
||||
handle6502(line);
|
||||
|
||||
if (source && source.file === null) {
|
||||
if (source && (source.file === null || source.mainsource)) {
|
||||
lastOwnSource = source;
|
||||
}
|
||||
|
||||
|
||||
@@ -118,6 +118,12 @@ describe('Filter test cases', function () {
|
||||
{directives: true, labels: true, commentOnly: true, libraryCode: true});
|
||||
}
|
||||
});
|
||||
describe('Directives, labels, comments and library code with dontMaskFilenames', function () {
|
||||
for (const x of cases) {
|
||||
testFilter(x, '.directives.labels.comments.library.dontMaskFilenames',
|
||||
{directives: true, labels: true, commentOnly: true, libraryCode: true, dontMaskFilenames: true});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe('AsmParser tests', () => {
|
||||
|
||||
test/filters-cases/6502-square.asm.directives.labels.comments.library.dontMaskFilenames.approved.txt
Generated
+121
@@ -0,0 +1,121 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".proc _square: near"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/test.c",
|
||||
"line": 2,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " jsr pushax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/test.c",
|
||||
"line": 3,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " ldy #$01"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/test.c",
|
||||
"line": 3,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " jsr ldaxysp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/test.c",
|
||||
"line": 3,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " jsr pushax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/test.c",
|
||||
"line": 3,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " ldy #$03"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/test.c",
|
||||
"line": 3,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " jsr ldaxysp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/test.c",
|
||||
"line": 3,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " jsr tosmulax"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "L0001",
|
||||
"range": {
|
||||
"endCol": 22,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": "/tmp/test.c",
|
||||
"line": 3,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " jmp L0001"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/test.c",
|
||||
"line": 4,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": "L0001: jsr incsp2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/test.c",
|
||||
"line": 4,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " rts"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"L0001": 11,
|
||||
"_square": 1
|
||||
}
|
||||
}
|
||||
Generated
+133
@@ -0,0 +1,133 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "main:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "<stdin>",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " push {r3, lr}"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/usr/arm-linux-gnueabi/include/bits/stdio2.h",
|
||||
"line": 105,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movs r0, #1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/usr/arm-linux-gnueabi/include/bits/stdio2.h",
|
||||
"line": 105,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movw r1, #:lower16:.LC0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/usr/arm-linux-gnueabi/include/bits/stdio2.h",
|
||||
"line": 105,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movt r1, #:upper16:.LC0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/usr/arm-linux-gnueabi/include/bits/stdio2.h",
|
||||
"line": 105,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " bl __printf_chk"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/usr/arm-linux-gnueabi/include/bits/stdio2.h",
|
||||
"line": 105,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movs r0, #1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/usr/arm-linux-gnueabi/include/bits/stdio2.h",
|
||||
"line": 105,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movw r1, #:lower16:.LC1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/usr/arm-linux-gnueabi/include/bits/stdio2.h",
|
||||
"line": 105,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movt r1, #:upper16:.LC1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/usr/arm-linux-gnueabi/include/bits/stdio2.h",
|
||||
"line": 105,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " bl __printf_chk"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "<stdin>",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movs r0, #0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "<stdin>",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " pop {r3, pc}"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".LC0:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .ascii \"Hello world\\000\""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".LC1:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .ascii \"moo\\012\\000\""
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".LC0": 13,
|
||||
".LC1": 15,
|
||||
"main": 1
|
||||
}
|
||||
}
|
||||
+2276
File diff suppressed because it is too large
Load Diff
Generated
+352
@@ -0,0 +1,352 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"source": null,
|
||||
"text": "|thing| PROC"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " mul r0,r0,r0"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "|$M4|"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " bx lr"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": " ENDP ; |thing|"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "|moose| PROC"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 9
|
||||
},
|
||||
"text": " push {r3-r5,lr}"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "|$M22|"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 9
|
||||
},
|
||||
"text": " mov r5,r0"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " movs r0,#1"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " movs r4,#0"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " vdup.32 q10,r5"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 12
|
||||
},
|
||||
"text": " cmp r1,#0"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 12
|
||||
},
|
||||
"text": " ble |$LN18@moose|"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 12
|
||||
},
|
||||
"text": " cmp r1,#8"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 12
|
||||
},
|
||||
"text": " bcc |$LN11@moose|"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " asrs r3,r1,#2"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " add r3,r1,r3,lsr #0x1D"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " asrs r3,r3,#3"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " sub r3,r1,r3,lsl #3"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " vmov.i64 q8,#0"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " subs r3,r1,r3"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " vmov q9,q8"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " vmul.i32 q10,q10,q10"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "|$LL4@moose|"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 12
|
||||
},
|
||||
"text": " adds r4,r4,#8"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 12
|
||||
},
|
||||
"text": " cmp r4,r3"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " vadd.i32 q8,q10,q8"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " vadd.i32 q9,q10,q9"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " blt |$LL4@moose|"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " vadd.i32 q8,q9,q8"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " vmov.32 r2,d17[1]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " vmov.32 r3,d17[0]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " add r2,r2,r3"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " vmov.32 r3,d16[1]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " add r2,r2,r3"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " vmov.32 r3,d16[0]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " add r3,r3,r2"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " adds r0,r3,#1"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "|$LN11@moose|"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 12
|
||||
},
|
||||
"text": " cmp r4,r1"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 12
|
||||
},
|
||||
"text": " bge |$LN17@moose|"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 12
|
||||
},
|
||||
"text": " subs r3,r1,r4"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 12
|
||||
},
|
||||
"text": " mul r3,r3,r5"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 12
|
||||
},
|
||||
"text": " mla r0,r3,r5,r0"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "|$LN17@moose|"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "|$M20|"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 16
|
||||
},
|
||||
"text": " pop {r3-r5,pc}"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "|$LN18@moose|"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "|$M21|"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 16
|
||||
},
|
||||
"text": " pop {r3-r5,pc}"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "|$M23|"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": " ENDP ; |moose|"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
Generated
+66
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "LongLong:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .word 123456"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .word 0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "Long:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .word 2345"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "Int:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .word 123"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "Short:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .short 4660"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "Char:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte -128"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"Char": 10,
|
||||
"Int": 6,
|
||||
"Long": 4,
|
||||
"LongLong": 1,
|
||||
"Short": 8
|
||||
}
|
||||
}
|
||||
Generated
+493
@@ -0,0 +1,493 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "__SP_H__ = 0x3e"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "__SP_L__ = 0x3d"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "__tmp_reg__ = 0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "__zero_reg__ = 1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "foo():"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 2
|
||||
},
|
||||
"text": " push r29"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 2
|
||||
},
|
||||
"text": " push r28"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 2
|
||||
},
|
||||
"text": " rcall ."
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 2
|
||||
},
|
||||
"text": " rcall ."
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__SP_L__",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 16
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 2
|
||||
},
|
||||
"text": " in r28,__SP_L__"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__SP_H__",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 16
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 2
|
||||
},
|
||||
"text": " in r29,__SP_H__"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__zero_reg__",
|
||||
"range": {
|
||||
"endCol": 29,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " std Y+2,__zero_reg__"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__zero_reg__",
|
||||
"range": {
|
||||
"endCol": 29,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " std Y+1,__zero_reg__"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__zero_reg__",
|
||||
"range": {
|
||||
"endCol": 29,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " std Y+4,__zero_reg__"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__zero_reg__",
|
||||
"range": {
|
||||
"endCol": 29,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " std Y+3,__zero_reg__"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L2",
|
||||
"range": {
|
||||
"endCol": 17,
|
||||
"startCol": 14
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " rjmp .L2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L4:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 5
|
||||
},
|
||||
"text": " rcall bar()"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 5
|
||||
},
|
||||
"text": " ldd r18,Y+1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 5
|
||||
},
|
||||
"text": " ldd r19,Y+2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 5
|
||||
},
|
||||
"text": " add r24,r18"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 5
|
||||
},
|
||||
"text": " adc r25,r19"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 5
|
||||
},
|
||||
"text": " std Y+2,r25"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 5
|
||||
},
|
||||
"text": " std Y+1,r24"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " ldd r24,Y+3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " ldd r25,Y+4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " adiw r24,1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " std Y+4,r25"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " std Y+3,r24"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L2:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " ldi r18,lo8(1)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " ldd r24,Y+3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " ldd r25,Y+4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " cpi r24,100"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__zero_reg__",
|
||||
"range": {
|
||||
"endCol": 29,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " cpc r25,__zero_reg__"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L3",
|
||||
"range": {
|
||||
"endCol": 17,
|
||||
"startCol": 14
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " brlt .L3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " ldi r18,lo8(0)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L3:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " tst r18"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L4",
|
||||
"range": {
|
||||
"endCol": 17,
|
||||
"startCol": 14
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " brne .L4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " ldd r24,Y+1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " ldd r25,Y+2"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__tmp_reg__",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 13
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 8
|
||||
},
|
||||
"text": " pop __tmp_reg__"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__tmp_reg__",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 13
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 8
|
||||
},
|
||||
"text": " pop __tmp_reg__"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__tmp_reg__",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 13
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 8
|
||||
},
|
||||
"text": " pop __tmp_reg__"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__tmp_reg__",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 13
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 8
|
||||
},
|
||||
"text": " pop __tmp_reg__"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 8
|
||||
},
|
||||
"text": " pop r28"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 8
|
||||
},
|
||||
"text": " pop r29"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 8
|
||||
},
|
||||
"text": " ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".L2": 30,
|
||||
".L3": 38,
|
||||
".L4": 17,
|
||||
"__SP_H__": 1,
|
||||
"__SP_L__": 2,
|
||||
"__tmp_reg__": 3,
|
||||
"__zero_reg__": 4
|
||||
}
|
||||
}
|
||||
Generated
+159570
File diff suppressed because it is too large
Load Diff
Generated
+159570
File diff suppressed because it is too large
Load Diff
+940
@@ -0,0 +1,940 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "/tmp/compiler-explorer-compiler202096-18936-1ray3vi.419rk/output.s: file format elf64-x86-64"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "Disassembly of section .init:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "0000000000401000 <_init>:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_init():"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401000: f3 0f 1e fa endbr64"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401004: 48 83 ec 08 sub rsp,0x8"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401008: 48 8b 05 e9 2f 00 00 mov rax,QWORD PTR [rip+0x2fe9] # 403ff8 <__gmon_start__>"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40100f: 48 85 c0 test rax,rax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401012: 74 02 je 401016 <_init+0x16>"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401014: ff d0 call rax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401016: 48 83 c4 08 add rsp,0x8"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40101a: c3 ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "Disassembly of section .text:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "0000000000401020 <_start>:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_start():"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401020: f3 0f 1e fa endbr64"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401024: 31 ed xor ebp,ebp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401026: 49 89 d1 mov r9,rdx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401029: 5e pop rsi"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40102a: 48 89 e2 mov rdx,rsp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40102d: 48 83 e4 f0 and rsp,0xfffffffffffffff0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401031: 50 push rax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401032: 54 push rsp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401033: 49 c7 c0 b0 11 40 00 mov r8,0x4011b0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40103a: 48 c7 c1 40 11 40 00 mov rcx,0x401140"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401041: 48 c7 c7 29 11 40 00 mov rdi,0x401129"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401048: ff 15 a2 2f 00 00 call QWORD PTR [rip+0x2fa2] # 403ff0 <__libc_start_main@GLIBC_2.2.5>"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40104e: f4 hlt"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40104f: 90 nop"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "0000000000401050 <_dl_relocate_static_pie>:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_dl_relocate_static_pie():"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401050: f3 0f 1e fa endbr64"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401054: c3 ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401055: 66 2e 0f 1f 84 00 00 00 00 00 nop WORD PTR cs:[rax+rax*1+0x0]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40105f: 90 nop"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "0000000000401060 <deregister_tm_clones>:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "deregister_tm_clones():"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401060: b8 28 40 40 00 mov eax,0x404028"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401065: 48 3d 28 40 40 00 cmp rax,0x404028"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40106b: 74 13 je 401080 <deregister_tm_clones+0x20>"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40106d: b8 00 00 00 00 mov eax,0x0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401072: 48 85 c0 test rax,rax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401075: 74 09 je 401080 <deregister_tm_clones+0x20>"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401077: bf 28 40 40 00 mov edi,0x404028"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40107c: ff e0 jmp rax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40107e: 66 90 xchg ax,ax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401080: c3 ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401081: 66 66 2e 0f 1f 84 00 00 00 00 00 data16 nop WORD PTR cs:[rax+rax*1+0x0]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40108c: 0f 1f 40 00 nop DWORD PTR [rax+0x0]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "0000000000401090 <register_tm_clones>:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "register_tm_clones():"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401090: be 28 40 40 00 mov esi,0x404028"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401095: 48 81 ee 28 40 40 00 sub rsi,0x404028"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40109c: 48 89 f0 mov rax,rsi"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40109f: 48 c1 ee 3f shr rsi,0x3f"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010a3: 48 c1 f8 03 sar rax,0x3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010a7: 48 01 c6 add rsi,rax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010aa: 48 d1 fe sar rsi,1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010ad: 74 11 je 4010c0 <register_tm_clones+0x30>"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010af: b8 00 00 00 00 mov eax,0x0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010b4: 48 85 c0 test rax,rax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010b7: 74 07 je 4010c0 <register_tm_clones+0x30>"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010b9: bf 28 40 40 00 mov edi,0x404028"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010be: ff e0 jmp rax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010c0: c3 ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010c1: 66 66 2e 0f 1f 84 00 00 00 00 00 data16 nop WORD PTR cs:[rax+rax*1+0x0]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010cc: 0f 1f 40 00 nop DWORD PTR [rax+0x0]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "00000000004010d0 <__do_global_dtors_aux>:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "__do_global_dtors_aux():"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010d0: 80 3d 51 2f 00 00 00 cmp BYTE PTR [rip+0x2f51],0x0 # 404028 <__TMC_END__>"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010d7: 75 17 jne 4010f0 <__do_global_dtors_aux+0x20>"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010d9: 55 push rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010da: 48 89 e5 mov rbp,rsp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010dd: e8 7e ff ff ff call 401060 <deregister_tm_clones>"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010e2: c6 05 3f 2f 00 00 01 mov BYTE PTR [rip+0x2f3f],0x1 # 404028 <__TMC_END__>"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010e9: 5d pop rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010ea: c3 ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010eb: 0f 1f 44 00 00 nop DWORD PTR [rax+rax*1+0x0]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010f0: c3 ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010f1: 66 66 2e 0f 1f 84 00 00 00 00 00 data16 nop WORD PTR cs:[rax+rax*1+0x0]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4010fc: 0f 1f 40 00 nop DWORD PTR [rax+0x0]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "0000000000401100 <frame_dummy>:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "frame_dummy():"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401100: eb 8e jmp 401090 <register_tm_clones>"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "0000000000401102 <fun🤔()>:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z7fun🤔v():"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "/tmp/compiler-explorer-compiler202096-18936-1ray3vi.419rk/example.cpp:1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401102: 55 push rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401103: 48 89 e5 mov rbp,rsp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "/tmp/compiler-explorer-compiler202096-18936-1ray3vi.419rk/example.cpp:2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401106: b8 02 00 00 00 mov eax,0x2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "/tmp/compiler-explorer-compiler202096-18936-1ray3vi.419rk/example.cpp:3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40110b: 5d pop rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40110c: c3 ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "000000000040110d <foo()>:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z3foov():"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "/tmp/compiler-explorer-compiler202096-18936-1ray3vi.419rk/example.cpp:5"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40110d: 55 push rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40110e: 48 89 e5 mov rbp,rsp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "/tmp/compiler-explorer-compiler202096-18936-1ray3vi.419rk/example.cpp:6"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401111: c7 45 fc 02 00 00 00 mov DWORD PTR [rbp-0x4],0x2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401118: c7 45 f8 03 00 00 00 mov DWORD PTR [rbp-0x8],0x3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "/tmp/compiler-explorer-compiler202096-18936-1ray3vi.419rk/example.cpp:7"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40111f: 83 45 f8 01 add DWORD PTR [rbp-0x8],0x1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "/tmp/compiler-explorer-compiler202096-18936-1ray3vi.419rk/example.cpp:8"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401123: d1 65 fc shl DWORD PTR [rbp-0x4],1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "/tmp/compiler-explorer-compiler202096-18936-1ray3vi.419rk/example.cpp:9"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401126: 90 nop"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401127: 5d pop rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401128: c3 ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "0000000000401129 <main>:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "main():"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "/tmp/compiler-explorer-compiler202096-18936-1ray3vi.419rk/example.cpp:11"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401129: 55 push rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40112a: 48 89 e5 mov rbp,rsp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "/tmp/compiler-explorer-compiler202096-18936-1ray3vi.419rk/example.cpp:12"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40112d: e8 d0 ff ff ff call 401102 <fun🤔()>"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401132: 90 nop"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "/tmp/compiler-explorer-compiler202096-18936-1ray3vi.419rk/example.cpp:13"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401133: 5d pop rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401134: c3 ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401135: 66 2e 0f 1f 84 00 00 00 00 00 nop WORD PTR cs:[rax+rax*1+0x0]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40113f: 90 nop"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "0000000000401140 <__libc_csu_init>:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "__libc_csu_init():"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401140: f3 0f 1e fa endbr64"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401144: 41 57 push r15"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401146: 4c 8d 3d b3 2c 00 00 lea r15,[rip+0x2cb3] # 403e00 <__frame_dummy_init_array_entry>"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40114d: 41 56 push r14"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40114f: 49 89 d6 mov r14,rdx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401152: 41 55 push r13"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401154: 49 89 f5 mov r13,rsi"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401157: 41 54 push r12"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401159: 41 89 fc mov r12d,edi"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40115c: 55 push rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40115d: 48 8d 2d a4 2c 00 00 lea rbp,[rip+0x2ca4] # 403e08 <__do_global_dtors_aux_fini_array_entry>"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401164: 53 push rbx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401165: 4c 29 fd sub rbp,r15"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401168: 48 83 ec 08 sub rsp,0x8"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40116c: e8 8f fe ff ff call 401000 <_init>"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401171: 48 c1 fd 03 sar rbp,0x3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401175: 74 1f je 401196 <__libc_csu_init+0x56>"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401177: 31 db xor ebx,ebx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401179: 0f 1f 80 00 00 00 00 nop DWORD PTR [rax+0x0]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401180: 4c 89 f2 mov rdx,r14"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401183: 4c 89 ee mov rsi,r13"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401186: 44 89 e7 mov edi,r12d"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401189: 41 ff 14 df call QWORD PTR [r15+rbx*8]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40118d: 48 83 c3 01 add rbx,0x1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401191: 48 39 dd cmp rbp,rbx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401194: 75 ea jne 401180 <__libc_csu_init+0x40>"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 401196: 48 83 c4 08 add rsp,0x8"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40119a: 5b pop rbx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40119b: 5d pop rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40119c: 41 5c pop r12"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 40119e: 41 5d pop r13"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4011a0: 41 5e pop r14"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4011a2: 41 5f pop r15"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4011a4: c3 ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4011a5: 66 66 2e 0f 1f 84 00 00 00 00 00 data16 nop WORD PTR cs:[rax+rax*1+0x0]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "00000000004011b0 <__libc_csu_fini>:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "__libc_csu_fini():"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4011b0: f3 0f 1e fa endbr64"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4011b4: c3 ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "Disassembly of section .fini:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "00000000004011b8 <_fini>:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_fini():"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4011b8: f3 0f 1e fa endbr64"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4011bc: 48 83 ec 08 sub rsp,0x8"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4011c0: 48 83 c4 08 add rsp,0x8"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " 4011c4: c3 ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {}
|
||||
}
|
||||
Generated
+55
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "my_own_address:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".Ltmp0:"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".Ltmp0",
|
||||
"range": {
|
||||
"endCol": 23,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .quad .Ltmp0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "ptr:"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "my_own_address",
|
||||
"range": {
|
||||
"endCol": 31,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .quad my_own_address"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".Ltmp0": 2,
|
||||
"my_own_address": 1,
|
||||
"ptr": 5
|
||||
}
|
||||
}
|
||||
Generated
+336
@@ -0,0 +1,336 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z6myfuncv: # @_Z6myfuncv"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/compiler-explorer-compiler1181120-2080-yfo6a1.y1o4e/example.cpp",
|
||||
"line": 9,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " sub rsp, 88"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 12,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/return_type.hpp",
|
||||
"line": 18,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov byte ptr [rsp + 32], 0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 12,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/return_type.hpp",
|
||||
"line": 18,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov qword ptr [rsp + 24], 0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 55,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 64,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov qword ptr [rsp + 40], offset .L.str"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 55,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 64,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov rax, qword ptr [rsp + 24]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 55,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 64,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov qword ptr [rsp + 48], rax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 55,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 64,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov al, byte ptr [rsp + 32]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 55,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 64,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov byte ptr [rsp + 56], al"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 55,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 64,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov eax, dword ptr [rsp + 33]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 55,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 64,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov dword ptr [rsp + 57], eax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 55,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 64,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movzx eax, word ptr [rsp + 37]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 55,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 64,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov word ptr [rsp + 61], ax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 55,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 64,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov al, byte ptr [rsp + 39]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 55,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 64,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov byte ptr [rsp + 63], al"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 267,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov rax, qword ptr [rsp + 56]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 267,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov qword ptr [rsp + 16], rax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 267,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movups xmm0, xmmword ptr [rsp + 40]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 267,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movups xmmword ptr [rsp], xmm0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 267,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " lea rdi, [rsp + 64]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 267,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " xor esi, esi"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 267,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov edx, offset .L.str"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 267,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov ecx, offset .L.str+1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 267,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov r8d, offset .L.str+5"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 267,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " call _ZN4ctre18evaluate_recursiveINS_13regex_resultsIPKcJEEES3_S3_Lm0ELm0EJNS_3anyEEJNS_10assert_endENS_8end_markENS_6acceptEEEET_mT0_SA_T1_S9_N4ctll4listIJNS_6repeatIXT2_EXT3_EJDpT4_EEEDpT5_EEE"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "/tmp/compiler-explorer-compiler1181120-2080-yfo6a1.y1o4e/example.cpp",
|
||||
"line": 11,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " add rsp, 88"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "/tmp/compiler-explorer-compiler1181120-2080-yfo6a1.y1o4e/example.cpp",
|
||||
"line": 11,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 298,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov rdi, rax"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__clang_call_terminate",
|
||||
"range": {
|
||||
"endCol": 39,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/opt/compiler-explorer/libs/ctre/master/include/ctre/evaluation.hpp",
|
||||
"line": 298,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " call __clang_call_terminate"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "__clang_call_terminate: # @__clang_call_terminate"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " push rax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " call __cxa_begin_catch"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " call _ZSt9terminatev"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L.str:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .asciz \"hello\""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".L.str": 34,
|
||||
"_Z6myfuncv": 1,
|
||||
"__clang_call_terminate": 30
|
||||
}
|
||||
}
|
||||
Generated
+37
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z16apply_known_maskRSt6bitsetILm64EE: # @_Z16apply_known_maskRSt6bitsetILm64EE"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 14,
|
||||
"file": "/opt/compiler-explorer/gcc-8.3.0/lib/gcc/x86_64-linux-gnu/8.3.0/../../../../include/c++/8.3.0/bitset",
|
||||
"line": 433,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " andq $775946532, (%rdi) # imm = 0x2E400124"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "example.cpp",
|
||||
"line": 15,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " retq"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"_Z16apply_known_maskRSt6bitsetILm64EE": 1
|
||||
}
|
||||
}
|
||||
Generated
+305
@@ -0,0 +1,305 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_ZN1C8SetValueEN4absl8optionalINS0_11string_viewEEE: # @_ZN1C8SetValueEN4absl8optionalINS0_11string_viewEEE"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 50,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " push rbx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 50,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov rbx, rdi"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 68,
|
||||
"file": "/opt/compiler-explorer/libs/abseil/absl/types/optional.h",
|
||||
"line": 447,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " cmp byte ptr [rsp + 16], 0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 0,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov al, byte ptr [rdi]"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".LBB0_4",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"column": 7,
|
||||
"file": "example.cpp",
|
||||
"line": 54,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " je .LBB0_4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 7,
|
||||
"file": "example.cpp",
|
||||
"line": 0,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " lea rcx, [rsp + 16]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 7,
|
||||
"file": "example.cpp",
|
||||
"line": 0,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " lea rdi, [rbx + 8]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 7,
|
||||
"file": "example.cpp",
|
||||
"line": 0,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov rsi, qword ptr [rcx + 8]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 7,
|
||||
"file": "example.cpp",
|
||||
"line": 0,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov rdx, qword ptr [rcx + 16]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 7,
|
||||
"file": "example.cpp",
|
||||
"line": 0,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " test al, al"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".LBB0_3",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "example.cpp",
|
||||
"line": 55,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " je .LBB0_3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 15,
|
||||
"file": "example.cpp",
|
||||
"line": 56,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " call _ZN6string6assignEPKcm"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "example.cpp",
|
||||
"line": 64,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " pop rbx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "example.cpp",
|
||||
"line": 64,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".LBB0_4:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 0,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " test al, al"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".LBB0_6",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/opt/compiler-explorer/libs/abseil/absl/types/internal/optional.h",
|
||||
"line": 92,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " je .LBB0_6"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 7,
|
||||
"file": "/opt/compiler-explorer/libs/abseil/absl/types/internal/optional.h",
|
||||
"line": 93,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " lea rdi, [rbx + 8]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 14,
|
||||
"file": "/opt/compiler-explorer/libs/abseil/absl/types/internal/optional.h",
|
||||
"line": 93,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " call _ZN6stringD1Ev"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 16,
|
||||
"file": "/opt/compiler-explorer/libs/abseil/absl/types/internal/optional.h",
|
||||
"line": 94,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov byte ptr [rbx], 0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".LBB0_6:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "example.cpp",
|
||||
"line": 64,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " pop rbx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "example.cpp",
|
||||
"line": 64,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".LBB0_3:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 47,
|
||||
"file": "/opt/compiler-explorer/libs/abseil/absl/types/internal/optional.h",
|
||||
"line": 152,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " call _ZN6stringC1EN4absl11string_viewE"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 20,
|
||||
"file": "/opt/compiler-explorer/libs/abseil/absl/types/internal/optional.h",
|
||||
"line": 153,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov byte ptr [rbx], 1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "example.cpp",
|
||||
"line": 64,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " pop rbx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "example.cpp",
|
||||
"line": 64,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".LBB0_3": 25,
|
||||
".LBB0_4": 16,
|
||||
".LBB0_6": 22,
|
||||
"_ZN1C8SetValueEN4absl8optionalINS0_11string_viewEEE": 1
|
||||
}
|
||||
}
|
||||
Generated
+124
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z3foov:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 24,
|
||||
"file": "example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov eax, 42"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 24,
|
||||
"file": "example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z3barv:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 14,
|
||||
"file": "/opt/compiler-explorer/gcc-8.3.0/include/c++/8.3.0/typeinfo",
|
||||
"line": 100,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov rax, QWORD PTR _ZTIi[rip+8]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 31,
|
||||
"file": "/opt/compiler-explorer/gcc-8.3.0/include/c++/8.3.0/typeinfo",
|
||||
"line": 100,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " cmp BYTE PTR [rax], 42"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 31,
|
||||
"file": "/opt/compiler-explorer/gcc-8.3.0/include/c++/8.3.0/typeinfo",
|
||||
"line": 100,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " sete dl"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 31,
|
||||
"file": "/opt/compiler-explorer/gcc-8.3.0/include/c++/8.3.0/typeinfo",
|
||||
"line": 100,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movzx edx, dl"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 40,
|
||||
"file": "example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movsx eax, BYTE PTR [rax+rdx]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 43,
|
||||
"file": "example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z3bazv:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 45,
|
||||
"file": "example.cpp",
|
||||
"line": 6,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov eax, 53"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 45,
|
||||
"file": "example.cpp",
|
||||
"line": 6,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"_Z3barv": 4,
|
||||
"_Z3bazv": 11,
|
||||
"_Z3foov": 1
|
||||
}
|
||||
}
|
||||
Generated
+284
@@ -0,0 +1,284 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z8testfuncf:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movss xmm3, DWORD PTR .LC1[rip]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movss xmm4, DWORD PTR .LC0[rip]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movaps xmm2, xmm0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movaps xmm1, xmm0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " andps xmm2, xmm3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " ucomiss xmm4, xmm2"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L2",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " jbe .L2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " cvttss2si eax, xmm0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " pxor xmm2, xmm2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movss xmm4, DWORD PTR .LC2[rip]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " andnps xmm3, xmm0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " cvtsi2ss xmm2, eax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movaps xmm5, xmm2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " cmpnless xmm5, xmm0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movaps xmm1, xmm5"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " andps xmm1, xmm4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " subss xmm2, xmm1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movaps xmm1, xmm2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 28,
|
||||
"file": "/opt/compiler-explorer/gcc-trunk-20190430/include/c++/10.0.0/cmath",
|
||||
"line": 261,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " orps xmm1, xmm3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L2:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 24,
|
||||
"file": "example.cpp",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " cvttss2si eax, xmm1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "example.cpp",
|
||||
"line": 6,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".LC0:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .long 1258291200"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".LC1:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .long 2147483647"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .long 0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .long 0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .long 0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".LC2:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .long 1065353216"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".L2": 21,
|
||||
".LC0": 24,
|
||||
".LC1": 26,
|
||||
".LC2": 31,
|
||||
"_Z8testfuncf": 1
|
||||
}
|
||||
}
|
||||
Generated
+122
@@ -0,0 +1,122 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "main: # @main"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 3,
|
||||
"file": "example.cpp",
|
||||
"line": 15,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov eax, 3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 3,
|
||||
"file": "example.cpp",
|
||||
"line": 15,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "__cxx_global_var_init: # @__cxx_global_var_init"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 15,
|
||||
"file": "example.cpp",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " cmp byte ptr [rip + guard variable for asdf<float>], 0"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".LBB1_2",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"column": 15,
|
||||
"file": "example.cpp",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " jne .LBB1_2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 15,
|
||||
"file": "example.cpp",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov qword ptr [rip + guard variable for asdf<float>], 1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".LBB1_2:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 15,
|
||||
"file": "example.cpp",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "asdf<float>:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "guard variable for asdf<float>:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".LBB1_2": 9,
|
||||
"__cxx_global_var_init": 5,
|
||||
"main": 1
|
||||
}
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "issue1989:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " addl $16,$17,$0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " cmplt $16,$0,$0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ret $31,($26),1"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"issue1989": 1
|
||||
}
|
||||
}
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "issue1989:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " addk r6,r5,r6"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " cmp r18,r6,r5"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "$L2",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 21
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " bltid r18,$L2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " addik r3,r0,1 # 0x1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " addk r3,r0,r0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "$L2:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " rtsd r15,8"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " andi r3,r3,1 #and1"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"$L2": 7,
|
||||
"issue1989": 1
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "issue1989:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " add %o1, %o0, %o1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov 0, %g1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " cmp %o1, %o0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " movg %icc, 1, %g1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " jmp %o7+8"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov %g1, %o0"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"issue1989": 1
|
||||
}
|
||||
}
|
||||
Generated
+90
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "square(int):"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 21,
|
||||
"file": "./example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " endbr64"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 21,
|
||||
"file": "./example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " push rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 21,
|
||||
"file": "./example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov rbp, rsp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 21,
|
||||
"file": "./example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov DWORD PTR [rbp-4], edi"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 18,
|
||||
"file": "./example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov eax, DWORD PTR [rbp-4]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 18,
|
||||
"file": "./example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " imul eax, eax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "./example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " pop rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "./example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {}
|
||||
}
|
||||
Generated
+37
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "example::abort:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 5,
|
||||
"file": "/home/ce/./example.rs",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " .inst.n 0xdefe"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 5,
|
||||
"file": "/home/ce/./example.rs",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " .inst.n 0xdefe"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"example": 1
|
||||
}
|
||||
}
|
||||
Generated
+38
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "trap_arm:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 5,
|
||||
"file": "/home/ce/./example.c",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " .inst 0xe7ffdefe"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "trap_thumb:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 5,
|
||||
"file": "/home/ce/./example.c",
|
||||
"line": 8,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " .inst.n 0xdefe"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"trap_arm": 1,
|
||||
"trap_thumb": 3
|
||||
}
|
||||
}
|
||||
Generated
+430
@@ -0,0 +1,430 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z4revcc:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 3,
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " sub r3, r0, #65"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 3,
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " cmp r3, #19"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 3,
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ldrls pc, [pc, r3, asl #2]"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L7",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"column": 3,
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " b .L7"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L8",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L8"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L7",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L7"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L6",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L6"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L7",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L7"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L7",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L7"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L7",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L7"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L5",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L5"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L7",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L7"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L7",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L7"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L7",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L7"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L7",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L7"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L7",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L7"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L7",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L7"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L7",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L7"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L7",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L7"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L7",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L7"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L7",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L7"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L7",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L7"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L7",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L7"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L3",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .word .L3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L8:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 14,
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 12,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov r0, #84"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L7:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 14,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " bx lr"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L3:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 14,
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 10,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov r0, #65"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 14,
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 10,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " bx lr"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L5:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 14,
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 8,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov r0, #67"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 14,
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 8,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " bx lr"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L6:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 14,
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 6,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov r0, #71"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 14,
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 6,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " bx lr"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".L3": 30,
|
||||
".L5": 33,
|
||||
".L6": 36,
|
||||
".L7": 28,
|
||||
".L8": 26,
|
||||
"_Z4revcc": 1
|
||||
}
|
||||
}
|
||||
Generated
+85
@@ -0,0 +1,85 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "square(int):"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " push r10"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " push r4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov r1, r4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " add #4, r4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " sub #2, r1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov r15, -6(r4)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov -6(r4), r10"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov -6(r4), r12"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " call #__mulhi3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov r14, r15"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " add #2, r1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " pop r4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " pop r10"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {}
|
||||
}
|
||||
Generated
+55
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "foo():"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 1,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " PUSHM.W #1, R4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 1,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " MOV.W R1, R4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " MOV.B #3, R12"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " POPM.W #1, r4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " RET"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {}
|
||||
}
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z6squarei: # @_Z6squarei"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " pushq %rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " movq %rsp, %rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " movl %edi, -4(%rbp)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " movl -4(%rbp), %edi"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " imull -4(%rbp), %edi"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " movl %edi, %eax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " popq %rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " retq"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"_Z6squarei": 1
|
||||
}
|
||||
}
|
||||
test/filters-cases/bug-577_gcc.asm.directives.labels.comments.library.dontMaskFilenames.approved.txt
Generated
+75
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z6squarei:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " push rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov rbp, rsp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov DWORD PTR -4[rbp], edi"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov eax, DWORD PTR -4[rbp]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " imul eax, DWORD PTR -4[rbp]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " pop rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"_Z6squarei": 1
|
||||
}
|
||||
}
|
||||
test/filters-cases/bug-577_icc.asm.directives.labels.comments.library.dontMaskFilenames.approved.txt
Generated
+84
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z6squarei:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " push rbp #2.21"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov rbp, rsp #2.21"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " sub rsp, 16 #2.21"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov DWORD PTR [-16+rbp], edi #2.21"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov eax, DWORD PTR [-16+rbp] #4.18"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " imul eax, DWORD PTR [-16+rbp] #4.18"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " leave #4.18"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret #4.18"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"_Z6squarei": 1
|
||||
}
|
||||
}
|
||||
Generated
+149
@@ -0,0 +1,149 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "y:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .long 100"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "d:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .long 98"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "f:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .long 3435973837"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .long 1092337616"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "v:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .zero 1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "dd:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .zero 4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "yuu:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .zero 4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "jj:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .zero 8"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "q:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .zero 4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "x():"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 11,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " push rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 11,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov rbp, rsp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 12,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov eax, DWORD PTR d[rip]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 13,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " pop rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 13,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"d": 3,
|
||||
"dd": 10,
|
||||
"f": 5,
|
||||
"jj": 14,
|
||||
"q": 16,
|
||||
"v": 8,
|
||||
"y": 1,
|
||||
"yuu": 12
|
||||
}
|
||||
}
|
||||
Generated
+148
@@ -0,0 +1,148 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "$LC0:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .ascii \"hello world\\000\""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "main:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " addiu $sp,$sp,-32"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " sw $31,28($sp)"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "$LC0",
|
||||
"range": {
|
||||
"endCol": 18,
|
||||
"startCol": 14
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " lui $4,%hi($LC0)"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "$LC0",
|
||||
"range": {
|
||||
"endCol": 23,
|
||||
"startCol": 19
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " addiu $4,$4,%lo($LC0)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " jal puts"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " nop"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " move $2,$0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " lw $31,28($sp)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " nop"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " j $31"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " addiu $sp,$sp,32"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"$LC0": 1,
|
||||
"main": 3
|
||||
}
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_ZN95_$LT$example..Bla$LT$$u27$a$GT$$u20$as$u20$core..convert..Into$LT$alloc..string..String$GT$$GT$4into17h38301ffbb2e8fb47E:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " pushq %rbx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " movq %rdi, %rbx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " callq _ZN5alloc3str56_$LT$impl$u20$alloc..borrow..ToOwned$u20$for$u20$str$GT$8to_owned17h6364b00ba4e57363E@PLT"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " movq %rbx, %rax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " popq %rbx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " retq"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"_ZN95_$LT$example..Bla$LT$$u27$a$GT$$u20$as$u20$core..convert..Into$LT$alloc..string..String$GT$$GT$4into17h38301ffbb2e8fb47E": 1
|
||||
}
|
||||
}
|
||||
Generated
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"asm": [],
|
||||
"labelDefinitions": {}
|
||||
}
|
||||
+879
@@ -0,0 +1,879 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".visible .func (.param .b32 func_retval0) cudaMalloc("
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .b64 cudaMalloc_param_0,"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .b64 cudaMalloc_param_1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ")"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "{"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.u64 %SPL, __local_depot0;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " cvta.local.u64 %SP, %SPL;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u64 %rd2, [cudaMalloc_param_1];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u64 %rd1, [cudaMalloc_param_0];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u64 [%SP+0], %rd1;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u64 [%SP+8], %rd2;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.u32 %r1, 30;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.param.b32 [func_retval0+0], %r1;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ret;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "}"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".visible .func (.param .b32 func_retval0) cudaFuncGetAttributes("
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .b64 cudaFuncGetAttributes_param_0,"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .b64 cudaFuncGetAttributes_param_1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ")"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "{"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.u64 %SPL, __local_depot1;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " cvta.local.u64 %SP, %SPL;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u64 %rd2, [cudaFuncGetAttributes_param_1];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u64 %rd1, [cudaFuncGetAttributes_param_0];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u64 [%SP+0], %rd1;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u64 [%SP+8], %rd2;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.u32 %r1, 30;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.param.b32 [func_retval0+0], %r1;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ret;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "}"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".visible .func (.param .b32 func_retval0) cudaDeviceGetAttribute("
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .b64 cudaDeviceGetAttribute_param_0,"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .b32 cudaDeviceGetAttribute_param_1,"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .b32 cudaDeviceGetAttribute_param_2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ")"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "{"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.u64 %SPL, __local_depot2;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " cvta.local.u64 %SP, %SPL;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u32 %r2, [cudaDeviceGetAttribute_param_2];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u32 %r1, [cudaDeviceGetAttribute_param_1];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u64 %rd1, [cudaDeviceGetAttribute_param_0];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u64 [%SP+0], %rd1;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u32 [%SP+8], %r1;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u32 [%SP+12], %r2;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.u32 %r3, 30;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.param.b32 [func_retval0+0], %r3;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ret;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "}"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".visible .func (.param .b32 func_retval0) cudaGetDevice("
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .b64 cudaGetDevice_param_0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ")"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "{"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.u64 %SPL, __local_depot3;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " cvta.local.u64 %SP, %SPL;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u64 %rd1, [cudaGetDevice_param_0];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u64 [%SP+0], %rd1;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.u32 %r1, 30;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.param.b32 [func_retval0+0], %r1;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ret;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "}"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".visible .func (.param .b32 func_retval0) cudaOccupancyMaxActiveBlocksPerMultiprocessor("
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .b64 cudaOccupancyMaxActiveBlocksPerMultiprocessor_param_0,"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .b64 cudaOccupancyMaxActiveBlocksPerMultiprocessor_param_1,"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .b32 cudaOccupancyMaxActiveBlocksPerMultiprocessor_param_2,"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .b64 cudaOccupancyMaxActiveBlocksPerMultiprocessor_param_3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ")"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "{"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.u64 %SPL, __local_depot4;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " cvta.local.u64 %SP, %SPL;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u64 %rd3, [cudaOccupancyMaxActiveBlocksPerMultiprocessor_param_3];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u32 %r1, [cudaOccupancyMaxActiveBlocksPerMultiprocessor_param_2];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u64 %rd2, [cudaOccupancyMaxActiveBlocksPerMultiprocessor_param_1];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u64 %rd1, [cudaOccupancyMaxActiveBlocksPerMultiprocessor_param_0];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u64 [%SP+0], %rd1;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u64 [%SP+8], %rd2;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u32 [%SP+16], %r1;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u64 [%SP+24], %rd3;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.u32 %r2, 30;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.param.b32 [func_retval0+0], %r2;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ret;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "}"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".visible .func (.param .b32 func_retval0) cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags("
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .b64 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_param_0,"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .b64 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_param_1,"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .b32 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_param_2,"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .b64 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_param_3,"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .b32 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_param_4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ")"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "{"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.u64 %SPL, __local_depot5;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " cvta.local.u64 %SP, %SPL;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u32 %r2, [cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_param_4];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u64 %rd3, [cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_param_3];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u32 %r1, [cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_param_2];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u64 %rd2, [cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_param_1];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u64 %rd1, [cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_param_0];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u64 [%SP+0], %rd1;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u64 [%SP+8], %rd2;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u32 [%SP+16], %r1;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u64 [%SP+24], %rd3;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u32 [%SP+32], %r2;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.u32 %r3, 30;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.param.b32 [func_retval0+0], %r3;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ret;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "}"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".visible .entry _Z6vecAddPfS_S_i("
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .u64 _Z6vecAddPfS_S_i_param_0,"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .u64 _Z6vecAddPfS_S_i_param_1,"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .u64 _Z6vecAddPfS_S_i_param_2,"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .u32 _Z6vecAddPfS_S_i_param_3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ")"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "{"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.u64 %SPL, __local_depot6;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " cvta.local.u64 %SP, %SPL;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u32 %r1, [_Z6vecAddPfS_S_i_param_3];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u64 %rd3, [_Z6vecAddPfS_S_i_param_2];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u64 %rd2, [_Z6vecAddPfS_S_i_param_1];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u64 %rd1, [_Z6vecAddPfS_S_i_param_0];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " cvta.to.global.u64 %rd4, %rd3;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " cvta.global.u64 %rd5, %rd4;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " cvta.to.global.u64 %rd6, %rd2;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " cvta.global.u64 %rd7, %rd6;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " cvta.to.global.u64 %rd8, %rd1;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " cvta.global.u64 %rd9, %rd8;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u64 [%SP+0], %rd9;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u64 [%SP+8], %rd7;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u64 [%SP+16], %rd5;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u32 [%SP+24], %r1;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.u32 %r2, %ctaid.x;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.u32 %r3, %ntid.x;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mul.lo.s32 %r4, %r2, %r3;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.u32 %r5, %tid.x;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " add.s32 %r6, %r4, %r5;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.u32 [%SP+28], %r6;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.u32 %r7, [%SP+28];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.u32 %r8, [%SP+24];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " setp.ge.s32 %p1, %r7, %r8;"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "LBB6_2",
|
||||
"range": {
|
||||
"endCol": 31,
|
||||
"startCol": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " @%p1 bra LBB6_2;"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "LBB6_1",
|
||||
"range": {
|
||||
"endCol": 31,
|
||||
"startCol": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " bra.uni LBB6_1;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "LBB6_1:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.u64 %rd10, [%SP+0];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.s32 %rd11, [%SP+28];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " shl.b64 %rd12, %rd11, 2;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " add.s64 %rd13, %rd10, %rd12;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.f32 %f1, [%rd13];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.u64 %rd14, [%SP+8];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " add.s64 %rd15, %rd14, %rd12;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.f32 %f2, [%rd15];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " add.rn.f32 %f3, %f1, %f2;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.u64 %rd16, [%SP+16];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " add.s64 %rd17, %rd16, %rd12;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " st.f32 [%rd17], %f3;"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "LBB6_2",
|
||||
"range": {
|
||||
"endCol": 31,
|
||||
"startCol": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " bra.uni LBB6_2;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "LBB6_2:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ret;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "}"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"LBB6_1": 153,
|
||||
"LBB6_2": 167,
|
||||
"entry": 118,
|
||||
"func": 92
|
||||
}
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "main: # @main"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/home/mgodbolt/dev/compiler-explorer/<stdin>",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " pushq %rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/home/mgodbolt/dev/compiler-explorer/<stdin>",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movq %rsp, %rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "/home/mgodbolt/dev/compiler-explorer/<stdin>",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movl $.L.str, %edi"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "/home/mgodbolt/dev/compiler-explorer/<stdin>",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " xorb %al, %al"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "/home/mgodbolt/dev/compiler-explorer/<stdin>",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " callq printf"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 3,
|
||||
"file": "/home/mgodbolt/dev/compiler-explorer/<stdin>",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movl $str, %edi"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 3,
|
||||
"file": "/home/mgodbolt/dev/compiler-explorer/<stdin>",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " callq puts"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 3,
|
||||
"file": "/home/mgodbolt/dev/compiler-explorer/<stdin>",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " xorl %eax, %eax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "/home/mgodbolt/dev/compiler-explorer/<stdin>",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " popq %rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "/home/mgodbolt/dev/compiler-explorer/<stdin>",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L.str:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .asciz \"Hello world\""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "str:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .asciz \"moo\""
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".L.str": 12,
|
||||
"main": 1,
|
||||
"str": 14
|
||||
}
|
||||
}
|
||||
+203
@@ -0,0 +1,203 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z8maxArrayPdS_: # @_Z8maxArrayPdS_"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 1,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " xor eax, eax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".LBB0_1: # =>This Inner Loop Header: Depth=1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 13,
|
||||
"file": "example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movsd xmm0, qword ptr [rsi + 8*rax]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 13,
|
||||
"file": "example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ucomisd xmm0, qword ptr [rdi + 8*rax]"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".LBB0_3",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"column": 13,
|
||||
"file": "example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " jbe .LBB0_3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 26,
|
||||
"file": "example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movsd qword ptr [rdi + 8*rax], xmm0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".LBB0_3: # in Loop: Header=BB0_1 Depth=1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 10,
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " lea rcx, qword ptr [rax + 1]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 13,
|
||||
"file": "example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movsd xmm0, qword ptr [rsi + 8*rax + 8]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 13,
|
||||
"file": "example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ucomisd xmm0, qword ptr [rdi + 8*rax + 8]"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".LBB0_5",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"column": 13,
|
||||
"file": "example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " jbe .LBB0_5"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 26,
|
||||
"file": "example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movsd qword ptr [rdi + 8*rax + 8], xmm0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".LBB0_5: # in Loop: Header=BB0_1 Depth=1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 10,
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " inc rcx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 10,
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " cmp rcx, 65536"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 10,
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov rax, rcx"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".LBB0_1",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"column": 10,
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " jne .LBB0_1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "example.cpp",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".LBB0_1": 3,
|
||||
".LBB0_3": 8,
|
||||
".LBB0_5": 14,
|
||||
"_Z8maxArrayPdS_": 1
|
||||
}
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_main: ## @main"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " pushq %rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movq %rsp, %rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " xorl %eax, %eax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 2,
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " popq %rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 2,
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " retq"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"_main": 1
|
||||
}
|
||||
}
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "Char:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte 128 # 0x80"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "Short:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .short 4660 # 0x1234"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "Int:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .long 123 # 0x7b"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "Long:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .quad 2345 # 0x929"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"Char": 1,
|
||||
"Int": 5,
|
||||
"Long": 7,
|
||||
"Short": 3
|
||||
}
|
||||
}
|
||||
+4164
File diff suppressed because it is too large
Load Diff
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"asm": [],
|
||||
"labelDefinitions": {}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
+1484
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+39
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z3fooRKSt17basic_string_viewIcSt11char_traitsIcEE: # @_Z3fooRKSt17basic_string_viewIcSt11char_traitsIcEE"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 17,
|
||||
"file": "/opt/compiler-explorer/gcc-11.1.0/lib/gcc/x86_64-linux-gnu/11.1.0/../../../../include/c++/11.1.0/string_view",
|
||||
"line": 235
|
||||
},
|
||||
"text": " mov rax, qword ptr [rdi + 8]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 45,
|
||||
"file": null,
|
||||
"line": 2
|
||||
},
|
||||
"text": " movsx eax, byte ptr [rax]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 38,
|
||||
"file": null,
|
||||
"line": 2
|
||||
},
|
||||
"text": " ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"_Z3fooRKSt17basic_string_viewIcSt11char_traitsIcEE": 1
|
||||
}
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z3fooRKSt17basic_string_viewIcSt11char_traitsIcEE: # @_Z3fooRKSt17basic_string_viewIcSt11char_traitsIcEE"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 17,
|
||||
"file": "/opt/compiler-explorer/gcc-11.1.0/lib/gcc/x86_64-linux-gnu/11.1.0/../../../../include/c++/11.1.0/string_view",
|
||||
"line": 235
|
||||
},
|
||||
"text": " mov rax, qword ptr [rdi + 8]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 45,
|
||||
"file": null,
|
||||
"line": 2
|
||||
},
|
||||
"text": " movsx eax, byte ptr [rax]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 38,
|
||||
"file": null,
|
||||
"line": 2
|
||||
},
|
||||
"text": " ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"_Z3fooRKSt17basic_string_viewIcSt11char_traitsIcEE": 1
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z3fooRKSt17basic_string_viewIcSt11char_traitsIcEE: # @_Z3fooRKSt17basic_string_viewIcSt11char_traitsIcEE"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 17,
|
||||
"file": "/opt/compiler-explorer/gcc-11.1.0/lib/gcc/x86_64-linux-gnu/11.1.0/../../../../include/c++/11.1.0/string_view",
|
||||
"line": 235,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov rax, qword ptr [rdi + 8]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 45,
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movsx eax, byte ptr [rax]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 38,
|
||||
"file": "example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"_Z3fooRKSt17basic_string_viewIcSt11char_traitsIcEE": 1
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
+23816
File diff suppressed because it is too large
Load Diff
+2
@@ -0,0 +1,2 @@
|
||||
#include <string_view>
|
||||
int foo(const std::string_view& s) { return s[0]; }
|
||||
Generated
+9372
File diff suppressed because it is too large
Load Diff
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"asm": [],
|
||||
"labelDefinitions": {}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+30
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z3cvtN3eve7logicalINS_10avx_abi_v04wideIsNS_5fixedILl8EEEEEEE: # @_Z3cvtN3eve7logicalINS_10avx_abi_v04wideIsNS_5fixedILl8EEEEEEE"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 20,
|
||||
"file": "/opt/compiler-explorer/libs/eve/trunk/include/eve/module/real/core/function/regular/simd/x86/convert_256.hpp",
|
||||
"line": 130
|
||||
},
|
||||
"text": " vpmovsxwd ymm0, xmm0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 6,
|
||||
"file": null,
|
||||
"line": 14
|
||||
},
|
||||
"text": " ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"_Z3cvtN3eve7logicalINS_10avx_abi_v04wideIsNS_5fixedILl8EEEEEEE": 1
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z3cvtN3eve7logicalINS_10avx_abi_v04wideIsNS_5fixedILl8EEEEEEE: # @_Z3cvtN3eve7logicalINS_10avx_abi_v04wideIsNS_5fixedILl8EEEEEEE"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 20,
|
||||
"file": "/opt/compiler-explorer/libs/eve/trunk/include/eve/module/real/core/function/regular/simd/x86/convert_256.hpp",
|
||||
"line": 130
|
||||
},
|
||||
"text": " vpmovsxwd ymm0, xmm0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 6,
|
||||
"file": null,
|
||||
"line": 14
|
||||
},
|
||||
"text": " ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"_Z3cvtN3eve7logicalINS_10avx_abi_v04wideIsNS_5fixedILl8EEEEEEE": 1
|
||||
}
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z3cvtN3eve7logicalINS_10avx_abi_v04wideIsNS_5fixedILl8EEEEEEE: # @_Z3cvtN3eve7logicalINS_10avx_abi_v04wideIsNS_5fixedILl8EEEEEEE"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 20,
|
||||
"file": "/opt/compiler-explorer/libs/eve/trunk/include/eve/module/real/core/function/regular/simd/x86/convert_256.hpp",
|
||||
"line": 130,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " vpmovsxwd ymm0, xmm0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 6,
|
||||
"file": "example.cpp",
|
||||
"line": 14,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"_Z3cvtN3eve7logicalINS_10avx_abi_v04wideIsNS_5fixedILl8EEEEEEE": 1
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
+53554
File diff suppressed because it is too large
Load Diff
Generated
+15
@@ -0,0 +1,15 @@
|
||||
#include <eve/eve.hpp>
|
||||
|
||||
#include <eve/algo/for_each_iteration.hpp>
|
||||
#include <eve/algo/preprocess_range.hpp>
|
||||
#include <eve/algo/ptr_iterator.hpp>
|
||||
#include <eve/algo/traits.hpp>
|
||||
|
||||
#include <eve/function/compress_store.hpp>
|
||||
#include <eve/function/convert.hpp>
|
||||
#include <eve/function/replace.hpp>
|
||||
|
||||
auto cvt(eve::logical<eve::wide<std::int16_t, eve::fixed<8>>> x) {
|
||||
using l_u = eve::logical<std::uint32_t>;
|
||||
return eve::convert(x, eve::as<l_u>{});
|
||||
}
|
||||
Generated
+2560
File diff suppressed because it is too large
Load Diff
Generated
+1315
File diff suppressed because it is too large
Load Diff
test/filters-cases/gcc-arm-sum.asm.directives.labels.comments.library.dontMaskFilenames.approved.txt
Generated
+256
@@ -0,0 +1,256 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z12testFunctionPii:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 1,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " sub sp, sp, #32"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 1,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " str x0, [sp, 8]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 1,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " str w1, [sp, 4]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " str wzr, [sp, 24]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " str wzr, [sp, 28]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L3:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ldr w1, [sp, 28]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ldr w0, [sp, 4]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " cmp w1, w0"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L2",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " bge .L2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ldrsw x0, [sp, 28]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " lsl x0, x0, 2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ldr x1, [sp, 8]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " add x0, x1, x0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ldr w0, [x0]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ldr w1, [sp, 24]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " add w0, w1, w0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " str w0, [sp, 24]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ldr w0, [sp, 28]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " add w0, w0, 1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " str w0, [sp, 28]"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L3",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " b .L3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L2:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 6,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ldr w0, [sp, 24]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 7,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " add sp, sp, 32"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 7,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".L2": 24,
|
||||
".L3": 7,
|
||||
"_Z12testFunctionPii": 1
|
||||
}
|
||||
}
|
||||
test/filters-cases/gcc-avr-sum.asm.directives.labels.comments.library.dontMaskFilenames.approved.txt
Generated
+736
@@ -0,0 +1,736 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "__SREG__ = 0x3f"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "__SP_H__ = 0x3e"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "__SP_L__ = 0x3d"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "__tmp_reg__ = 0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "__zero_reg__ = 1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z12testFunctionPii:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 1
|
||||
},
|
||||
"text": " push r29"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 1
|
||||
},
|
||||
"text": " push r28"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__SP_L__",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 16
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 1
|
||||
},
|
||||
"text": " in r28,__SP_L__"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__SP_H__",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 16
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 1
|
||||
},
|
||||
"text": " in r29,__SP_H__"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 1
|
||||
},
|
||||
"text": " sbiw r28,8"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__tmp_reg__",
|
||||
"range": {
|
||||
"endCol": 23,
|
||||
"startCol": 12
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "__SREG__",
|
||||
"range": {
|
||||
"endCol": 32,
|
||||
"startCol": 24
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 1
|
||||
},
|
||||
"text": " in __tmp_reg__,__SREG__"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 1
|
||||
},
|
||||
"text": " cli"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__SP_H__",
|
||||
"range": {
|
||||
"endCol": 21,
|
||||
"startCol": 13
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 1
|
||||
},
|
||||
"text": " out __SP_H__,r29"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__SREG__",
|
||||
"range": {
|
||||
"endCol": 21,
|
||||
"startCol": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "__tmp_reg__",
|
||||
"range": {
|
||||
"endCol": 33,
|
||||
"startCol": 22
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 1
|
||||
},
|
||||
"text": " out __SREG__,__tmp_reg__"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__SP_L__",
|
||||
"range": {
|
||||
"endCol": 21,
|
||||
"startCol": 13
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 1
|
||||
},
|
||||
"text": " out __SP_L__,r28"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 1
|
||||
},
|
||||
"text": " std Y+6,r25"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 1
|
||||
},
|
||||
"text": " std Y+5,r24"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 1
|
||||
},
|
||||
"text": " std Y+8,r23"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 1
|
||||
},
|
||||
"text": " std Y+7,r22"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__zero_reg__",
|
||||
"range": {
|
||||
"endCol": 29,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 2
|
||||
},
|
||||
"text": " std Y+2,__zero_reg__"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__zero_reg__",
|
||||
"range": {
|
||||
"endCol": 29,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 2
|
||||
},
|
||||
"text": " std Y+1,__zero_reg__"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__zero_reg__",
|
||||
"range": {
|
||||
"endCol": 29,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " std Y+4,__zero_reg__"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__zero_reg__",
|
||||
"range": {
|
||||
"endCol": 29,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " std Y+3,__zero_reg__"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L2",
|
||||
"range": {
|
||||
"endCol": 17,
|
||||
"startCol": 14
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " rjmp .L2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L4:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " ldd r24,Y+3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " ldd r25,Y+4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " lsl r24"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " rol r25"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " ldd r18,Y+5"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " ldd r19,Y+6"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " add r24,r18"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " adc r25,r19"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " mov r30,r24"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " mov r31,r25"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " ld r24,Z"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " ldd r25,Z+1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " ldd r18,Y+1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " ldd r19,Y+2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " add r24,r18"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " adc r25,r19"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " std Y+2,r25"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 4
|
||||
},
|
||||
"text": " std Y+1,r24"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " ldd r24,Y+3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " ldd r25,Y+4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " adiw r24,1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " std Y+4,r25"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " std Y+3,r24"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L2:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " ldi r20,lo8(1)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " ldd r18,Y+3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " ldd r19,Y+4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " ldd r24,Y+7"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " ldd r25,Y+8"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " cp r18,r24"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " cpc r19,r25"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L3",
|
||||
"range": {
|
||||
"endCol": 17,
|
||||
"startCol": 14
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " brlt .L3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " ldi r20,lo8(0)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L3:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " tst r20"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L4",
|
||||
"range": {
|
||||
"endCol": 17,
|
||||
"startCol": 14
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 3
|
||||
},
|
||||
"text": " brne .L4"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 6
|
||||
},
|
||||
"text": " ldd r24,Y+1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 6
|
||||
},
|
||||
"text": " ldd r25,Y+2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " adiw r28,8"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__tmp_reg__",
|
||||
"range": {
|
||||
"endCol": 23,
|
||||
"startCol": 12
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "__SREG__",
|
||||
"range": {
|
||||
"endCol": 32,
|
||||
"startCol": 24
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " in __tmp_reg__,__SREG__"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " cli"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__SP_H__",
|
||||
"range": {
|
||||
"endCol": 21,
|
||||
"startCol": 13
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " out __SP_H__,r29"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__SREG__",
|
||||
"range": {
|
||||
"endCol": 21,
|
||||
"startCol": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "__tmp_reg__",
|
||||
"range": {
|
||||
"endCol": 33,
|
||||
"startCol": 22
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " out __SREG__,__tmp_reg__"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "__SP_L__",
|
||||
"range": {
|
||||
"endCol": 21,
|
||||
"startCol": 13
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " out __SP_L__,r28"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " pop r28"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " pop r29"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".L2": 50,
|
||||
".L3": 60,
|
||||
".L4": 26,
|
||||
"_Z12testFunctionPii": 6,
|
||||
"__SP_H__": 2,
|
||||
"__SP_L__": 3,
|
||||
"__SREG__": 1,
|
||||
"__tmp_reg__": 4,
|
||||
"__zero_reg__": 5
|
||||
}
|
||||
}
|
||||
Generated
+229
@@ -0,0 +1,229 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z12testFunctionPii:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 1,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " pushq %rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 1,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movq %rsp, %rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 1,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movq %rdi, -24(%rbp)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 1,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movl %esi, -28(%rbp)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movl $0, -8(%rbp)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movl $0, -4(%rbp)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L3:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movl -4(%rbp), %eax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " cmpl -28(%rbp), %eax"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L2",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " jge .L2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movl -4(%rbp), %eax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " cltq"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " leaq 0(,%rax,4), %rdx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movq -24(%rbp), %rax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " addq %rdx, %rax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movl (%rax), %eax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " addl %eax, -8(%rbp)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " addl $1, -4(%rbp)"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L3",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " jmp .L3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L2:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 6,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movl -8(%rbp), %eax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 7,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " popq %rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 7,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".L2": 21,
|
||||
".L3": 8,
|
||||
"_Z12testFunctionPii": 1
|
||||
}
|
||||
}
|
||||
+148
@@ -0,0 +1,148 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z3sumRKSt6vectorIiSaIiEE:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movl $0, %ecx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movl $0, %eax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L3:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/opt/compiler-explorer/gcc-7.1.0/include/c++/7.1.0/bits/stl_vector.h",
|
||||
"line": 671,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movq (%rdi), %rsi"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/opt/compiler-explorer/gcc-7.1.0/include/c++/7.1.0/bits/stl_vector.h",
|
||||
"line": 671,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movq 8(%rdi), %rdx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/opt/compiler-explorer/gcc-7.1.0/include/c++/7.1.0/bits/stl_vector.h",
|
||||
"line": 671,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " subq %rsi, %rdx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/opt/compiler-explorer/gcc-7.1.0/include/c++/7.1.0/bits/stl_vector.h",
|
||||
"line": 671,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " sarq $2, %rdx"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 6,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " cmpq %rdx, %rcx"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L1",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 6,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " jnb .L1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 8,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " addl (%rsi,%rcx,4), %eax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " addq $1, %rcx"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L3",
|
||||
"range": {
|
||||
"endCol": 20,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " jmp .L3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L1:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 10,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " rep ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".L1": 14,
|
||||
".L3": 4,
|
||||
"_Z3sumRKSt6vectorIiSaIiEE": 1
|
||||
}
|
||||
}
|
||||
+158
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".LC0:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .string \"Hello world\""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".LC1:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .string \"moo\\n\""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "main:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "<stdin>",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " subq $8, %rsp"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".LC0",
|
||||
"range": {
|
||||
"endCol": 22,
|
||||
"startCol": 18
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": "/usr/include/x86_64-linux-gnu/bits/stdio2.h",
|
||||
"line": 105,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movl $.LC0, %esi"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/usr/include/x86_64-linux-gnu/bits/stdio2.h",
|
||||
"line": 105,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movl $1, %edi"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/usr/include/x86_64-linux-gnu/bits/stdio2.h",
|
||||
"line": 105,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " xorl %eax, %eax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/usr/include/x86_64-linux-gnu/bits/stdio2.h",
|
||||
"line": 105,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " call __printf_chk"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".LC1",
|
||||
"range": {
|
||||
"endCol": 22,
|
||||
"startCol": 18
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": "/usr/include/x86_64-linux-gnu/bits/stdio2.h",
|
||||
"line": 105,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movl $.LC1, %esi"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/usr/include/x86_64-linux-gnu/bits/stdio2.h",
|
||||
"line": 105,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " movl $1, %edi"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/usr/include/x86_64-linux-gnu/bits/stdio2.h",
|
||||
"line": 105,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " xorl %eax, %eax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/usr/include/x86_64-linux-gnu/bits/stdio2.h",
|
||||
"line": 105,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " call __printf_chk"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "<stdin>",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " xorl %eax, %eax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "<stdin>",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " addq $8, %rsp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "<stdin>",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".LC0": 1,
|
||||
".LC1": 3,
|
||||
"main": 5
|
||||
}
|
||||
}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "LongLong:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .quad 123456"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "Long:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .quad 2345"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "Int:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .long 123"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "Short:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .value 4660"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "Char:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte -128"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"Char": 9,
|
||||
"Int": 5,
|
||||
"Long": 3,
|
||||
"LongLong": 1,
|
||||
"Short": 7
|
||||
}
|
||||
}
|
||||
Generated
+50
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "LongLong:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .long 0x0001e240,0x00000000"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "Int:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .long 123"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "Short:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .word 4660"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "Char:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte -128"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"Char": 7,
|
||||
"Int": 3,
|
||||
"LongLong": 1,
|
||||
"Short": 5
|
||||
}
|
||||
}
|
||||
Generated
+280
@@ -0,0 +1,280 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "main:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " pushq %rbp #2.12"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movq %rsp, %rbp #2.12"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " andq $-128, %rsp #2.12"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " subq $128, %rsp #2.12"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movl $3, %edi #2.12"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " call __intel_new_proc_init #2.12"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " stmxcsr (%rsp) #2.12"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movl $.L_2__STRING.0, %edi #3.1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " xorl %eax, %eax #3.1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " orl $32832, (%rsp) #2.12"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ldmxcsr (%rsp) #2.12"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " call printf #3.1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movl $.L_2__STRING.1, %edi #4.3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " xorl %eax, %eax #4.3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 4,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " call printf #4.3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " xorl %eax, %eax #5.1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " movq %rbp, %rsp #5.1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " popq %rbp #5.1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "-",
|
||||
"line": 5,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret #5.1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L_2__STRING.0:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte 72"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte 101"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte 108"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte 108"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte 111"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte 32"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte 119"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte 111"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte 114"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte 108"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte 100"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte 0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L_2__STRING.1:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte 109"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte 111"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte 111"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte 10"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .byte 0"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".L_2__STRING.0": 21,
|
||||
".L_2__STRING.1": 34,
|
||||
"main": 1
|
||||
}
|
||||
}
|
||||
+418
@@ -0,0 +1,418 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".LC0:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .string \"%s , %s , %lld , %d , %lld\\n\""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "toto:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " add $r12 = $r12, -16"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " get $r8 = $ra"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " sw 28[$r12] = $r10"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " add $r10 = $r12, 16"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld $r0r1 = 40[$r10]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld $r4r5 = 24[$r10]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " sw 24[$r12] = $r8"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " sd 16[$r12] = $r0r1"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".LC0",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 20
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " make $r0 = .LC0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " lw $r1 = 16[$r10]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;; # (end cycle 3)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " lw $r2 = 20[$r10]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " lw $r6 = 32[$r10]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " call printf"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " add $r12 = $r10, -16"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " lw $r1 = 24[$r12]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " make $r0 = 0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " lw $r10 = 28[$r12]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " add $r12 = $r12, 16"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " set $ra = $r1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".LC1:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .string \"chaine1\""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".LC2:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .string \"chaine2\""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "main:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " add $r12 = $r12, -16"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " get $r8 = $ra"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".LC2",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 20
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " make $r2 = .LC2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " sw 28[$r12] = $r10"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " maked $r0r1 = 123456"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " add $r10 = $r12, 16"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " make $r6 = 256"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " sw 24[$r12] = $r8"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " maked $r4r5 = 12345"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " sd 16[$r12] = $r0r1"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".LC1",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 20
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " make $r1 = .LC1"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".LC0",
|
||||
"range": {
|
||||
"endCol": 24,
|
||||
"startCol": 20
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " make $r0 = .LC0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " call printf"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " add $r12 = $r10, -16"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " lw $r1 = 24[$r12]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " make $r0 = 0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " lw $r10 = 28[$r12]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " add $r12 = $r12, 16"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " set $ra = $r1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ret"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ;;"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".LC0": 1,
|
||||
".LC1": 39,
|
||||
".LC2": 42,
|
||||
"main": 45,
|
||||
"toto": 3
|
||||
}
|
||||
}
|
||||
+139
@@ -0,0 +1,139 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "define dso_local void @_Z4testi(i32 %arg) local_unnamed_addr {"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "bb:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " %i = icmp sgt i32 %arg, 0"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".preheader",
|
||||
"range": {
|
||||
"endCol": 30,
|
||||
"startCol": 20
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": ".loopexit",
|
||||
"range": {
|
||||
"endCol": 48,
|
||||
"startCol": 39
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " br i1 %i, label %.preheader, label %.loopexit"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".loopexit: ; preds = %.preheader, %bb"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ret void"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".preheader: ; preds = %bb, %.preheader"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".preheader",
|
||||
"range": {
|
||||
"endCol": 35,
|
||||
"startCol": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "bb",
|
||||
"range": {
|
||||
"endCol": 47,
|
||||
"startCol": 45
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " %i1 = phi i32 [ %i2, %.preheader ], [ 0, %bb ]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " tail call void @_Z4calli(i32 %i1)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " %i2 = add nuw nsw i32 %i1, 1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " %i3 = icmp eq i32 %i2, %arg"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".loopexit",
|
||||
"range": {
|
||||
"endCol": 30,
|
||||
"startCol": 21
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": ".preheader",
|
||||
"range": {
|
||||
"endCol": 49,
|
||||
"startCol": 39
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " br i1 %i3, label %.loopexit, label %.preheader"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "}"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "declare dso_local void @_Z4calli(i32) local_unnamed_addr"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".loopexit": 6,
|
||||
".preheader": 9,
|
||||
"bb": 2
|
||||
}
|
||||
}
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "square:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " subi sp,16"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " stw r8,(sp,8)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov r8,sp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " stw r2,(r8)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ldw r7,(r8)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mult r7,r7"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov r2,r7"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov sp,r8"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ldw r8,(sp,8)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " addi sp,16"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " jmp r15"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"square": 1
|
||||
}
|
||||
}
|
||||
+125
@@ -0,0 +1,125 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z6squarei:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 1,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " addiu $sp,$sp,-8"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 1,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " sw $fp,4($sp)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 1,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " move $fp,$sp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 1,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " sw $4,8($fp)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " lw $3,8($fp)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " lw $2,8($fp)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 2,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mul $2,$3,$2"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " move $sp,$fp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " lw $fp,4($sp)"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " addiu $sp,$sp,8"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " j $31"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "/tmp/example.cpp",
|
||||
"line": 3,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " nop"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"_Z6squarei": 1
|
||||
}
|
||||
}
|
||||
+267
@@ -0,0 +1,267 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".visible .entry _Z6vecAddPfS_S_i("
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .u64 _Z6vecAddPfS_S_i_param_0,"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .u64 _Z6vecAddPfS_S_i_param_1,"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .u64 _Z6vecAddPfS_S_i_param_2,"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .param .u32 _Z6vecAddPfS_S_i_param_3"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ")"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "{"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u64 %rd1, [_Z6vecAddPfS_S_i_param_0];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u64 %rd2, [_Z6vecAddPfS_S_i_param_1];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u64 %rd3, [_Z6vecAddPfS_S_i_param_2];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " ld.param.u32 %r2, [_Z6vecAddPfS_S_i_param_3];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 12,
|
||||
"file": "/tmp/moo.cu",
|
||||
"line": 9,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov.u32 %r3, %ctaid.x;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 12,
|
||||
"file": "/tmp/moo.cu",
|
||||
"line": 9,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov.u32 %r4, %ntid.x;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 12,
|
||||
"file": "/tmp/moo.cu",
|
||||
"line": 9,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mov.u32 %r5, %tid.x;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 12,
|
||||
"file": "/tmp/moo.cu",
|
||||
"line": 9,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mad.lo.s32 %r1, %r4, %r3, %r5;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 5,
|
||||
"file": "/tmp/moo.cu",
|
||||
"line": 12,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " setp.ge.s32 %p1, %r1, %r2;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 5,
|
||||
"file": "/tmp/moo.cu",
|
||||
"line": 12,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " @%p1 bra BB0_2;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 12,
|
||||
"file": "/tmp/moo.cu",
|
||||
"line": 9,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " cvta.to.global.u64 %rd4, %rd1;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/tmp/moo.cu",
|
||||
"line": 13,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " mul.wide.s32 %rd5, %r1, 4;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/tmp/moo.cu",
|
||||
"line": 13,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " add.s64 %rd6, %rd4, %rd5;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 12,
|
||||
"file": "/tmp/moo.cu",
|
||||
"line": 9,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " cvta.to.global.u64 %rd7, %rd2;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/tmp/moo.cu",
|
||||
"line": 13,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " add.s64 %rd8, %rd7, %rd5;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/tmp/moo.cu",
|
||||
"line": 13,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " ld.global.f32 %f1, [%rd8];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/tmp/moo.cu",
|
||||
"line": 13,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " ld.global.f32 %f2, [%rd6];"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/tmp/moo.cu",
|
||||
"line": 13,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " add.f32 %f3, %f2, %f1;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 12,
|
||||
"file": "/tmp/moo.cu",
|
||||
"line": 9,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " cvta.to.global.u64 %rd9, %rd3;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/tmp/moo.cu",
|
||||
"line": 13,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " add.s64 %rd10, %rd9, %rd5;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 9,
|
||||
"file": "/tmp/moo.cu",
|
||||
"line": 13,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " st.global.f32 [%rd10], %f3;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"column": 1,
|
||||
"file": "/tmp/moo.cu",
|
||||
"line": 14,
|
||||
"mainsource": false
|
||||
},
|
||||
"text": " ret;"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "}"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ""
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"entry": 1
|
||||
}
|
||||
}
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_square:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " push.l r10"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " push.l r6"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " add #-4, r0, r6"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.L r6, r0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.L r1, [r6]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.L [r6], r10"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mul r10, r10"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " mov.L r10, r1"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " add #4, r0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " pop r6"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " pop r10"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " rts"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
"_square": 1
|
||||
}
|
||||
}
|
||||
test/filters-cases/sass-square.asm.directives.labels.comments.library.dontMaskFilenames.approved.txt
Generated
+71
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z6squarePii:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "S2R R0, SR_CTAID.X; /* 0x2c00000094001c04 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "ISETP.GE.AND P0, PT, R0, c[0x0][0x148], PT; /* 0x1b0e40052001dc23 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "ISCADD R2.CC, R0, c[0x0][0x140], 0x2; /* 0x4001400500009c43 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "MOV32I R3, 0x4; /* 0x180000001000dde2 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "IMAD.HI.X R3, R0, R3, c[0x0][0x144]; /* 0x208680051000dce3 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "IMUL R4, R0, R0; /* 0x5000000000011ca3 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "ST.E [R2], R4; /* 0x9400000000211c85 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "EXIT; /* 0x8000000000001de7 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L_1:"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L_1",
|
||||
"range": {
|
||||
"endCol": 11,
|
||||
"startCol": 7
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": "BRA `(.L_1); /* 0x4003ffffe0001de7 */"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".L_1": 10,
|
||||
"_Z6squarePii": 1
|
||||
}
|
||||
}
|
||||
+106
@@ -0,0 +1,106 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "_Z6squarePii:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "S2R R0, SR_CTAID.X; /* 0x2c00000094001c04 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "ISETP.GE.AND P0, PT, R0, c[0x0][0x148], PT; /* 0x1b0e40052001dc23 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "MOV R0, c[0x0][0x148]; /* 0x2800400520001de4 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "MOV32I R3, 0x4; /* 0x180000001000dde2 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "IADD32I R0, R0, -0x1; /* 0x0bfffffffc001c02 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "IMAD.HI.X R3, R0, R3, c[0x0][0x144]; /* 0x208680051000dce3 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "ST.E [R2], RZ; /* 0x94000000002fdc85 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "EXIT; /* 0x8000000000001de7 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "ISCADD R2.CC, R0, c[0x0][0x140], 0x2; /* 0x4001400500009c43 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "MOV32I R3, 0x4; /* 0x180000001000dde2 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "IMAD.HI.X R3, R0, R3, c[0x0][0x144]; /* 0x208680051000dce3 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "IMAD R0, R0, R0, c[0x0][0x148]; /* 0x2000800520001ca3 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "IADD32I R4, R0, 0x1; /* 0x0800000004011c02 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "ST.E [R2], R4; /* 0x9400000000211c85 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "EXIT; /* 0x8000000000001de7 */"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".L_2:"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".L_2",
|
||||
"range": {
|
||||
"endCol": 11,
|
||||
"startCol": 7
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": "BRA `(.L_2); /* 0x4003ffffe0001de7 */"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".L_2": 17,
|
||||
"_Z6squarePii": 1
|
||||
}
|
||||
}
|
||||
+151
@@ -0,0 +1,151 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": ".LC0:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .string \"hello world!\""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "s_sA:"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": ".LC0",
|
||||
"range": {
|
||||
"endCol": 21,
|
||||
"startCol": 17
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": null,
|
||||
"text": " .quad .LC0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "s_sB:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": " .string \"hey there\""
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": null,
|
||||
"text": "main:"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 6,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " push rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 6,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov rbp, rsp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 7,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov rax, QWORD PTR s_sA[rip]"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 7,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov rdi, rax"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 7,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " call puts"
|
||||
},
|
||||
{
|
||||
"labels": [
|
||||
{
|
||||
"name": "s_sB",
|
||||
"range": {
|
||||
"endCol": 38,
|
||||
"startCol": 34
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 8,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov edi, OFFSET FLAT:s_sB"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 8,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " call puts"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 9,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " mov eax, 0"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 9,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " pop rbp"
|
||||
},
|
||||
{
|
||||
"labels": [],
|
||||
"source": {
|
||||
"file": "example.cpp",
|
||||
"line": 9,
|
||||
"mainsource": true
|
||||
},
|
||||
"text": " ret"
|
||||
}
|
||||
],
|
||||
"labelDefinitions": {
|
||||
".LC0": 1,
|
||||
"main": 7,
|
||||
"s_sA": 3,
|
||||
"s_sB": 5
|
||||
}
|
||||
}
|
||||
+192
@@ -0,0 +1,192 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"source": null,
|
||||
"text": "a$ = 32"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "__$ArrayPad$ = 80"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "main PROC"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "$LN3:"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " sub rsp, 104 ; 00000068H"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " mov rax, QWORD PTR __security_cookie"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " xor rax, rsp"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 10
|
||||
},
|
||||
"text": " mov QWORD PTR __$ArrayPad$[rsp], rax"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " mov DWORD PTR a$[rsp], 1"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " mov DWORD PTR a$[rsp+4], 3"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " mov DWORD PTR a$[rsp+8], 4"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " mov DWORD PTR a$[rsp+12], 2"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " mov DWORD PTR a$[rsp+16], 3"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " mov DWORD PTR a$[rsp+20], 5"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " mov DWORD PTR a$[rsp+24], 6"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " mov DWORD PTR a$[rsp+28], 4"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " mov DWORD PTR a$[rsp+32], 8"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " mov DWORD PTR a$[rsp+36], 9"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " mov DWORD PTR a$[rsp+40], 2"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " mov edx, 2"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " lea rcx, QWORD PTR a$[rsp]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " call ??A?$array@H$0L@@std@@QEBAAEBH_K@Z ; std::array<int,11>::operator[]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " mov eax, DWORD PTR [rax]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 14
|
||||
},
|
||||
"text": " mov rcx, QWORD PTR __$ArrayPad$[rsp]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 14
|
||||
},
|
||||
"text": " xor rcx, rsp"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 14
|
||||
},
|
||||
"text": " call __security_check_cookie"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 14
|
||||
},
|
||||
"text": " add rsp, 104 ; 00000068H"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 14
|
||||
},
|
||||
"text": " ret 0"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "main ENDP"
|
||||
}
|
||||
]
|
||||
}
|
||||
Generated
+12
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"source": null,
|
||||
"text": "1234"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
Generated
+449
@@ -0,0 +1,449 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"source": null,
|
||||
"text": "$SG39290 DB 'Some people, when confronted with a problem, think \"I k'"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": " DB 'now, I''ll use regular expressions.\" Now they have two proble'"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": " DB 'ms.', 00H"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "$SG39291 DB 'REGULAR EXPRESSIONS', 00H"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "__unwindtable$?regexTest@@YAXXZ DD 0ffffffffH"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": " DD FLAT:__unwindfunclet$?regexTest@@YAXXZ$0"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "__ehfuncinfo$?regexTest@@YAXXZ DD 019930522H"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": " DD 01H"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": " DD FLAT:__unwindtable$?regexTest@@YAXXZ"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": " DD 2 DUP(00H)"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": " DD 2 DUP(00H)"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": " DD 00H"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": " DD 01H"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "_self_regex$ = -60 ; size = 20"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "_s$ = -40 ; size = 24"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "__$ArrayPad$ = -16 ; size = 4"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "__$EHRec$ = -12 ; size = 12"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "?regexTest@@YAXXZ PROC ; regexTest"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " push ebp"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " mov ebp, esp"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " push -1"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " push __ehhandler$?regexTest@@YAXXZ"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " mov eax, DWORD PTR fs:0"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " push eax"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " sub esp, 48 ; 00000030H"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " mov eax, DWORD PTR ___security_cookie"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " xor eax, ebp"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " mov DWORD PTR __$ArrayPad$[ebp], eax"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " push eax"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " lea eax, DWORD PTR __$EHRec$[ebp]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 7
|
||||
},
|
||||
"text": " mov DWORD PTR fs:0, eax"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 8
|
||||
},
|
||||
"text": " push OFFSET $SG39290"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 8
|
||||
},
|
||||
"text": " lea ecx, DWORD PTR _s$[ebp]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 8
|
||||
},
|
||||
"text": " call ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@QBD@Z ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::basic_string<char,std::char_traits<char>,std::allocator<char> >"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 8
|
||||
},
|
||||
"text": " mov DWORD PTR __$EHRec$[ebp+8], 0"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " push 256 ; 00000100H"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " push 1"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " call ??Uregex_constants@std@@YA?AW4syntax_option_type@01@W4201@0@Z ; std::regex_constants::operator|"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " add esp, 8"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " push eax"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " push OFFSET $SG39291"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " lea ecx, DWORD PTR _self_regex$[ebp]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 11
|
||||
},
|
||||
"text": " call ??0?$basic_regex@DV?$regex_traits@D@std@@@std@@QAE@PBDW4syntax_option_type@regex_constants@1@@Z ; std::basic_regex<char,std::regex_traits<char> >::basic_regex<char,std::regex_traits<char> >"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " lea ecx, DWORD PTR _self_regex$[ebp]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " call ??1?$basic_regex@DV?$regex_traits@D@std@@@std@@QAE@XZ ; std::basic_regex<char,std::regex_traits<char> >::~basic_regex<char,std::regex_traits<char> >"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " mov DWORD PTR __$EHRec$[ebp+8], -1"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " lea ecx, DWORD PTR _s$[ebp]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " call ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " mov ecx, DWORD PTR __$EHRec$[ebp]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " mov DWORD PTR fs:0, ecx"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " pop ecx"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " mov ecx, DWORD PTR __$ArrayPad$[ebp]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " xor ecx, ebp"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " call @__security_check_cookie@4"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " mov esp, ebp"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " pop ebp"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " ret 0"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "__unwindfunclet$?regexTest@@YAXXZ$0:"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " lea ecx, DWORD PTR _s$[ebp]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " jmp ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ ; std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "__ehhandler$?regexTest@@YAXXZ:"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " mov edx, DWORD PTR [esp+8]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " lea eax, DWORD PTR [edx+12]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " mov ecx, DWORD PTR [edx-52]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " xor ecx, eax"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " call @__security_check_cookie@4"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " mov ecx, DWORD PTR [edx-4]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " xor ecx, eax"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " call @__security_check_cookie@4"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " mov eax, OFFSET __ehfuncinfo$?regexTest@@YAXXZ"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 13
|
||||
},
|
||||
"text": " jmp ___CxxFrameHandler3"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "?regexTest@@YAXXZ ENDP ; regexTest"
|
||||
}
|
||||
]
|
||||
}
|
||||
+337
@@ -0,0 +1,337 @@
|
||||
{
|
||||
"asm": [
|
||||
{
|
||||
"source": null,
|
||||
"text": "_TLS SEGMENT"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "?h@@3HA DD 012345H ; h"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": " ORG $+4"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "?g@@3Usafetls@@A DD 098765H ; g"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": " ORG $+8"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "_TLS ENDS"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "this$ = 8"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "?value@safetls@@QEAAHXZ PROC ; safetls::value, COMDAT"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 9
|
||||
},
|
||||
"text": " mov QWORD PTR [rsp+8], rcx"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 9
|
||||
},
|
||||
"text": " mov rax, QWORD PTR this$[rsp]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 9
|
||||
},
|
||||
"text": " mov rcx, QWORD PTR this$[rsp]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 9
|
||||
},
|
||||
"text": " mov ecx, DWORD PTR [rcx+4]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 9
|
||||
},
|
||||
"text": " mov eax, DWORD PTR [rax]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 9
|
||||
},
|
||||
"text": " sub eax, ecx"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 9
|
||||
},
|
||||
"text": " mov rcx, QWORD PTR this$[rsp]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 9
|
||||
},
|
||||
"text": " add eax, DWORD PTR [rcx+8]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 9
|
||||
},
|
||||
"text": " ret 0"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "?value@safetls@@QEAAHXZ ENDP ; safetls::value"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "?func@@YAHXZ PROC ; func, COMDAT"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "$LN3:"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 16
|
||||
},
|
||||
"text": " sub rsp, 40 ; 00000028H"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 17
|
||||
},
|
||||
"text": " mov eax, OFFSET FLAT:?g@@3Usafetls@@A ; g"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 17
|
||||
},
|
||||
"text": " mov eax, eax"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 17
|
||||
},
|
||||
"text": " mov ecx, DWORD PTR _tls_index"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 17
|
||||
},
|
||||
"text": " mov rdx, QWORD PTR gs:88"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 17
|
||||
},
|
||||
"text": " add rax, QWORD PTR [rdx+rcx*8]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 17
|
||||
},
|
||||
"text": " mov rcx, rax"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 17
|
||||
},
|
||||
"text": " call ?value@safetls@@QEAAHXZ ; safetls::value"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 18
|
||||
},
|
||||
"text": " add rsp, 40 ; 00000028H"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 18
|
||||
},
|
||||
"text": " ret 0"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "?func@@YAHXZ ENDP ; func"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "?func2@@YAHXZ PROC ; func2, COMDAT"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 22
|
||||
},
|
||||
"text": " mov eax, OFFSET FLAT:?h@@3HA ; h"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 22
|
||||
},
|
||||
"text": " mov eax, eax"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 22
|
||||
},
|
||||
"text": " mov ecx, DWORD PTR _tls_index"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 22
|
||||
},
|
||||
"text": " mov rdx, QWORD PTR gs:88"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 22
|
||||
},
|
||||
"text": " mov rcx, QWORD PTR [rdx+rcx*8]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 22
|
||||
},
|
||||
"text": " mov eax, DWORD PTR [rax+rcx]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 23
|
||||
},
|
||||
"text": " ret 0"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "?func2@@YAHXZ ENDP ; func2"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "tv64 = 32"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "main PROC"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "$LN3:"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 26
|
||||
},
|
||||
"text": " sub rsp, 56 ; 00000038H"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 27
|
||||
},
|
||||
"text": " call ?func@@YAHXZ ; func"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 27
|
||||
},
|
||||
"text": " mov DWORD PTR tv64[rsp], eax"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 27
|
||||
},
|
||||
"text": " call ?func2@@YAHXZ ; func2"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 27
|
||||
},
|
||||
"text": " mov ecx, DWORD PTR tv64[rsp]"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 27
|
||||
},
|
||||
"text": " add ecx, eax"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 27
|
||||
},
|
||||
"text": " mov eax, ecx"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 28
|
||||
},
|
||||
"text": " add rsp, 56 ; 00000038H"
|
||||
},
|
||||
{
|
||||
"source": {
|
||||
"file": null,
|
||||
"line": 28
|
||||
},
|
||||
"text": " ret 0"
|
||||
},
|
||||
{
|
||||
"source": null,
|
||||
"text": "main ENDP"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user