repo_id stringlengths 5 115 | size int64 590 5.01M | file_path stringlengths 4 212 | content stringlengths 590 5.01M |
|---|---|---|---|
timeCCJ/rCore-Tutorial-v3 | 2,218 | 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
.globl __alltraps_k
.globl __restore_k
.align 2
__alltraps:
csrrw sp, sscratch, sp
# now sp->*TrapContext in user space, sscratch... |
TimonSchreiber/InCC | 2,132 | ima24.s |
extern printf, malloc
SECTION .data ; Data section, initialized variables
i64_fmt: db "%lld", 10, 0 ; printf format for printing an int64
SECTION .text
global main
main:
push ... |
TimoRenk/riscv_rust_os | 2,538 | kernel/src/asm/exception.S | .global exception
.global exception_handler
.align 4
.set REG_SIZE, 8
exception:
// Make room to save registers.
addi sp, sp, -256
// Save the registers.
// Information on registers: https://en.wikichip.org/wiki/risc-v/registers
sd ra, 0(sp)
sd sp, 1*REG_SIZE(sp)
... |
tkr631060903/TTL-POWER-1031 | 12,047 | TTL-POWER-1031/MDK-ARM/startup_stm32f103xb.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f103xb.s
;* Author : MCD Application Team
;* Description : STM32F103xB Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
tkr631060903/TTL-POWER-1031 | 12,040 | TTL-POWER-1031_Bootloader/MDK-ARM/startup_stm32f103xb.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f103xb.s
;* Author : MCD Application Team
;* Description : STM32F103xB Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
TMKCodes/kaspa-gpu-miner-attack-0x51 | 5,802 | src/keccakf1600_x86-64-osx.s | # Source: https://github.com/dot-asm/cryptogams/blob/master/x86_64/keccak1600-x86_64.pl
.text
.p2align 5
__KeccakF1600:
.cfi_startproc
.byte 0xf3,0x0f,0x1e,0xfa
movq 60(%rdi),%rax
movq 68(%rdi),%rbx
movq 76(%rdi),%rcx
movq 84(%rdi),%rdx
movq 92(%rdi),%rbp
jmp L$oop
.p2align 5
L$oop:
movq -100(%rdi),%r8
mo... |
TMKCodes/kaspa-gpu-miner-attack-0x51 | 6,073 | src/keccakf1600_x86-64.s | # Source: https://github.com/dot-asm/cryptogams/blob/master/x86_64/keccak1600-x86_64.pl
.text
.type __KeccakF1600,@function
.align 32
__KeccakF1600:
.cfi_startproc
.byte 0xf3,0x0f,0x1e,0xfa
movq 60(%rdi),%rax
movq 68(%rdi),%rbx
movq 76(%rdi),%rcx
movq 84(%rdi),%rdx
movq 92(%rdi),%rbp
jmp .Loop
.align 32
.Loo... |
tock/libtock-rs-cheri | 7,200 | runtime/src/startup/asm_riscv.s | /* rt_header is defined by the general linker script (libtock_layout.ld). It has
* the following layout:
*
* Field | Offset
* ------------------------------------
* Top of the stack | 0
* stack size | 4
* start of .bss ... |
tock/libtock-rs-cheri | 3,517 | runtime/src/startup/asm_riscv32.s | /* rt_header is defined by the general linker script (libtock_layout.ld). It has
* the following layout:
*
* Field | Offset
* ------------------------------------
* Address of the start symbol | 0
* Initial process break | 4
* Top of the stack ... |
tock/libtock-rs-cheri | 3,885 | runtime/src/startup/asm_arm.s | /* rt_header is defined by the general linker script (libtock_layout.ld). It has
* the following layout:
*
* Field | Offset
* ------------------------------------
* Address of the start symbol | 0
* Initial process break | 4
* Top of the stack ... |
Togetabetterplace/C2S-Compiler | 1,367 | test/test.s | .text
.section .rodata
.comm T0,4,4
.comm T1,4,4
.comm T2,4,4
.comm T3,4,4
.LC0:
.string "f(%d)=%d\n"
.LC1:
.string "completeprintFibonaccinumber====================+\n"
.text
.globl main
.type main, @function
main:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.c... |
Togetabetterplace/C2S-Compiler | 1,127 | test/print.s | .text
.section .rodata
.comm T0,4,4
.comm T1,4,4
.comm T2,4,4
.LC0:
.string "%c"
.LC1:
.string "\n\nչʾprintfеIJһʽ\nb*2+(4+5)*3=%d"
.LC2:
.string "\n\nչʾ±ĿñʾҿɵݹǶ\nintc=arr[arr[b+1]]=%d\n\n"
.text
.globl main
.type main, @function
main:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
m... |
Togetabetterplace/C2S-Compiler | 1,321 | test/fibonacci.s | .text
.section .rodata
.comm T0,4,4
.comm T1,4,4
.comm T2,4,4
.comm T3,4,4
.LC0:
.string "f(%d)=%d\n"
.LC1:
.string "쳲дӡ\n"
.text
.globl main
.type main, @function
main:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $120, %rsp
movl $... |
Togetabetterplace/C2S-Compiler | 3,691 | test/longTest.s | .text
.section .rodata
.comm T0,4,4
.comm T1,4,4
.comm T2,4,4
.comm T3,4,4
.comm T4,4,4
.comm T5,4,4
.comm T6,4,4
.comm T7,4,4
.comm T8,4,4
.comm T9,4,4
.comm T10,4,4
.comm T11,4,4
.comm T12,4,4
.comm T13,4,4
.comm T14,4,4
.comm T15,4,4
.comm T16,4,4
.text
.globl main
.type main, @function
main:
... |
Tokinouta/my-rust-os | 1,462 | src/boot/boot.S | .section ".text.boot"
.globl _start
_start:
mrs x0, mpidr_el1
and x0, x0,#0xFF // Check processor id
cbz x0, master // Hang for all non-primary CPU
b proc_hang
proc_hang:
b proc_hang
master:
mrs x0, CurrentEL
cmp x0, #{CurrentEL_EL3}
b.eq el3_entry
b el2_entry
el3_entry:
l... |
Tokinouta/my-rust-os | 3,667 | src/arch/kernel/irq/entry.S | .equ BAD_SYNC, 0
.equ BAD_IRQ, 1
.equ BAD_FIQ, 2
.equ BAD_ERROR, 3
// vector table entry
// 每个表项是128字节, align 7表示128字节对齐
.macro vtentry label
.align 7
b \label
.endm
// 处理无效的异常向量
.macro inv_entry el, reason
kernel_entry el
mov x0, sp
mov x1, #\reason
mrs x2, esr_el... |
TomaszBednorz/energy_monitor | 25,888 | 4_Generated/Core/Startup/startup_stm32f767zitx.s | /**
******************************************************************************
* @file startup_stm32f767xx.s
* @author MCD Application Team
* @brief STM32F767xx Devices vector table for GCC based toolchain.
* This module performs:
* - Set the initial SP
* ... |
Tom-Ferr/kfs | 1,122 | code/bootable_base/procs.s | section .procs
global switch_to_user_mode
global run_proc
switch_to_user_mode:
cli
mov ax, 0x2b ; user mode data selector is 0x28 (GDT entry 4). Also sets RPL to 3 (0x28 | 0x3)
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
xor eax, eax
mov edi, [esp+4]
mov esi, [esp+8]
push ... |
Tom-Ferr/kfs | 2,182 | code/bootable_base/idt.s | section .idt
global idt_flush
idt_flush:
mov eax, [esp+4]
lidt [eax]
sti
ret
%macro ISR_NOERRCODE 1
global isr%1
isr%1:
cli
push dword 0
push dword %1
jmp isr_common
%endmacro
%macro ISR_ERRCODE 1
global isr%1
isr%1:
cli
push dword %1
... |
Tom-Ferr/kfs | 1,988 | code/bootable_base/boot.s | global start
extern kernel
extern enable_paging
section .text
bits 32
check_multiboot:
; check the bootloader wrote its magic value in eax before loading our kernel
cmp eax, 0x36d76289
jne .no_multiboot
ret
.no_multiboot:
; ERR: 0, our kernel wasn't launched by a multiboot compliant bootloader (s... |
tom-h-f/macaque | 5,148 | src/arch/riscv64/boot/asm/boot.s | ##! Boot assembly code for macaque
##!
##! ## Naming Conventions
##! All functions are prefixed with `_`
##!
##! All labels are prefixed with `_<function_name>_<mode_intial>_`
##! Example: `_start_s_return`
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
.option ... |
tkr631060903/TTL-POWER-1031 | 12,047 | TTL-POWER-1031/MDK-ARM/startup_stm32f103xb.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f103xb.s
;* Author : MCD Application Team
;* Description : STM32F103xB Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
tkr631060903/TTL-POWER-1031 | 12,040 | TTL-POWER-1031_Bootloader/MDK-ARM/startup_stm32f103xb.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f103xb.s
;* Author : MCD Application Team
;* Description : STM32F103xB Devices vector table for MDK-ARM toolchain.
;* This module performs:
;* ... |
tom-jerr/rcore-practice | 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... |
TMKCodes/kaspa-gpu-miner-attack-0x51 | 5,802 | src/keccakf1600_x86-64-osx.s | # Source: https://github.com/dot-asm/cryptogams/blob/master/x86_64/keccak1600-x86_64.pl
.text
.p2align 5
__KeccakF1600:
.cfi_startproc
.byte 0xf3,0x0f,0x1e,0xfa
movq 60(%rdi),%rax
movq 68(%rdi),%rbx
movq 76(%rdi),%rcx
movq 84(%rdi),%rdx
movq 92(%rdi),%rbp
jmp L$oop
.p2align 5
L$oop:
movq -100(%rdi),%r8
mo... |
TMKCodes/kaspa-gpu-miner-attack-0x51 | 6,073 | src/keccakf1600_x86-64.s | # Source: https://github.com/dot-asm/cryptogams/blob/master/x86_64/keccak1600-x86_64.pl
.text
.type __KeccakF1600,@function
.align 32
__KeccakF1600:
.cfi_startproc
.byte 0xf3,0x0f,0x1e,0xfa
movq 60(%rdi),%rax
movq 68(%rdi),%rbx
movq 76(%rdi),%rcx
movq 84(%rdi),%rdx
movq 92(%rdi),%rbp
jmp .Loop
.align 32
.Loo... |
tock/libtock-rs-cheri | 7,200 | runtime/src/startup/asm_riscv.s | /* rt_header is defined by the general linker script (libtock_layout.ld). It has
* the following layout:
*
* Field | Offset
* ------------------------------------
* Top of the stack | 0
* stack size | 4
* start of .bss ... |
tock/libtock-rs-cheri | 3,517 | runtime/src/startup/asm_riscv32.s | /* rt_header is defined by the general linker script (libtock_layout.ld). It has
* the following layout:
*
* Field | Offset
* ------------------------------------
* Address of the start symbol | 0
* Initial process break | 4
* Top of the stack ... |
tock/libtock-rs-cheri | 3,885 | runtime/src/startup/asm_arm.s | /* rt_header is defined by the general linker script (libtock_layout.ld). It has
* the following layout:
*
* Field | Offset
* ------------------------------------
* Address of the start symbol | 0
* Initial process break | 4
* Top of the stack ... |
Togetabetterplace/C2S-Compiler | 1,367 | test/test.s | .text
.section .rodata
.comm T0,4,4
.comm T1,4,4
.comm T2,4,4
.comm T3,4,4
.LC0:
.string "f(%d)=%d\n"
.LC1:
.string "completeprintFibonaccinumber====================+\n"
.text
.globl main
.type main, @function
main:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.c... |
Togetabetterplace/C2S-Compiler | 1,127 | test/print.s | .text
.section .rodata
.comm T0,4,4
.comm T1,4,4
.comm T2,4,4
.LC0:
.string "%c"
.LC1:
.string "\n\nչʾprintfеIJһʽ\nb*2+(4+5)*3=%d"
.LC2:
.string "\n\nչʾ±ĿñʾҿɵݹǶ\nintc=arr[arr[b+1]]=%d\n\n"
.text
.globl main
.type main, @function
main:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
m... |
Togetabetterplace/C2S-Compiler | 1,321 | test/fibonacci.s | .text
.section .rodata
.comm T0,4,4
.comm T1,4,4
.comm T2,4,4
.comm T3,4,4
.LC0:
.string "f(%d)=%d\n"
.LC1:
.string "쳲дӡ\n"
.text
.globl main
.type main, @function
main:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $120, %rsp
movl $... |
Togetabetterplace/C2S-Compiler | 3,691 | test/longTest.s | .text
.section .rodata
.comm T0,4,4
.comm T1,4,4
.comm T2,4,4
.comm T3,4,4
.comm T4,4,4
.comm T5,4,4
.comm T6,4,4
.comm T7,4,4
.comm T8,4,4
.comm T9,4,4
.comm T10,4,4
.comm T11,4,4
.comm T12,4,4
.comm T13,4,4
.comm T14,4,4
.comm T15,4,4
.comm T16,4,4
.text
.globl main
.type main, @function
main:
... |
Tokinouta/my-rust-os | 1,462 | src/boot/boot.S | .section ".text.boot"
.globl _start
_start:
mrs x0, mpidr_el1
and x0, x0,#0xFF // Check processor id
cbz x0, master // Hang for all non-primary CPU
b proc_hang
proc_hang:
b proc_hang
master:
mrs x0, CurrentEL
cmp x0, #{CurrentEL_EL3}
b.eq el3_entry
b el2_entry
el3_entry:
l... |
Tokinouta/my-rust-os | 3,667 | src/arch/kernel/irq/entry.S | .equ BAD_SYNC, 0
.equ BAD_IRQ, 1
.equ BAD_FIQ, 2
.equ BAD_ERROR, 3
// vector table entry
// 每个表项是128字节, align 7表示128字节对齐
.macro vtentry label
.align 7
b \label
.endm
// 处理无效的异常向量
.macro inv_entry el, reason
kernel_entry el
mov x0, sp
mov x1, #\reason
mrs x2, esr_el... |
toptensoftware/Topten.TinyC | 1,720 | tccbin/win32/x64/lib/chkstk.S | /* ---------------------------------------------- */
/* chkstk86.s */
#ifdef __leading_underscore
# define _(s) _##s
#else
# define _(s) s
#endif
/* ---------------------------------------------- */
#ifndef __x86_64__
/* ---------------------------------------------- */
.globl _(__chkstk)
_(__chkstk):
xchg (%... |
toptensoftware/Topten.TinyC | 1,720 | tccbin/win32/x86/lib/chkstk.S | /* ---------------------------------------------- */
/* chkstk86.s */
#ifdef __leading_underscore
# define _(s) _##s
#else
# define _(s) s
#endif
/* ---------------------------------------------- */
#ifndef __x86_64__
/* ---------------------------------------------- */
.globl _(__chkstk)
_(__chkstk):
xchg (%... |
TomaszBednorz/energy_monitor | 25,888 | 4_Generated/Core/Startup/startup_stm32f767zitx.s | /**
******************************************************************************
* @file startup_stm32f767xx.s
* @author MCD Application Team
* @brief STM32F767xx Devices vector table for GCC based toolchain.
* This module performs:
* - Set the initial SP
* ... |
Tom-Ferr/kfs | 1,122 | code/bootable_base/procs.s | section .procs
global switch_to_user_mode
global run_proc
switch_to_user_mode:
cli
mov ax, 0x2b ; user mode data selector is 0x28 (GDT entry 4). Also sets RPL to 3 (0x28 | 0x3)
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
xor eax, eax
mov edi, [esp+4]
mov esi, [esp+8]
push ... |
Tom-Ferr/kfs | 2,182 | code/bootable_base/idt.s | section .idt
global idt_flush
idt_flush:
mov eax, [esp+4]
lidt [eax]
sti
ret
%macro ISR_NOERRCODE 1
global isr%1
isr%1:
cli
push dword 0
push dword %1
jmp isr_common
%endmacro
%macro ISR_ERRCODE 1
global isr%1
isr%1:
cli
push dword %1
... |
Tom-Ferr/kfs | 1,988 | code/bootable_base/boot.s | global start
extern kernel
extern enable_paging
section .text
bits 32
check_multiboot:
; check the bootloader wrote its magic value in eax before loading our kernel
cmp eax, 0x36d76289
jne .no_multiboot
ret
.no_multiboot:
; ERR: 0, our kernel wasn't launched by a multiboot compliant bootloader (s... |
tom-h-f/macaque | 5,148 | src/arch/riscv64/boot/asm/boot.s | ##! Boot assembly code for macaque
##!
##! ## Naming Conventions
##! All functions are prefixed with `_`
##!
##! All labels are prefixed with `_<function_name>_<mode_intial>_`
##! Example: `_start_s_return`
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
##!
.option ... |
tom-jerr/rcore-practice | 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... |
toptensoftware/Topten.TinyC | 1,720 | tccbin/win32/x64/lib/chkstk.S | /* ---------------------------------------------- */
/* chkstk86.s */
#ifdef __leading_underscore
# define _(s) _##s
#else
# define _(s) s
#endif
/* ---------------------------------------------- */
#ifndef __x86_64__
/* ---------------------------------------------- */
.globl _(__chkstk)
_(__chkstk):
xchg (%... |
toptensoftware/Topten.TinyC | 1,720 | tccbin/win32/x86/lib/chkstk.S | /* ---------------------------------------------- */
/* chkstk86.s */
#ifdef __leading_underscore
# define _(s) _##s
#else
# define _(s) s
#endif
/* ---------------------------------------------- */
#ifndef __x86_64__
/* ---------------------------------------------- */
.globl _(__chkstk)
_(__chkstk):
xchg (%... |
tranviviana/RiscVClassifyDigits | 2,740 | src/write_matrix.s | .globl write_matrix
.text
# ==============================================================================
# FUNCTION: Writes a matrix of integers into a binary file
# FILE FORMAT:
# The first 8 bytes of the file will be two 4 byte ints representing the
# numbers of rows and columns respectively. Every 4 bytes the... |
tranviviana/RiscVClassifyDigits | 14,595 | src/utils.s | ##############################################################
# Do not modify! (But feel free to use the functions provided)
##############################################################
#define c_print_int 1
#define c_print_str 4
#define c_atoi 5
#define c_sbrk 9
#define c_print_char 11
#define c_openFile 13
#defin... |
tranviviana/RiscVClassifyDigits | 1,251 | src/relu.s | .globl relu
.text
# ==============================================================================
# FUNCTION: Performs an inplace element-wise ReLU on an array of ints
# Arguments:
# a0 (int*) is the pointer to the array
# a1 (int) is the # of elements in the array
# Returns:
# None
# Exceptions:
# - If the ... |
tranviviana/RiscVClassifyDigits | 2,380 | src/dot.s | .globl dot
.text
# =======================================================
# FUNCTION: Dot product of 2 int arrays
# Arguments:
# a0 (int*) is the pointer to the start of arr0
# a1 (int*) is the pointer to the start of arr1
# a2 (int) is the number of elements to use
# a3 (int) is the stride of arr0
# a4 (... |
tranviviana/RiscVClassifyDigits | 1,434 | src/argmax.s | .globl argmax
.text
# =================================================================
# FUNCTION: Given a int array, return the index of the largest
# element. If there are multiple, return the one
# with the smallest index.
# Arguments:
# a0 (int*) is the pointer to the start of the array
# a1 (int) is the... |
tranviviana/RiscVClassifyDigits | 4,743 | src/matmul.s | .globl matmul
.text
# =======================================================
# FUNCTION: Matrix Multiplication of 2 integer matrices
# d = matmul(m0, m1)
# Arguments:
# a0 (int*) is the pointer to the start of m0
# a1 (int) is the # of rows (height) of m0
# a2 (int) is the # of columns (width) of m0
# ... |
tranviviana/RiscVClassifyDigits | 2,904 | src/read_matrix.s | .globl read_matrix
.text
# ==============================================================================
# FUNCTION: Allocates memory and reads in a binary file as a matrix of integers
#
# FILE FORMAT:
# The first 8 bytes are two 4 byte ints representing the # of rows and columns
# in the matrix. Every 4 bytes af... |
tranviviana/RiscVClassifyDigits | 5,858 | src/classify.s | .globl classify
.text
# =====================================
# COMMAND LINE ARGUMENTS
# =====================================
# Args:
# a0 (int) argc
# a1 (char**) argv
# a1[1] (char*) pointer to the filepath string of m0
# a1[2] (char*) pointer to the filepath string of m1
# a1[3] (char*) ... |
tranviviana/RiscVClassifyDigits | 1,326 | coverage-src/initialize_zero.s | .globl initialize_zero
.text
# =======================================================
# FUNCTION: Initialize a zero array with the given length
# Arguments:
# a0 (int) size of the array
# Returns:
# a0 (int*) is the pointer to the zero array
# Exceptions:
# - If the length of the array is less than 1,
# this ... |
tranviviana/RiscVClassifyDigits | 1,398 | coverage-src/zero_one_loss.s | .globl zero_one_loss
.text
# =======================================================
# FUNCTION: Return a 0-1 classifer array
# Arguments:
# a0 (int*) is the pointer to the start of arr0
# a1 (int*) is the pointer to the start of arr1
# a2 (int) is the length of the arrays
# a3 (int*) is the pointer to the st... |
tranviviana/RiscVClassifyDigits | 1,537 | coverage-src/squared_loss.s | .globl squared_loss
.text
# =======================================================
# FUNCTION: Get the squared difference of 2 int arrays,
# store in a third array and compute the sum
# Arguments:
# a0 (int*) is the pointer to the start of arr0
# a1 (int*) is the pointer to the start of arr1
# a2 (int) is th... |
tranviviana/RiscVClassifyDigits | 1,578 | coverage-src/abs_loss.s | .globl abs_loss
.text
# =======================================================
# FUNCTION: Get the absolute difference of 2 int arrays,
# store in a third array and compute the sum
# Arguments:
# a0 (int*) is the pointer to the start of arr0
# a1 (int*) is the pointer to the start of arr1
# a2 (int) is the l... |
tranviviana/RiscVClassifyDigits | 4,838 | tests/chain-1/chain.s | .import ../../src/read_matrix.s
.import ../../src/write_matrix.s
.import ../../src/matmul.s
.import ../../src/dot.s
.import ../../src/relu.s
.import ../../src/argmax.s
.import ../../src/utils.s
.import ../../src/classify.s
.globl main
# This is a dummy main function which imports and calls the classify function.
# Whi... |
TrichedOut/.dotifles | 4,337 | .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/compiler_builtins-0.1.146/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... |
TrichedOut/.dotifles | 3,885 | .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/compiler_builtins-0.1.146/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... |
TrichedOut/.dotifles | 4,378 | .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/compiler_builtins-0.1.146/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:
... |
TrichedOut/.dotifles | 7,236 | .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/compiler_builtins-0.1.146/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... |
TrichedOut/.dotifles | 4,801 | .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/compiler_builtins-0.1.146/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... |
TrichedOut/.dotifles | 1,295 | .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/compiler_builtins-0.1.146/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(... |
TrichedOut/.dotifles | 5,659 | .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/compiler_builtins-0.1.146/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... |
TrichedOut/.dotifles | 5,120 | .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/compiler_builtins-0.1.146/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);
... |
trsonfu/sp1-x | 11,855 | crates/zkvm/entrypoint/src/memcpy.s | // This is musl-libc commit 37e18b7bf307fa4a8c745feebfcba54a0ba74f30:
//
// src/string/memcpy.c
//
// This was compiled into assembly with:
//
// clang-14 -target riscv32 -march=rv32im -O3 -S memcpy.c -nostdlib -fno-builtin -funroll-loops
//
// and labels manually updated to not conflict.
//
// musl as a whole is ... |
trsonfu/sp1-x | 8,450 | crates/zkvm/entrypoint/src/memset.s | // This is musl-libc memset commit 37e18b7bf307fa4a8c745feebfcba54a0ba74f30:
//
// src/string/memset.c
//
// This was compiled into assembly with:
//
// clang-14 -target riscv32 -march=rv32im -O3 -S memset.c -nostdlib -fno-builtin -funroll-loops
//
// and labels manually updated to not conflict.
//
// musl as a wh... |
ts444411/virtual86 | 1,816 | tests/qemu/test-i386-vm86.S | .code16
.globl vm86_code_start
.globl vm86_code_end
#define GET_OFFSET(x) ((x) - vm86_code_start + 0x100)
vm86_code_start:
movw $GET_OFFSET(hello_world), %dx
movb $0x09, %ah
int $0x21
/* prepare int 0x90 vector */
xorw %ax, %ax
movw %ax, %es
... |
ts444411/virtual86 | 1,319 | tests/qemu/test-i386-code16.S | .code16
.globl code16_start
.globl code16_end
CS_SEG = 0xf
code16_start:
.globl code16_func1
/* basic test */
code16_func1 = . - code16_start
mov $1, %eax
data32 lret
/* test push/pop in 16 bit mode */
.globl code16_func2
code16_func2 = . - code16_sta... |
ts444411/v862 | 1,816 | tests/qemu/test-i386-vm86.S | .code16
.globl vm86_code_start
.globl vm86_code_end
#define GET_OFFSET(x) ((x) - vm86_code_start + 0x100)
vm86_code_start:
movw $GET_OFFSET(hello_world), %dx
movb $0x09, %ah
int $0x21
/* prepare int 0x90 vector */
xorw %ax, %ax
movw %ax, %es
... |
ts444411/v862 | 1,319 | tests/qemu/test-i386-code16.S | .code16
.globl code16_start
.globl code16_end
CS_SEG = 0xf
code16_start:
.globl code16_func1
/* basic test */
code16_func1 = . - code16_start
mov $1, %eax
data32 lret
/* test push/pop in 16 bit mode */
.globl code16_func2
code16_func2 = . - code16_sta... |
ts444411/virtual86 | 3,647 | tests/kvm-unit-tests/x86/cstart.S |
#include "apic-defs.h"
.globl boot_idt
boot_idt = 0
ipi_vector = 0x20
max_cpus = 64
.bss
. = . + 4096 * max_cpus
.align 16
stacktop:
. = . + 4096
.align 16
ring0stacktop:
.data
.align 4096
pt:
i = 0
.rept 1024
.long 0x1e7 | (i << 22)
i = i + 1
.endr
.globl gdt32
gdt32:
.qu... |
ts444411/virtual86 | 4,163 | tests/kvm-unit-tests/x86/cstart64.S |
#include "apic-defs.h"
.globl boot_idt
boot_idt = 0
.globl idt_descr
.globl tss_descr
.globl gdt64_desc
ipi_vector = 0x20
max_cpus = 64
.bss
. = . + 4096 * max_cpus
.align 16
stacktop:
. = . + 4096
.align 16
ring0stacktop:
.data
.align 4096
.globl ptl2
ptl2:
i = 0
.rept 512 * 4
.quad 0x1e7 | (i << 21)
... |
ts444411/v862 | 3,647 | tests/kvm-unit-tests/x86/cstart.S |
#include "apic-defs.h"
.globl boot_idt
boot_idt = 0
ipi_vector = 0x20
max_cpus = 64
.bss
. = . + 4096 * max_cpus
.align 16
stacktop:
. = . + 4096
.align 16
ring0stacktop:
.data
.align 4096
pt:
i = 0
.rept 1024
.long 0x1e7 | (i << 22)
i = i + 1
.endr
.globl gdt32
gdt32:
.qu... |
ts444411/v862 | 4,163 | tests/kvm-unit-tests/x86/cstart64.S |
#include "apic-defs.h"
.globl boot_idt
boot_idt = 0
.globl idt_descr
.globl tss_descr
.globl gdt64_desc
ipi_vector = 0x20
max_cpus = 64
.bss
. = . + 4096 * max_cpus
.align 16
stacktop:
. = . + 4096
.align 16
ring0stacktop:
.data
.align 4096
.globl ptl2
ptl2:
i = 0
.rept 512 * 4
.quad 0x1e7 | (i << 21)
... |
ts-phantomnk90/haberdashery | 87,872 | asm/aes256gcmdndkv2kc_skylake.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.LCPI0_1:
.quad 4... |
ts-phantomnk90/haberdashery | 67,287 | asm/aes256gcm_broadwell.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.LCPI0_1:
.quad 4... |
ts-phantomnk90/haberdashery | 58,036 | asm/aes128gcm_streaming_tigerlake.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 15
.byte 14
.byte 13
.byte 12
.byte 11
.byte 10
.byte 9
.byte 8
.byte 7
.byte 6
.byte 5
.byte 4
.byte 3
.byte 2
.byte 1
.byte 0
.section .rodata.cst8,"aM",... |
ts-phantomnk90/haberdashery | 56,428 | asm/aes256gcm_skylakex.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.LCPI0_9:
.byte 1... |
ts-phantomnk90/haberdashery | 45,849 | asm/sivmac_broadwell.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.long 1
.long 0
.long 0
.long 0
.LCPI0_1:
.long 2
.long 0
.long 0
.long 0
.LCPI0_2:
.long 3
.long 0
.long 0
.long 0
.LCPI0_3:
.long 4
.long 0
.long 0
.long 0
.LCP... |
ts-phantomnk90/haberdashery | 84,526 | asm/aes256gcmdndkv2_haswell.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.LCPI0_1:
.quad 4... |
ts-phantomnk90/haberdashery | 73,012 | asm/aes256gcmdndk_tigerlake.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.section .rodata.... |
ts-phantomnk90/haberdashery | 71,998 | asm/aes256gcm_streaming_haswell.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.LCPI0_1:
.quad 4... |
ts-phantomnk90/haberdashery | 63,642 | asm/aes192gcm_skylake.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 15
.byte 14
.byte 13
.byte 12
.byte 11
.byte 10
.byte 9
.byte 8
.byte 7
.byte 6
.byte 5
.byte 4
.byte 3
.byte 2
.byte 1
.byte 0
.LCPI0_1:
.zero 8
.quad -4... |
ts-phantomnk90/haberdashery | 57,907 | asm/aes128gcm_streaming_skylakex.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 15
.byte 14
.byte 13
.byte 12
.byte 11
.byte 10
.byte 9
.byte 8
.byte 7
.byte 6
.byte 5
.byte 4
.byte 3
.byte 2
.byte 1
.byte 0
.section .rodata.cst8,"aM",... |
ts-phantomnk90/haberdashery | 85,572 | asm/aes256gcmdndk_broadwell.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.LCPI0_1:
.quad 4... |
ts-phantomnk90/haberdashery | 71,245 | asm/aes256gcmdndkv2_tigerlake.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.section .rodata.... |
ts-phantomnk90/haberdashery | 76,858 | asm/aes256gcmsiv_broadwell.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.LCPI0_1:
.quad 4... |
ts-phantomnk90/haberdashery | 76,545 | asm/aes256gcmsiv_haswell.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.LCPI0_1:
.quad 4... |
ts-phantomnk90/haberdashery | 61,628 | asm/aes128gcm_haswell.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 15
.byte 14
.byte 13
.byte 12
.byte 11
.byte 10
.byte 9
.byte 8
.byte 7
.byte 6
.byte 5
.byte 4
.byte 3
.byte 2
.byte 1
.byte 0
.LCPI0_1:
.zero 8
.quad -4... |
ts-phantomnk90/haberdashery | 63,676 | asm/aes192gcm_broadwell.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 15
.byte 14
.byte 13
.byte 12
.byte 11
.byte 10
.byte 9
.byte 8
.byte 7
.byte 6
.byte 5
.byte 4
.byte 3
.byte 2
.byte 1
.byte 0
.LCPI0_1:
.zero 8
.quad -4... |
ts-phantomnk90/haberdashery | 85,663 | asm/aes256gcmdndk_skylake.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.LCPI0_1:
.quad 4... |
ts-phantomnk90/haberdashery | 45,583 | asm/sivmac_haswell.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.long 1
.long 0
.long 0
.long 0
.LCPI0_1:
.long 2
.long 0
.long 0
.long 0
.LCPI0_2:
.long 3
.long 0
.long 0
.long 0
.LCPI0_3:
.long 4
.long 0
.long 0
.long 0
.LCP... |
ts-phantomnk90/haberdashery | 76,203 | asm/aes256gcmdndk_skylakex.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.section .rodata.... |
ts-phantomnk90/haberdashery | 74,392 | asm/aes256gcmdndkv2kc_tigerlake.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.section .rodata.... |
ts-phantomnk90/haberdashery | 50,125 | asm/aes128gcm_skylakex.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 15
.byte 14
.byte 13
.byte 12
.byte 11
.byte 10
.byte 9
.byte 8
.byte 7
.byte 6
.byte 5
.byte 4
.byte 3
.byte 2
.byte 1
.byte 0
.section .rodata.cst8,"aM",... |
ts-phantomnk90/haberdashery | 35,701 | asm/sivmac_skylakex.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.long 1
.long 0
.long 0
.long 0
.LCPI0_1:
.long 2
.long 0
.long 0
.long 0
.LCPI0_2:
.long 3
.long 0
.long 0
.long 0
.LCPI0_3:
.long 4
.long 0
.long 0
.long 0
.LCP... |
ts-phantomnk90/haberdashery | 84,079 | asm/aes256gcmdndkv2_skylake.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.byte 13
.byte 14
.byte 15
.byte 12
.LCPI0_1:
.quad 4... |
ts-phantomnk90/haberdashery | 31,232 | asm/sivmac_tigerlake.s | # @generated
# https://github.com/facebookincubator/haberdashery/
.text
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0
.LCPI0_0:
.long 1
.long 0
.long 0
.long 0
.LCPI0_1:
.quad 2
.quad 0
.LCPI0_2:
.long 3
.long 0
.long 0
.long 0
.LCPI0_3:
.long 4
.long 0
.long 0
.long 0
.LCPI0_4:
.long 5
.l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.