mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-23 06:54:14 -04:00
c8304925da
* git subrepo pull --force tools/asm-processor subrepo: subdir: "tools/asm-processor" merged: "fed1e3ddb" upstream: origin: "git@github.com:simonlindholm/asm-processor.git" branch: "main" commit: "fed1e3ddb" git-subrepo: version: "0.4.6" origin: "git@github.com:ingydotnet/git-subrepo.git" commit: "110b9eb" * git subrepo pull tools/asm-differ subrepo: subdir: "tools/asm-differ" merged: "4ed847317" upstream: origin: "https://github.com/simonlindholm/asm-differ" branch: "main" commit: "4ed847317" git-subrepo: version: "0.4.6" origin: "git@github.com:ingydotnet/git-subrepo.git" commit: "110b9eb" * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "7f398831f" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "7f398831f" git-subrepo: version: "0.4.6" origin: "git@github.com:ingydotnet/git-subrepo.git" commit: "110b9eb" * git subrepo pull (merge) --force tools/fado subrepo: subdir: "tools/fado" merged: "8ce048376" upstream: origin: "git@github.com:EllipticEllipsis/fado.git" branch: "master" commit: "8ce048376" git-subrepo: version: "0.4.6" origin: "git@github.com:ingydotnet/git-subrepo.git" commit: "110b9eb"
36 lines
589 B
C
36 lines
589 B
C
// COMPILE-FLAGS: -O2
|
|
// ASMP-FLAGS: --convert-statics=global
|
|
static int xtext(int a, int b, int c);
|
|
const int rodata1[] = {1};
|
|
static const int rodata2[] = {2};
|
|
int data1[] = {3};
|
|
static int data2[] = {4};
|
|
int bss1;
|
|
static int bss2;
|
|
|
|
GLOBAL_ASM(
|
|
glabel bar
|
|
lui $a0, %hi(rodata2)
|
|
lw $a0, %lo(rodata2)($a0)
|
|
lui $a1, %hi(data2)
|
|
lw $a1, %lo(data2)($a0)
|
|
lui $a2, %hi(bss2)
|
|
lw $a2, %lo(bss2)($a0)
|
|
jal xtext
|
|
nop
|
|
jr $ra
|
|
nop
|
|
nop
|
|
nop
|
|
)
|
|
|
|
static int xtext(int a, int b, int c) {
|
|
static int bss2;
|
|
return 1;
|
|
}
|
|
|
|
void baz(void) {
|
|
{ static int bss2; }
|
|
xtext(bss2, rodata2[0], data2[0]);
|
|
}
|