repo_id
string
size
int64
file_path
string
content
string
BenaliOssama/vm
164
playground/players_src/pierino_add.s
.name "pierino" .description "stay alive" a: live %-1 ld %2, r2 ld %3, r3 add r2, r3, r4 # after this instruction, r4 is 5 ld %0, r2 zjmp %:a
BenaliOssama/vm
153
playground/players_src/pierino_lldi_dir_dir_reg.s
.name "pierino" .description "stay alive" a: live %-1 lldi %1, %10, r3 # after exec, register r3 is 209 in hex notation ld %0, r2 zjmp %:a
BenaliOssama/vm
162
playground/players_src/pierino_sti_reg_ind_dir.s
.name "pierino" .description "stay alive" a: live %-1 ld %123, r2 sti r1, -11, %1 # after execution, ff ff ff ff at byte 13 ld %0, r2 zjmp %:a
BenaliOssama/vm
1,161
playground/players_src/crab.s
.name "walker" .description "moving around" st r1,r8 # size: 4 bytes, writes the player_id in r8 # write a pit # - add %0,%0,r1 # 00000110 10100100 [00000000 00000000 00000000 00000000] [00000000 00000000 00000000 00000000] 00000001 -> 11 bytes # | | | | ...
BenaliOssama/vm
137
playground/players_src/pierino_xor_ind_ind.s
.name "pierino" .description "stay alive" a: live %-1 xor -2, -1, r3 # after execution, r3 should be f7 ld %0, r2 zjmp %:a
BenaliOssama/vm
177
playground/players_src/pierino_and_reg_reg.s
.name "pierino" .description "stay alive" a: live %-1 ld %16, r2 and r1, r2, r3 # after this instruction, r3 should be 10 in hex notation ld %0, r2 zjmp %:a
BenaliOssama/vm
177
playground/players_src/pierino_ldi_reg_reg.s
.name "pierino" .description "stay alive" a: live %-1 ld %10, r2 ldi r1, r2, r3 # after this instruction, r3 should be 209 in hex notation ld %0, r2 zjmp %:a
BenaliOssama/vm
162
playground/players_src/pierino_sti_reg_reg_reg.s
.name "pierino" .description "stay alive" a: live %-1 ld %123, r2 sti r1, r2, r3 # after execution, ff ff ff ff at byte 135 ld %0, r2 zjmp %:a
BenaliOssama/vm
178
playground/players_src/pierino_ldi_reg_dir.s
.name "pierino" .description "stay alive" a: live %-1 ld %10, r2 ldi r2, %1, r3 # after this instruction, r3 should be 209ff in hex notation ld %0, r2 zjmp %:a
BenaliOssama/vm
162
playground/players_src/pierino_sti_reg_dir_dir.s
.name "pierino" .description "stay alive" a: live %-1 ld %123, r2 sti r1, %23, %1 # after execution, ff ff ff ff at byte 36 ld %0, r2 zjmp %:a
BenaliOssama/vm
167
playground/players_src/pierino_and_ind_reg.s
.name "pierino" .description "stay alive" a: live %-1 and 7, r1, r3 # after this instruction, r3 should be ffff9000 (in hex notation) ld %0, r2 zjmp %:a
BenaliOssama/vm
139
playground/players_src/pierino_fork.s
.name "pierino" .description "stay alive" fork %:a # after exec, two twin process should run a: live %-1 ld %0, r2 zjmp %:a
BenaliOssama/vm
167
playground/players_src/pierino_lldi_ind_reg_reg.s
.name "pierino" .description "stay alive" a: live %-1 ld %10, r2 lldi -5, r2, r3 # after exec, register r3 is 209 in hex notation ld %0, r2 zjmp %:a
BenaliOssama/vm
155
playground/players_src/pierino_st_reg.s
.name "pierino" .description "stay alive" a: live %-1 st r1, r2 # after execution, r2 should be ffffffff in hex notation ld %0, r2 zjmp %:a
BenaliOssama/vm
171
playground/players_src/pierino_sub.s
.name "pierino" .description "stay alive" a: live %-1 ld %2, r2 ld %3, r3 sub r2, r3, r4 # after execution, r4 should be ffffffff ld %0, r2 zjmp %:a
BenaliOssama/vm
146
playground/players_src/pierino_st_ind.s
.name "pierino" .description "stay alive" a: live %-1 st r1, 16 # after this instruction, ff ff ff ff at byte 21 ld %0, r2 zjmp %:a
BenaliOssama/vm
154
playground/players_src/pierino_lldi_ind_dir_reg.s
.name "pierino" .description "stay alive" a: live %-1 lldi 2, %10, r3 # after exec, register r3 is 209ff in hex notation ld %0, r2 zjmp %:a
BenaliOssama/vm
139
playground/players_src/pierino_lld_dir_reg.s
.name "pierino" .description "stay alive" a: live %-1 lld %1234, r2 # afet exec r2 is equal to 4d2 in hex ld %0, r2 zjmp %:a
BenaliOssama/vm
166
playground/players_src/pierino_or_reg_ind.s
.name "pierino" .description "stay alive" a: live %-1 or r1, -2, r3 # after this isntruction, r3 should be ffffffff in hex notation ld %0, r2 zjmp %:a
BenaliOssama/vm
143
playground/players_src/pierino_xor_ind_reg.s
.name "pierino" .description "stay alive" a: live %-1 xor -0, r1, r3 # after execution, r3 should be fffff72b ld %0, r2 zjmp %:a
BenaliOssama/vm
139
playground/players_src/pierino_lld_ind_reg.s
.name "pierino" .description "stay alive" a: live %-1 lld -4, r2 # afer exec r2 is set to ffffffff in hex ld %0, r2 zjmp %:a
BenaliOssama/vm
179
playground/players_src/pierino_ldi_dir_reg.s
.name "pierino" .description "stay alive" a: live %-1 ld %10, r2 ldi %1, r2, r3 # after this instruction, r3 should be 209ff in hex notation ld %0, r2 zjmp %:a
BenaliOssama/vm
158
playground/players_src/pierino_xor_reg_reg.s
.name "pierino" .description "stay alive" a: live %-1 ld %16, r2 xor r1, r2, r3 # after execution, r3 should be ffffffef ld %0, r2 zjmp %:a
BenaliOssama/vm
174
playground/players_src/pierino_or_reg_reg.s
.name "pierino" .description "stay alive" a: live %-1 ld %16, r2 or r3, r2, r3 # after this instruction, r3 should be 10 in hex notation ld %0, r2 zjmp %:a
BenaliOssama/vm
187
playground/players_src/invalid/instr_not_exist.s
.name "instr not exist" .description "instr not exist" l1: ciao %1 ld %:l1 , r2 l3: ldi %:l2, r2, r4 sti r4, %:l2, r2 add r2, r3, r2 live: zjmp %:l1 xor r4, r4, r4 zjmp %:l3 l1:
BenaliOssama/vm
138
playground/players_src/invalid/number_too_big.s
.name "number to big" .description "number to big" l1: ld 9999999999999, r2 ld %:l1 , r2 live: zjmp %:l1 xor r4, r4, r4 zjmp %:l1
BenaliOssama/vm
189
playground/players_src/invalid/register_too_small.s
.name "register too small" .description "register too small" l1: live %1 ld %:l1 , r2 l3: ldi %:l2, r2, r4 sti r4, %:l2, r2 add r0, r3, r2 live: zjmp %:l1 xor r4, r4, r4 zjmp %:l3
BenaliOssama/vm
210
playground/players_src/invalid/repated_label.s
.name "repeated labels" .description "repeated lables" st r1, :l1 ld %4, r3 l1: live %1 ld %:l1 , r2 l3: ldi %:l2, r2, r4 sti r4, %:l2, r2 add r2, r3, r2 live: zjmp %:l1 xor r4, r4, r4 zjmp %:l3 l1:
BenaliOssama/vm
203
playground/players_src/invalid/not_existing_label.s
.name "not existing labels" .description "not existing lables" st r1, :l5 l1: live %1 ld %:l1 , r2 l3: ldi %:l2, r2, r4 sti r4, %:l2, r2 add r2, r3, r2 live: zjmp %:l1 xor r4, r4, r4 zjmp %:l3
BenaliOssama/vm
186
playground/players_src/invalid/register_too_big.s
.name "register too big" .description "register too big" l1: live %1 ld %:l1 , r2 l3: ldi %:l2, r17, r4 sti r4, %:l2, r2 add r2, r3, r2 live: zjmp %:l1 xor r4, r4, r4 zjmp %:l3
BenaliOssama/vm
113
playground/players_src/specials/pierino_r_out_of_range.s
.name "pierino" .description "register out of range!" sti r1, %:a, %1 a: live %23 ld %0, r223 zjmp %:a
benschlueter/platbox_fork
2,557
pocs/AmdSinkclose/sinkclose.S
#define PROTECT_MODE_CS 0x08 #define PROTECT_MODE_DS 0x20 #define LONG_MODE_CS 0x38 #define TSS_SEGMENT 0x40 #define LONG_MODE_DS 0x48 #define ORIGINAL_GDTR 0x1400 #define SQUIRREL_BAR 0xd0800000 #define CORE0_INITIAL_STACK 0x1E00 #define CORE0_PAGE_TABLE_BASE 0x2000 #define CORE0_NEXT_STAGE 0x1031 ...
benwu25/daikon-rustc
4,378
library/compiler-builtins/compiler-builtins/src/hexagon/dfmul.s
.text .global __hexagon_muldf3 .type __hexagon_muldf3,@function .global __qdsp_muldf3 ; .set __qdsp_muldf3, __hexagon_muldf3 .global __hexagon_fast_muldf3 ; .set __hexagon_fast_muldf3, __hexagon_muldf3 .global __hexagon_fast2_muldf3 ; .set __hexagon_fast2_muldf3, __hexagon_muldf3 .p2align 5 __hexagon_muldf3: ...
benwu25/daikon-rustc
5,659
library/compiler-builtins/compiler-builtins/src/hexagon/dfdiv.s
.text .global __hexagon_divdf3 .type __hexagon_divdf3,@function .global __qdsp_divdf3 ; .set __qdsp_divdf3, __hexagon_divdf3 .global __hexagon_fast_divdf3 ; .set __hexagon_fast_divdf3, __hexagon_divdf3 .global __hexagon_fast2_divdf3 ; .set __hexagon_fast2_divdf3, __hexagon_divdf3 .p2align 5 __hexag...
benwu25/daikon-rustc
481
library/compiler-builtins/compiler-builtins/src/hexagon/umodsi3.s
FUNCTION_BEGIN __hexagon_umodsi3 { r2 = cl0(r0) r3 = cl0(r1) p0 = cmp.gtu(r1,r0) } { r2 = sub(r3,r2) if (p0) jumpr r31 } { loop0(1f,r2) p1 = cmp.eq(r2,#0) r2 = lsl(r1,r2) } .falign 1: { p0 = cmp.gtu(r2,r0) if (!p0.new) r0 = sub(r0,r2) r2 = lsr(r2,#1) if (p1) r1 = #0 }:endloop0 { p0...
benwu25/daikon-rustc
677
library/compiler-builtins/compiler-builtins/src/hexagon/udivmoddi4.s
FUNCTION_BEGIN __hexagon_udivmoddi4 { r6 = cl0(r1:0) r7 = cl0(r3:2) r5:4 = r3:2 r3:2 = r1:0 } { r10 = sub(r7,r6) r1:0 = #0 r15:14 = #1 } { r11 = add(r10,#1) r13:12 = lsl(r5:4,r10) r15:14 = lsl(r15:14,r10) } { p0 = cmp.gtu(r5:4,r3:2) loop0(1f,r11) } { if (p0) jumpr r31 } .falign 1:...
benwu25/daikon-rustc
158
library/compiler-builtins/compiler-builtins/src/hexagon/func_macro.s
.macro FUNCTION_BEGIN name .text .p2align 5 .globl \name .type \name, @function \name: .endm .macro FUNCTION_END name .size \name, . - \name .endm
benwu25/daikon-rustc
662
library/compiler-builtins/compiler-builtins/src/hexagon/udivdi3.s
FUNCTION_BEGIN __hexagon_udivdi3 { r6 = cl0(r1:0) r7 = cl0(r3:2) r5:4 = r3:2 r3:2 = r1:0 } { r10 = sub(r7,r6) r1:0 = #0 r15:14 = #1 } { r11 = add(r10,#1) r13:12 = lsl(r5:4,r10) r15:14 = lsl(r15:14,r10) } { p0 = cmp.gtu(r5:4,r3:2) loop0(1f,r11) } { if (p0) jumpr r31 } .falign 1: {...
benwu25/daikon-rustc
4,801
library/compiler-builtins/compiler-builtins/src/hexagon/dfaddsub.s
.text .global __hexagon_adddf3 .global __hexagon_subdf3 .type __hexagon_adddf3, @function .type __hexagon_subdf3, @function .global __qdsp_adddf3 ; .set __qdsp_adddf3, __hexagon_adddf3 .global __hexagon_fast_adddf3 ; .set __hexagon_fast_adddf3, __hexagon_adddf3 .global __hexagon_fast2_adddf3 ; .set __hexagon_fast...
benwu25/daikon-rustc
785
library/compiler-builtins/compiler-builtins/src/hexagon/sfdiv_opt.s
FUNCTION_BEGIN __hexagon_divsf3 { r2,p0 = sfrecipa(r0,r1) r4 = sffixupd(r0,r1) r3 = ##0x3f800000 } { r5 = sffixupn(r0,r1) r3 -= sfmpy(r4,r2):lib r6 = ##0x80000000 r7 = r3 } { r2 += sfmpy(r3,r2):lib r3 = r7 r6 = r5 r0 = and(r6,r5) } { r3 -= sfmpy(r4,r2):lib ...
benwu25/daikon-rustc
584
library/compiler-builtins/compiler-builtins/src/hexagon/modsi3.s
FUNCTION_BEGIN __hexagon_modsi3 { p2 = cmp.ge(r0,#0) r2 = abs(r0) r1 = abs(r1) } { r3 = cl0(r2) r4 = cl0(r1) p0 = cmp.gtu(r1,r2) } { r3 = sub(r4,r3) if (p0) jumpr r31 } { p1 = cmp.eq(r3,#0) loop0(1f,r3) r0 = r2 r2 = lsl(r1,r3) } .falign 1: { p0 = cmp.gtu(r2,r0) if (!p0.new) r0 = ...
benwu25/daikon-rustc
7,236
library/compiler-builtins/compiler-builtins/src/hexagon/dffma.s
.text .global __hexagon_fmadf4 .type __hexagon_fmadf4,@function .global __hexagon_fmadf5 .type __hexagon_fmadf5,@function .global __qdsp_fmadf5 ; .set __qdsp_fmadf5, __hexagon_fmadf5 .p2align 5 __hexagon_fmadf4: __hexagon_fmadf5: fma: { p0 = dfclass(r1:0,#2) p0 = dfclass(r3:2,#2) r13:12 = #0...
benwu25/daikon-rustc
4,337
library/compiler-builtins/compiler-builtins/src/hexagon/dfsqrt.s
.text .global __hexagon_sqrtdf2 .type __hexagon_sqrtdf2,@function .global __hexagon_sqrt .type __hexagon_sqrt,@function .global __qdsp_sqrtdf2 ; .set __qdsp_sqrtdf2, __hexagon_sqrtdf2; .type __qdsp_sqrtdf2,@function .global __qdsp_sqrt ; .set __qdsp_sqrt, __hexagon_sqrt; .type __qdsp_sqrt,@function .global __he...
benwu25/daikon-rustc
825
library/compiler-builtins/compiler-builtins/src/hexagon/moddi3.s
FUNCTION_BEGIN __hexagon_moddi3 { p3 = tstbit(r1,#31) } { r1:0 = abs(r1:0) r3:2 = abs(r3:2) } { r6 = cl0(r1:0) r7 = cl0(r3:2) r5:4 = r3:2 r3:2 = r1:0 } { r10 = sub(r7,r6) r1:0 = #0 r15:14 = #1 } { r11 = add(r10,#1) r13:12 = lsl(r5:4,r10) r15:14 = lsl(r15:14,r10) } { p0 = cmp.gtu...
benwu25/daikon-rustc
864
library/compiler-builtins/compiler-builtins/src/hexagon/divdi3.s
FUNCTION_BEGIN __hexagon_divdi3 { p2 = tstbit(r1,#31) p3 = tstbit(r3,#31) } { r1:0 = abs(r1:0) r3:2 = abs(r3:2) } { r6 = cl0(r1:0) r7 = cl0(r3:2) r5:4 = r3:2 r3:2 = r1:0 } { p3 = xor(p2,p3) r10 = sub(r7,r6) r1:0 = #0 r15:14 = #1 } { r11 = add(r10,#1) r13:12 = lsl(r5:4,r10) r15:14...
benwu25/daikon-rustc
543
library/compiler-builtins/compiler-builtins/src/hexagon/udivsi3.s
FUNCTION_BEGIN __hexagon_udivsi3 { r2 = cl0(r0) r3 = cl0(r1) r5:4 = combine(#1,#0) p0 = cmp.gtu(r1,r0) } { r6 = sub(r3,r2) r4 = r1 r1:0 = combine(r0,r4) if (p0) jumpr r31 } { r3:2 = vlslw(r5:4,r6) loop0(1f,r6) } .falign 1: { p0 = cmp.gtu(r2,r1) if (!p0.new) r1 = sub(r1,r2) if (!p0.ne...
benwu25/daikon-rustc
764
library/compiler-builtins/compiler-builtins/src/hexagon/memcpy_likely_aligned.s
FUNCTION_BEGIN __hexagon_memcpy_likely_aligned_min32bytes_mult8bytes { p0 = bitsclr(r1,#7) p0 = bitsclr(r0,#7) if (p0.new) r5:4 = memd(r1) r3 = #-3 } { if (!p0) jump .Lmemcpy_call if (p0) memd(r0++#8) = r5:4 if (p0) r5:4 = memd(r1+#8) r3 += lsr(r2,#3) } { memd(r0++#8) = r5:4 r5:4 = memd(r1+#16...
benwu25/daikon-rustc
5,120
library/compiler-builtins/compiler-builtins/src/hexagon/fastmath2_dlib_asm.s
.text .global __hexagon_fast2_dadd_asm .type __hexagon_fast2_dadd_asm, @function __hexagon_fast2_dadd_asm: .falign { R7:6 = VABSDIFFH(R1:0, R3:2) R9 = #62 R4 = SXTH(R0) R5 = SXTH(R2) } { R6 = SXTH(R6) P0 = CMP.GT(R4, R5); ...
benwu25/daikon-rustc
736
library/compiler-builtins/compiler-builtins/src/hexagon/divsi3.s
FUNCTION_BEGIN __hexagon_divsi3 { p0 = cmp.ge(r0,#0) p1 = cmp.ge(r1,#0) r1 = abs(r0) r2 = abs(r1) } { r3 = cl0(r1) r4 = cl0(r2) r5 = sub(r1,r2) p2 = cmp.gtu(r2,r1) } { r0 = #0 p1 = xor(p0,p1) p0 = cmp.gtu(r2,r5) if (p2) jumpr r31 } { r0 = mux(p1,#-1,#1) if (p0) jumpr r31 r4 = sub(...
benwu25/daikon-rustc
1,295
library/compiler-builtins/compiler-builtins/src/hexagon/memcpy_forward_vp4cp4n2.s
.text .globl hexagon_memcpy_forward_vp4cp4n2 .balign 32 .type hexagon_memcpy_forward_vp4cp4n2,@function hexagon_memcpy_forward_vp4cp4n2: { r3 = sub(##4096, r1) r5 = lsr(r2, #3) } { r3 = extractu(r3, #10, #2) r4 = extractu(r3, #7, #5) } { r3 = minu(r2, r3) r4 = minu(...
benwu25/daikon-rustc
721
library/compiler-builtins/compiler-builtins/src/hexagon/umoddi3.s
FUNCTION_BEGIN __hexagon_umoddi3 { r6 = cl0(r1:0) r7 = cl0(r3:2) r5:4 = r3:2 r3:2 = r1:0 } { r10 = sub(r7,r6) r1:0 = #0 r15:14 = #1 } { r11 = add(r10,#1) r13:12 = lsl(r5:4,r10) r15:14 = lsl(r15:14,r10) } { p0 = cmp.gtu(r5:4,r3:2) loop0(1f,r11) } { if (p0) jump .hexagon_umoddi3_retur...
benwu25/daikon-rustc
632
library/compiler-builtins/compiler-builtins/src/hexagon/udivmodsi4.s
FUNCTION_BEGIN __hexagon_udivmodsi4 { r2 = cl0(r0) r3 = cl0(r1) r5:4 = combine(#1,#0) p0 = cmp.gtu(r1,r0) } { r6 = sub(r3,r2) r4 = r1 r1:0 = combine(r0,r4) if (p0) jumpr r31 } { r3:2 = vlslw(r5:4,r6) loop0(1f,r6) p0 = cmp.eq(r6,#0) if (p0.new) r4 = #0 } .falign 1: { p0 = cmp.gtu(r2,r...
benwu25/daikon-rustc
833
library/compiler-builtins/compiler-builtins/src/hexagon/dfminmax.s
.text .global __hexagon_mindf3 .global __hexagon_maxdf3 .type __hexagon_mindf3,@function .type __hexagon_maxdf3,@function .global __qdsp_mindf3 ; .set __qdsp_mindf3, __hexagon_mindf3 .global __qdsp_maxdf3 ; .set __qdsp_maxdf3, __hexagon_maxdf3 .p2align 5 __hexagon_mindf3: { p0 = dfclass(r1:0,#0x10) p1 = df...
benwu25/daikon-rustc
3,885
library/compiler-builtins/compiler-builtins/src/hexagon/fastmath2_ldlib_asm.s
.text .global __hexagon_fast2ldadd_asm .type __hexagon_fast2ldadd_asm, @function __hexagon_fast2ldadd_asm: .falign { R4 = memw(r29+#8) R5 = memw(r29+#24) r7 = r0 } { R6 = sub(R4, R5):sat P0 = CMP.GT(R4, R5); if ( P0.new) R...
benwu25/daikon-rustc
872
library/compiler-builtins/compiler-builtins/src/hexagon/sfsqrt_opt.s
FUNCTION_BEGIN __hexagon_sqrtf { r3,p0 = sfinvsqrta(r0) r5 = sffixupr(r0) r4 = ##0x3f000000 r1:0 = combine(#0,#0) } { r0 += sfmpy(r3,r5):lib r1 += sfmpy(r3,r4):lib r2 = r4 r3 = r5 } { r2 -= sfmpy(r0,r1):lib p1 = sfclass(r5,#1) } { r0 += sfmpy(r0,r2):lib r1 ...
benwu25/daikon-rustc
11,809
library/std/src/sys/pal/sgx/abi/entry.S
/* This symbol is used at runtime to figure out the virtual address that the */ /* enclave is loaded at. */ .section absolute .global IMAGE_BASE IMAGE_BASE: .section ".note.x86_64-fortanix-unknown-sgx", "", @note .align 4 .long 1f - 0f /* name length (not including padding) */ .long 3f - 2f ...
benwu25/daikon-rustc
79
tests/ui/asm/named-asm-labels.s
lab1: nop // do more things lab2: nop // does bar // a: b lab3: nop; lab4: nop
benwu25/daikon-rustc
29
tests/codegen-llvm/asm/foo.s
.global foo foo: jmp baz
benwu25/daikon-rustc
136
tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/foo_asm.s
.text .global cc_plus_one_asm .type cc_plus_one_asm, @function cc_plus_one_asm: movl (%rdi), %eax inc %eax retq
benwu25/daikon-rustc
145
tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/libcmake_foo/src/foo_asm.s
.text .global cmake_plus_one_asm .type cmake_plus_one_asm, @function cmake_plus_one_asm: movl (%rdi), %eax inc %eax retq
bgallois/hypervisor_test
1,153
src/host_entrypoint.S
.intel_syntax noprefix .global _guest_first_entry _guest_first_entry: lea rdi, [rip+.guest_enters_here] mov rax, 0x0000681e // vmwrite Guest rip vmwrite rax, rdi jc .errorc jz .errorz mov rdi, rsp mov rax, 0x0000681c // vmwrite Guest rsp vmwrite rax, rdi jc .errorc jz .errorz ...
bieyuanxi/rCoreLearning
1,055
os/src/link_app.S
.align 3 .section .data .global _num_app _num_app: .quad 5 .quad app_0_start .quad app_1_start .quad app_2_start .quad app_3_start .quad app_4_start .quad app_4_end .section .data .global app_0_start .global app_0_end app_0_start: .incbin "../user/target/riscv64...
bieyuanxi/rCoreLearning
1,589
os/src/trap/trap.S
.altmacro .macro SAVE_GP n sd x\n, \n*8(sp) .endm .macro LOAD_GP n ld x\n, \n*8(sp) .endm .section .text .globl __alltraps .globl __restore .align 2 __alltraps: csrrw sp, sscratch, sp # now sp->kernel stack, sscratch->user stack # allocate a TrapContext on kernel stack addi sp, s...
BilelGho/compiler-builtins
4,378
src/hexagon/dfmul.s
.text .global __hexagon_muldf3 .type __hexagon_muldf3,@function .global __qdsp_muldf3 ; .set __qdsp_muldf3, __hexagon_muldf3 .global __hexagon_fast_muldf3 ; .set __hexagon_fast_muldf3, __hexagon_muldf3 .global __hexagon_fast2_muldf3 ; .set __hexagon_fast2_muldf3, __hexagon_muldf3 .p2align 5 __hexagon_muldf3: ...
BilelGho/compiler-builtins
5,659
src/hexagon/dfdiv.s
.text .global __hexagon_divdf3 .type __hexagon_divdf3,@function .global __qdsp_divdf3 ; .set __qdsp_divdf3, __hexagon_divdf3 .global __hexagon_fast_divdf3 ; .set __hexagon_fast_divdf3, __hexagon_divdf3 .global __hexagon_fast2_divdf3 ; .set __hexagon_fast2_divdf3, __hexagon_divdf3 .p2align 5 __hexag...
BilelGho/compiler-builtins
481
src/hexagon/umodsi3.s
FUNCTION_BEGIN __hexagon_umodsi3 { r2 = cl0(r0) r3 = cl0(r1) p0 = cmp.gtu(r1,r0) } { r2 = sub(r3,r2) if (p0) jumpr r31 } { loop0(1f,r2) p1 = cmp.eq(r2,#0) r2 = lsl(r1,r2) } .falign 1: { p0 = cmp.gtu(r2,r0) if (!p0.new) r0 = sub(r0,r2) r2 = lsr(r2,#1) if (p1) r1 = #0 }:endloop0 { p0...
BilelGho/compiler-builtins
677
src/hexagon/udivmoddi4.s
FUNCTION_BEGIN __hexagon_udivmoddi4 { r6 = cl0(r1:0) r7 = cl0(r3:2) r5:4 = r3:2 r3:2 = r1:0 } { r10 = sub(r7,r6) r1:0 = #0 r15:14 = #1 } { r11 = add(r10,#1) r13:12 = lsl(r5:4,r10) r15:14 = lsl(r15:14,r10) } { p0 = cmp.gtu(r5:4,r3:2) loop0(1f,r11) } { if (p0) jumpr r31 } .falign 1:...
BilelGho/compiler-builtins
158
src/hexagon/func_macro.s
.macro FUNCTION_BEGIN name .text .p2align 5 .globl \name .type \name, @function \name: .endm .macro FUNCTION_END name .size \name, . - \name .endm
BilelGho/compiler-builtins
662
src/hexagon/udivdi3.s
FUNCTION_BEGIN __hexagon_udivdi3 { r6 = cl0(r1:0) r7 = cl0(r3:2) r5:4 = r3:2 r3:2 = r1:0 } { r10 = sub(r7,r6) r1:0 = #0 r15:14 = #1 } { r11 = add(r10,#1) r13:12 = lsl(r5:4,r10) r15:14 = lsl(r15:14,r10) } { p0 = cmp.gtu(r5:4,r3:2) loop0(1f,r11) } { if (p0) jumpr r31 } .falign 1: {...
BilelGho/compiler-builtins
4,801
src/hexagon/dfaddsub.s
.text .global __hexagon_adddf3 .global __hexagon_subdf3 .type __hexagon_adddf3, @function .type __hexagon_subdf3, @function .global __qdsp_adddf3 ; .set __qdsp_adddf3, __hexagon_adddf3 .global __hexagon_fast_adddf3 ; .set __hexagon_fast_adddf3, __hexagon_adddf3 .global __hexagon_fast2_adddf3 ; .set __hexagon_fast...
BilelGho/compiler-builtins
785
src/hexagon/sfdiv_opt.s
FUNCTION_BEGIN __hexagon_divsf3 { r2,p0 = sfrecipa(r0,r1) r4 = sffixupd(r0,r1) r3 = ##0x3f800000 } { r5 = sffixupn(r0,r1) r3 -= sfmpy(r4,r2):lib r6 = ##0x80000000 r7 = r3 } { r2 += sfmpy(r3,r2):lib r3 = r7 r6 = r5 r0 = and(r6,r5) } { r3 -= sfmpy(r4,r2):lib ...
BilelGho/compiler-builtins
584
src/hexagon/modsi3.s
FUNCTION_BEGIN __hexagon_modsi3 { p2 = cmp.ge(r0,#0) r2 = abs(r0) r1 = abs(r1) } { r3 = cl0(r2) r4 = cl0(r1) p0 = cmp.gtu(r1,r2) } { r3 = sub(r4,r3) if (p0) jumpr r31 } { p1 = cmp.eq(r3,#0) loop0(1f,r3) r0 = r2 r2 = lsl(r1,r3) } .falign 1: { p0 = cmp.gtu(r2,r0) if (!p0.new) r0 = ...
BilelGho/compiler-builtins
7,270
src/hexagon/dffma.s
.text .global __hexagon_fmadf4 .type __hexagon_fmadf4,@function .global __hexagon_fmadf5 .type __hexagon_fmadf5,@function .global fma .type fma,@function .global __qdsp_fmadf5 ; .set __qdsp_fmadf5, __hexagon_fmadf5 .p2align 5 __hexagon_fmadf4: __hexagon_fmadf5: fma: { p0 = dfclass(r1:0,#2) p...
BilelGho/compiler-builtins
4,337
src/hexagon/dfsqrt.s
.text .global __hexagon_sqrtdf2 .type __hexagon_sqrtdf2,@function .global __hexagon_sqrt .type __hexagon_sqrt,@function .global __qdsp_sqrtdf2 ; .set __qdsp_sqrtdf2, __hexagon_sqrtdf2; .type __qdsp_sqrtdf2,@function .global __qdsp_sqrt ; .set __qdsp_sqrt, __hexagon_sqrt; .type __qdsp_sqrt,@function .global __he...
BilelGho/compiler-builtins
825
src/hexagon/moddi3.s
FUNCTION_BEGIN __hexagon_moddi3 { p3 = tstbit(r1,#31) } { r1:0 = abs(r1:0) r3:2 = abs(r3:2) } { r6 = cl0(r1:0) r7 = cl0(r3:2) r5:4 = r3:2 r3:2 = r1:0 } { r10 = sub(r7,r6) r1:0 = #0 r15:14 = #1 } { r11 = add(r10,#1) r13:12 = lsl(r5:4,r10) r15:14 = lsl(r15:14,r10) } { p0 = cmp.gtu...
BilelGho/compiler-builtins
864
src/hexagon/divdi3.s
FUNCTION_BEGIN __hexagon_divdi3 { p2 = tstbit(r1,#31) p3 = tstbit(r3,#31) } { r1:0 = abs(r1:0) r3:2 = abs(r3:2) } { r6 = cl0(r1:0) r7 = cl0(r3:2) r5:4 = r3:2 r3:2 = r1:0 } { p3 = xor(p2,p3) r10 = sub(r7,r6) r1:0 = #0 r15:14 = #1 } { r11 = add(r10,#1) r13:12 = lsl(r5:4,r10) r15:14...
BilelGho/compiler-builtins
543
src/hexagon/udivsi3.s
FUNCTION_BEGIN __hexagon_udivsi3 { r2 = cl0(r0) r3 = cl0(r1) r5:4 = combine(#1,#0) p0 = cmp.gtu(r1,r0) } { r6 = sub(r3,r2) r4 = r1 r1:0 = combine(r0,r4) if (p0) jumpr r31 } { r3:2 = vlslw(r5:4,r6) loop0(1f,r6) } .falign 1: { p0 = cmp.gtu(r2,r1) if (!p0.new) r1 = sub(r1,r2) if (!p0.ne...
BilelGho/compiler-builtins
764
src/hexagon/memcpy_likely_aligned.s
FUNCTION_BEGIN __hexagon_memcpy_likely_aligned_min32bytes_mult8bytes { p0 = bitsclr(r1,#7) p0 = bitsclr(r0,#7) if (p0.new) r5:4 = memd(r1) r3 = #-3 } { if (!p0) jump .Lmemcpy_call if (p0) memd(r0++#8) = r5:4 if (p0) r5:4 = memd(r1+#8) r3 += lsr(r2,#3) } { memd(r0++#8) = r5:4 r5:4 = memd(r1+#16...
BilelGho/compiler-builtins
4,970
src/hexagon/fastmath2_dlib_asm.s
.text .global fast2_dadd_asm .type fast2_dadd_asm, @function fast2_dadd_asm: .falign { R7:6 = VABSDIFFH(R1:0, R3:2) R9 = #62 R4 = SXTH(R0) R5 = SXTH(R2) } { R6 = SXTH(R6) P0 = CMP.GT(R4, R5); if ( P0.new) R8 = add(R4, #1...
BilelGho/compiler-builtins
736
src/hexagon/divsi3.s
FUNCTION_BEGIN __hexagon_divsi3 { p0 = cmp.ge(r0,#0) p1 = cmp.ge(r1,#0) r1 = abs(r0) r2 = abs(r1) } { r3 = cl0(r1) r4 = cl0(r2) r5 = sub(r1,r2) p2 = cmp.gtu(r2,r1) } { r0 = #0 p1 = xor(p0,p1) p0 = cmp.gtu(r2,r5) if (p2) jumpr r31 } { r0 = mux(p1,#-1,#1) if (p0) jumpr r31 r4 = sub(...
BilelGho/compiler-builtins
1,295
src/hexagon/memcpy_forward_vp4cp4n2.s
.text .globl hexagon_memcpy_forward_vp4cp4n2 .balign 32 .type hexagon_memcpy_forward_vp4cp4n2,@function hexagon_memcpy_forward_vp4cp4n2: { r3 = sub(##4096, r1) r5 = lsr(r2, #3) } { r3 = extractu(r3, #10, #2) r4 = extractu(r3, #7, #5) } { r3 = minu(r2, r3) r4 = minu(...
BilelGho/compiler-builtins
721
src/hexagon/umoddi3.s
FUNCTION_BEGIN __hexagon_umoddi3 { r6 = cl0(r1:0) r7 = cl0(r3:2) r5:4 = r3:2 r3:2 = r1:0 } { r10 = sub(r7,r6) r1:0 = #0 r15:14 = #1 } { r11 = add(r10,#1) r13:12 = lsl(r5:4,r10) r15:14 = lsl(r15:14,r10) } { p0 = cmp.gtu(r5:4,r3:2) loop0(1f,r11) } { if (p0) jump .hexagon_umoddi3_retur...
BilelGho/compiler-builtins
632
src/hexagon/udivmodsi4.s
FUNCTION_BEGIN __hexagon_udivmodsi4 { r2 = cl0(r0) r3 = cl0(r1) r5:4 = combine(#1,#0) p0 = cmp.gtu(r1,r0) } { r6 = sub(r3,r2) r4 = r1 r1:0 = combine(r0,r4) if (p0) jumpr r31 } { r3:2 = vlslw(r5:4,r6) loop0(1f,r6) p0 = cmp.eq(r6,#0) if (p0.new) r4 = #0 } .falign 1: { p0 = cmp.gtu(r2,r...
BilelGho/compiler-builtins
917
src/hexagon/dfminmax.s
.text .global __hexagon_mindf3 .global __hexagon_maxdf3 .global fmin .type fmin,@function .global fmax .type fmax,@function .type __hexagon_mindf3,@function .type __hexagon_maxdf3,@function .global __qdsp_mindf3 ; .set __qdsp_mindf3, __hexagon_mindf3 .global __qdsp_maxdf3 ; .set __qdsp_maxdf3, __hexagon_maxd...
BilelGho/compiler-builtins
3,804
src/hexagon/fastmath2_ldlib_asm.s
.text .global fast2_ldadd_asm .type fast2_ldadd_asm, @function fast2_ldadd_asm: .falign { R4 = memw(r29+#8) R5 = memw(r29+#24) r7 = r0 } { R6 = sub(R4, R5):sat P0 = CMP.GT(R4, R5); if ( P0.new) R8 = add(R4, #1) if ...
BilelGho/compiler-builtins
872
src/hexagon/sfsqrt_opt.s
FUNCTION_BEGIN __hexagon_sqrtf { r3,p0 = sfinvsqrta(r0) r5 = sffixupr(r0) r4 = ##0x3f000000 r1:0 = combine(#0,#0) } { r0 += sfmpy(r3,r5):lib r1 += sfmpy(r3,r4):lib r2 = r4 r3 = r5 } { r2 -= sfmpy(r0,r1):lib p1 = sfclass(r5,#1) } { r0 += sfmpy(r0,r2):lib r1 ...
binary-bruce/batchos
1,460
os/src/link_app.S
.align 3 .section .data .global _num_app _num_app: .quad 7 .quad app_0_start .quad app_1_start .quad app_2_start .quad app_3_start .quad app_4_start .quad app_5_start .quad app_6_start .quad app_6_end .section .data .global app_0_start .global app_0_end app_...
binary-bruce/batchos
2,465
os/src/trap/trap.S
.altmacro # save register value to stack .macro SAVE_GP n sd x\n, \n*8(sp) .endm # load the stack value to register .macro LOAD_GP n ld x\n, \n*8(sp) .endm .section .text .globl __alltraps .globl __restore .align 2 # __alltraps is store in stvec register: see trap.rs init function # ecall tr...
binary-bruce/multios
803
os/src/task/switch.S
.altmacro .macro SAVE_SN n sd s\n, (\n+2)*8(a0) .endm .macro LOAD_SN n ld s\n, (\n+2)*8(a1) .endm .section .text .globl __switch __switch: # __switch( # current_task_cx_ptr: *mut TaskContext, # next_task_cx_ptr: *const TaskContext # ) # save kernel stack of current task ...
binary-bruce/multios
2,038
os/src/trap/trap.S
.altmacro # save register value to stack .macro SAVE_GP n sd x\n, \n*8(sp) .endm # load the stack value to register .macro LOAD_GP n ld x\n, \n*8(sp) .endm .section .text .globl __alltraps .globl __restore .align 2 # __alltraps is store in stvec register: see trap.rs init function # ecall tr...
binary-bruce/procos
698
os/src/task/switch.S
.altmacro .macro SAVE_SN n sd s\n, (\n+2)*8(a0) .endm .macro LOAD_SN n ld s\n, (\n+2)*8(a1) .endm .section .text .globl __switch __switch: # __switch( # current_task_cx_ptr: *mut TaskContext, --> a0 # next_task_cx_ptr: *const TaskContext --> a1 # ) # save kernel stack...
binary-bruce/procos
1,640
os/src/trap/trap.S
.altmacro .macro SAVE_GP n sd x\n, \n*8(sp) .endm .macro LOAD_GP n ld x\n, \n*8(sp) .endm .section .text.trampoline .globl __alltraps .globl __restore .align 2 __alltraps: csrrw sp, sscratch, sp # now sp->*TrapContext in user space, sscratch->user stack # save other general purpose r...
binary-bruce/tsos
803
os/src/task/switch.S
.altmacro .macro SAVE_SN n sd s\n, (\n+2)*8(a0) .endm .macro LOAD_SN n ld s\n, (\n+2)*8(a1) .endm .section .text .globl __switch __switch: # __switch( # current_task_cx_ptr: *mut TaskContext, # next_task_cx_ptr: *const TaskContext # ) # save kernel stack of current task ...
binary-bruce/tsos
2,038
os/src/trap/trap.S
.altmacro # save register value to stack .macro SAVE_GP n sd x\n, \n*8(sp) .endm # load the stack value to register .macro LOAD_GP n ld x\n, \n*8(sp) .endm .section .text .globl __alltraps .globl __restore .align 2 # __alltraps is store in stvec register: see trap.rs init function # ecall tr...
binary-bruce/vmos
803
os/src/task/switch.S
.altmacro .macro SAVE_SN n sd s\n, (\n+2)*8(a0) .endm .macro LOAD_SN n ld s\n, (\n+2)*8(a1) .endm .section .text .globl __switch __switch: # __switch( # current_task_cx_ptr: *mut TaskContext, # next_task_cx_ptr: *const TaskContext # ) # save kernel stack of current task ...
binary-bruce/vmos
2,038
os/src/trap/trap.S
.altmacro # save register value to stack .macro SAVE_GP n sd x\n, \n*8(sp) .endm # load the stack value to register .macro LOAD_GP n ld x\n, \n*8(sp) .endm .section .text .globl __alltraps .globl __restore .align 2 # __alltraps is store in stvec register: see trap.rs init function # ecall tr...
binary-bruce/vmos2
699
os/src/task/switch.S
.altmacro .macro SAVE_SN n sd s\n, (\n+2)*8(a0) .endm .macro LOAD_SN n ld s\n, (\n+2)*8(a1) .endm .section .text .globl __switch # __switch( # current_task_cx: *mut TaskContext, # next_task_cx: *const TaskContext # ) # # a0: current_task_cx # a1: next_task_cx __switch: # save kernel stac...
binary-bruce/vmos2
2,236
os/src/trap/trap.S
.altmacro .macro SAVE_GP n sd x\n, \n*8(sp) .endm .macro LOAD_GP n ld x\n, \n*8(sp) .endm .section .text.trampoline .globl __alltraps .globl __restore .align 2 # 1. point sp to trap context(original user stack is saved in sscratch) -> for step 2 # 2. save register values(including user stack)...
bludzetelksina/boyjack-os
549
kernel/arch/armv7/boot.s
.section .text .global _start _start: // Отключить прерывания cpsid i cpsid f // Настроить стэк (например, указать SP на верхнюю часть доступной памяти) ldr sp, =stack_top // Очистить регистры (опционально) mov r0, #0 mov r1, #0 mov r2, #0 mov r3, #0 // Передать у...
bludzetelksina/boyjack-os
1,337
kernel/arch/x86_64/boot.s
.section .text .global _start _start: cli # Отключить прерывания # Загрузить сегменты в регистры сегментов xor %ax, %ax mov %ax, %ds mov %ax, %es mov %ax, %ss mov %ax, %fs mov %ax, %gs # Загрузка GDT (Global Descriptor Table) lea gdt_descriptor(%rip), %rax ...