repo_id string | size int64 | file_path string | content string |
|---|---|---|---|
Ali0Alsallami/my-android-app | 2,045 | .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/psm-0.1.21/src/arch/powerpc64_openpower.s | /* Implementation of stack swtiching routines for OpenPOWER 64-bit ELF ABI
The specification can be found at
http://openpowerfoundation.org/wp-content/uploads/resources/leabi/content/ch_preface.html
This ABI is usually used by the ppc64le targets.
*/
#include "psm.h"
.text
.abiversion 2
.globl rust_psm_st... |
alizeeshan1234/doppler-asm | 1,373 | src/doppler-asm/doppler-asm.s | .globl e
e:
.equ ADMIN_HEADER, 0x0008
.equ EXPECTED_ADMIN_HEADER, 0x01ff
.equ ADMIN_KEY_0, 0x0010
.equ ADMIN_KEY_1, 0x0018
.equ ADMIN_KEY_2, 0x0020
.equ ADMIN_KEY_3, 0x0028
.equ EXPECTED_ADMIN_KEY_0, 0x2222222222222222
.equ EXPECTED_ADMIN_KEY_1, 0x2222222222222222
.equ EXPECTED_ADMIN_KEY_2, 0x22222222... |
almafa64/arduino-6502-emulator | 652 | test_codes/timer1_one_test.s | DDRA = $0203 ; port A input/output mode
DDRB = $0202 ; port B input/output mode
PORTA = $0200 ; port A data
PORTB = $0201 ; port B data
E = %00000100 ; led display enable
RW = %00000010 ; led display read/write
RS = %00000001 ; led display register select
T1CL = $0204 ; t1 clock low byte
T1CH = $0205 ; t1 c... |
almafa64/arduino-6502-emulator | 3,521 | test_codes/lcd_test.s | DDRA = $0203 ; port A input/output mode
DDRB = $0202 ; port B input/output mode
PORTA = $0200 ; port A data
PORTB = $0201 ; port B data
E = %00000100 ; led display enable
RW = %00000010 ; led display read/write
RS = %00000001 ; led display register select
.org $8000
begin:
dec DDRA ; set all pins to out... |
almafa64/arduino-6502-emulator | 1,067 | test_codes/timer1_free_test.s | DDRA = $0203 ; port A input/output mode
DDRB = $0202 ; port B input/output mode
PORTA = $0200 ; port A data
PORTB = $0201 ; port B data
E = %00000100 ; led display enable
RW = %00000010 ; led display read/write
RS = %00000001 ; led display register select
T1CL = $0204 ; t1 clock low byte
T1CH = $0205 ; t1 c... |
alperenbekci/buildh3r-september | 9,203 | zkm/runtime/entrypoint/src/memset.s | // This is musl-libc memset commit 5613a1486e6a6fc3988be6561f41b07b2647d80f:
//
// src/string/memset.c
//
// This was compiled into assembly with:
//
// clang10 -target mips -O3 -S memset.c -nostdlib -fno-builtin -funroll-loops
//
// and labels manually updated to not conflict.
//
// musl as a whole is licensed un... |
alperenbekci/buildh3r-september | 9,951 | zkm/runtime/entrypoint/src/memcpy.s | // This is musl-libc commit 3b0a370020c4d5b80ff32a609e5322b7760f0dc4:
//
// src/string/memcpy.c
//
// This was compiled into assembly with:
//
// clang-10 -target mips -O3 -S memcpy.c -nostdlib -fno-builtin -funroll-loops
//
// and labels manually updated to not conflict.
//
// musl as a whole is licensed under th... |
alperenbekci/buildh3r-september | 501 | zkm/go-runtime/zkm_runtime/syscall_mips.s | //go:build mips
// +build mips
TEXT ·SyscallWrite(SB), $0-24
MOVW $4004, R2 // #define SYS_write 4004
MOVW fd+0(FP), R4
MOVW write_buf+4(FP), R5
MOVW nbytes+16(FP), R6
SYSCALL
MOVW R2, ret+0(FP)
RET
TEXT ·SyscallHintLen(SB), $0-4
MOVW $0xF0, R2 // #define SYS_hint_len 0xF0
SYSCALL
... |
alt-22/incubator-teaclave-sgx-sdk | 2,830 | sgx_unwind/libunwind/src/x86_64/setcontext.S | /* libunwind - a platform-independent unwind library
Copyright (C) 2007 Google, Inc
Contributed by Arun Sharma <arun.sharma@google.com>
Copyright (C) 2010 Konstantin Belousov <kib@freebsd.org>
This file is part of libunwind.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this s... |
alt-22/incubator-teaclave-sgx-sdk | 1,438 | sgx_unwind/libunwind/src/x86_64/siglongjmp.S | /* libunwind - a platform-independent unwind library
Copyright (C) 2004 Hewlett-Packard Co
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
This file is part of libunwind.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"... |
alt-22/incubator-teaclave-sgx-sdk | 4,427 | sgx_unwind/libunwind/src/x86_64/getcontext.S | /* libunwind - a platform-independent unwind library
Copyright (C) 2008 Google, Inc
Contributed by Paul Pluzhnikov <ppluzhnikov@google.com>
Copyright (C) 2010 Konstantin Belousov <kib@freebsd.org>
This file is part of libunwind.
Permission is hereby granted, free of charge, to any person obtaining
a copy of th... |
alt-22/incubator-teaclave-sgx-sdk | 1,520 | sgx_unwind/libunwind/src/x86_64/longjmp.S | /* libunwind - a platform-independent unwind library
Copyright (C) 2004-2005 Hewlett-Packard Co
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
This file is part of libunwind.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (... |
alt-22/incubator-teaclave-sgx-sdk | 15,163 | samplecode/decryption_enclave/enclave/bellerophon/crypto/pcl_ghash-x86_64.s | /*
* Copyright (C) 2011-2017 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this li... |
alt-22/incubator-teaclave-sgx-sdk | 18,264 | samplecode/decryption_enclave/enclave/bellerophon/crypto/pcl_vpaes-x86_64.s | /*
* Copyright (C) 2011-2017 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this li... |
AmitPr/RISCuit | 3,112 | riscv/dhrystone/strcmp.S | /* Copyright (c) 2017 SiFive Inc. All rights reserved.
This copyrighted material is made available to anyone wishing to use,
modify, copy, or redistribute it subject to the terms and conditions
of the FreeBSD License. This program is distributed in the hope that
it will be useful, but WITHOUT ANY WARRAN... |
AmmarMorched/STM32_EnergyMonitor_IoT | 22,854 | stm projet/Projetstm_consommation/Core/Startup/startup_stm32f407vgtx.s | /**
******************************************************************************
* @file startup_stm32f407xx.s
* @author MCD Application Team
* @brief STM32F407xx Devices vector table for GCC based toolchains.
* This module performs:
* - Set the initial SP
* ... |
anak1st/rCore | 676 | 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
s... |
anak1st/rCore | 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... |
AnastasiosChatzikyriakou09/ACh_Thesis | 3,496 | Dummy/GA_SRRIP-main/GeST/assembly_compilation_ARM/main_original.s | /*
Copyright 2019 ARM Ltd. and University of Cyprus
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publis... |
AnastasiosChatzikyriakou09/ACh_Thesis | 2,903 | Dummy/GA_SRRIP-main/GeST/assembly_compilation_x86_gcc/main_original.s | /*
Copyright 2019 ARM Ltd. and University of Cyprus
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publis... |
anchees/labo | 468 | lab_00/hello.s | .file "hello.c"
.text
.section .rodata
.LC0:
.string "Hello world!"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
leaq .LC0(%rip), %rax
movq %rax, %rdi
call puts@PLT
movl $0, %eax
popq %r... |
andogq/kernel | 1,325 | arch/aarch64/src/boot/boot.s | // Load the relative address (to the PC) of a value.
// The symbol must be within +/- 4Gb of the PC.
.macro ADR_REL register, symbol
// An offset to the page into the upper part of the register
adrp \register, \symbol
// Load the lower bits of the symbol address, which are the offset into the page.
a... |
Andrew-LC/myos | 4,552 | src/boot.s | /* Declare constants for the multiboot header. */
.set ALIGN, 1<<0 /* align loaded modules on page boundaries */
.set MEMINFO, 1<<1 /* provide memory map */
.set FLAGS, ALIGN | MEMINFO /* this is the Multiboot 'flag' field */
.set MAGIC, 0x1BADB002 /* 'magic number' lets bootloa... |
andromanged/camer | 8,619 | src/asm/keccakf1600_x86-64-elf.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... |
andromanged/camer | 10,572 | src/asm/keccakf1600_x86-64-win64.s | # Source: https://github.com/dot-asm/cryptogams/blob/master/x86_64/keccak1600-x86_64.pl
.text
.def __KeccakF1600; .scl 3; .type 32; .endef
.p2align 5
__KeccakF1600:
.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
.p2align 5
.L... |
andromanged/camer | 8,238 | src/asm/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... |
andromanged/camer | 10,572 | src/asm/keccakf1600_x86-64-mingw64.s | # Source: https://github.com/dot-asm/cryptogams/blob/master/x86_64/keccak1600-x86_64.pl
.text
.def __KeccakF1600; .scl 3; .type 32; .endef
.p2align 5
__KeccakF1600:
.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
.p2align 5
.L... |
Aqua-218/HikariOS | 6,486 | src/boot/bootloader.S | ; HikariOS Stage0 UEFI Bootloader (ELF Loader)
; Author: SeleniaProject
; License: MIT OR Apache-2.0
; This file is assembled with NASM to generate a PE32+ EFI image.
; All comments are in English as requested.
BITS 64
DEFAULT REL
%define EFI_SUCCESS 0
%define EFI_LOAD_ERROR 0x80000000000... |
Aqua-218/HikariOS | 380 | bootloader/src/bootloader.S | ; Stage0 UEFI PE entry stub
; This assembly shim simply jumps to the Rust entry symbol.
BITS 64
default rel
global efi_main
section .text
efi_main:
; RCX = EFI_HANDLE (ImageHandle)
; RDX = EFI_SYSTEM_TABLE* (SystemTable)
mov rdi, rcx ; first argument per System V ABI
mov rsi, rdx ; second argument per ... |
Arcadia-Y/ACore | 496 | os/src/time/timer_trap.s | # handle timer interrupts in M-mode and delegate it to S-mode
.section .text.trap
.globl _timer_trap
.align 2
_timer_trap:
csrrw sp, mscratch, sp
sd t0, 0(sp)
sd t1, 1*8(sp)
sd t2, 2*8(sp)
# set mtimecmp
ld t0, 3*8(sp) # mtimecmp
ld t1, 4*8(sp) # time interval
ld t2, 0(t0)
... |
Arcadia-Y/ACore | 559 | 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_ptr: *mut TaskContext,
# next_task_cx_ptr: *const TaskContext
# )
__switch:
# store current context
sd sp, 8(a0)
... |
Arcadia-Y/ACore | 1,361 | 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 sscratch -> user_stack, sp -> TrapContext
# store registers except x0/sp/tp
... |
argha-saha/riscv-assembler | 14 | test_asm_files/rv32m/mul.s | mul a0, t0, t1 |
argha-saha/riscv-assembler | 39 | test_asm_files/csr/csrrw.s | li x6, 0xA
csrrw x0, mstatus, x6
ebreak |
argha-saha/riscv-assembler | 15,146 | test_asm_files/programs/one_k.s | start: addi t0, x0, 1
addi t0, t0, 1
addi t0, t0, 1
addi t0, t0, 1
addi t0, t0, 1
addi t0, t0, 1
addi t0, t0, 1
addi t0, t0, 1
addi t0, t0, 1
addi t0, t0, 1
addi t0, t0, 1
addi t0, t0, 1
addi t0, t0, 1
addi t0, t0, 1
addi t0, t0, 1
addi t0, t0, 1
addi t0, t0, 1
addi t0, t0, 1
addi t0, t0, 1
addi t0, t0, 1
addi t0, t0, ... |
argha-saha/riscv-assembler | 46 | test_asm_files/pseudo_instructions/jr.s | auipc ra, 0
addi ra, ra, 12
jr ra
done:
jr ra |
argha-saha/riscv-assembler | 43 | test_asm_files/pseudo_instructions/jal.s | jal func
ebreak
func:
addi a0, x0, 100
ret |
argha-saha/riscv-assembler | 27 | test_asm_files/pseudo_instructions/negw.s | addi t0, x0, 16
negw a0, t0 |
argha-saha/riscv-assembler | 26 | test_asm_files/pseudo_instructions/sgtz.s | addi t0, x0, 4
sgtz a0, t0 |
argha-saha/riscv-assembler | 202 | test_asm_files/pseudo_instructions/li.s | li a0, 100 # Just uses addi
li a1, 1000000 # Expands into lui and addi
beq x0, x0, taken
addi a2, a0, 10
li a3, 0x12345678 # Expands into lui and addi
taken:
addi t0, x0, 16
addi t1, t0, 16 |
argha-saha/riscv-assembler | 17 | test_asm_files/pseudo_instructions/addiw.s | addiw a0, x0, 100 |
argha-saha/riscv-assembler | 65 | test_asm_files/pseudo_instructions/ret.s | start:
jal ra, func
j fail
pass:
j pass
fail:
j fail
func:
ret |
argha-saha/riscv-assembler | 27 | test_asm_files/pseudo_instructions/not.s | addi t0, x0, 100
not a0, t0 |
argha-saha/riscv-assembler | 27 | test_asm_files/pseudo_instructions/neg.s | addi t0, x0, 100
neg a0, t0 |
argha-saha/riscv-assembler | 86 | test_asm_files/pseudo_instructions/j.s | addi t0, x0, 4
j targ
snez a0, t0
addi s0, x0, 8
targ:
addi t1, t0, 12
and t1, t1, t0 |
argha-saha/riscv-assembler | 26 | test_asm_files/pseudo_instructions/seqz.s | addi t0, x0, 4
seqz a0, t0 |
argha-saha/riscv-assembler | 26 | test_asm_files/pseudo_instructions/sltz.s | addi t0, x0, 4
sltz a0, t0 |
argha-saha/riscv-assembler | 25 | test_asm_files/pseudo_instructions/mv.s | addi t0, x0, 32
mv a0, t0 |
argha-saha/riscv-assembler | 113 | test_asm_files/pseudo_instructions/beqz.s | addi a0, x0, 8
addi a1, x0, 8
beqz a0, taken
addi a2, x0, 4
addi a3, a2, 2
taken:
addi a4, x0, 5
addi a5, x0, 10 |
argha-saha/riscv-assembler | 7 | test_asm_files/pseudo_instructions/nop.s | nop
nop |
argha-saha/riscv-assembler | 15 | test_asm_files/pseudo_instructions/subw.s | subw a0, t1, t0 |
argha-saha/riscv-assembler | 29 | test_asm_files/pseudo_instructions/sextw.s | addi t0, x0, 16
sext.w a0, t0 |
argha-saha/riscv-assembler | 26 | test_asm_files/pseudo_instructions/snez.s | addi t0, x0, 4
snez a0, t0 |
argha-saha/riscv-assembler | 116 | test_asm_files/base/addi.s | addi a0, x0, 8
addi a1, x0, 8
beq a0, a1, taken
addi a2, x0, 4
addi a3, a2, 2
taken:
addi a4, x0, 5
addi a5, x0, 10 |
argha-saha/riscv-assembler | 127 | test_asm_files/base/auipc.s | addi t0, t0, 1
addi t0, t0, 1
auipc a0, taken
addi t0, t0, 1
addi t0, t0, 1
taken:
addi t1, t0, 1
addi t1, t0, 1
addi t1, t0, 1 |
argha-saha/riscv-assembler | 125 | test_asm_files/base/lui.s | addi t0, t0, 1
addi t0, t0, 1
lui a0, taken
addi t0, t0, 1
addi t0, t0, 1
taken:
addi t1, t0, 1
addi t1, t0, 1
addi t1, t0, 1 |
Aria-iu/Simple_OS | 222 | kernel/src/entry.S | .section .text.entry
.globl _start
_start:
la sp , boot_stack_top
call simpl_os_main
.section .bss.stack
.globl boot_stack
boot_stack:
.space 4096 * 16
.globl boot_stack_top
boot_stack_top: |
Aria-iu/Simple_OS | 1,831 | kernel/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
.global _app_names
_app_names:
.string "00hello_world"
.str... |
Aria-iu/Simple_OS | 1,588 | kernel/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... |
aschombe/microRISC | 202 | examples/test.s | .text
mov r1, r2
add r1, r2, zr
// this is a comment
// adr r3, age
// test: // this is a comment
// add r1, r1, r1
// sub r2, r1, r2 // this is a comment
// .data
// age: 0
// height: 50
// weight: 60 |
Asecave/BEPL-T3X16 | 80 | c_compiler/Programs/test_out.s | set x0 10
out x0 0
set x0 11
out x0 2
set x0 12
out x0 4
set x0 13
out x0 6
halt |
Asecave/BEPL-T3X16 | 861 | c_compiler/Programs/test_all_instructions.s | # load and store
set x0 10
set x1 1
store x1 x0
load x2 x0
out x2 0
# add
set x1 2
set x2 1
add x2 x2 x1
set x1 7
add x2 x2 x1
out x2 1
set x1 -9
add x2 x2 x1
out x2 1
# jump and return
set x0 32
ssp x0
set x0 jump_test
set x1 -1
set x2 0
set x3 1
set x4 6
jal x0 x1 < x2
out x4 2
jal x0 x2 < x1
out x4 2
jal x0 x2 < x... |
Asecave/BEPL-T3X16 | 692 | c_compiler/Programs/find_primes.s | # n = 1;
# d = 1;
# loop {
# if (n % d == 0) {
# if (d <= 1) {
# out(n);
# }
# n++;
# d = n;
# d--;
# } else {
# d--;
# }
# }
set x0 1
set x1 1
set x6 5
set x7 31
sft x7 x7 << x6
addi x7 31
sft x7 x7 << x6
addi x7 31
:loop
set x2 modulus
jal x2
s... |
Asecave/BEPL-T3X16 | 12 | c_compiler/Programs/single.s | j x0 x1 = x1 |
Asecave/BEPL-T3X16 | 861 | c_compiler/Programs/compiler_input.s | # load and store
set x0 10
set x1 1
store x1 x0
load x2 x0
out x2 0
# add
set x1 2
set x2 1
add x2 x2 x1
set x1 7
add x2 x2 x1
out x2 1
set x1 -9
add x2 x2 x1
out x2 1
# jump and return
set x0 32
ssp x0
set x0 jump_test
set x1 -1
set x2 0
set x3 1
set x4 6
jal x0 x1 < x2
out x4 2
jal x0 x2 < x1
out x4 2
jal x0 x2 < x... |
AshishD5/bhainlink | 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:
... |
AshishD5/bhainlink | 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... |
AshishD5/bhainlink | 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... |
AshishD5/bhainlink | 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:... |
AshishD5/bhainlink | 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
|
AshishD5/bhainlink | 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:
{... |
AshishD5/bhainlink | 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... |
AshishD5/bhainlink | 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
... |
AshishD5/bhainlink | 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 = ... |
AshishD5/bhainlink | 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... |
AshishD5/bhainlink | 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... |
AshishD5/bhainlink | 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... |
AshishD5/bhainlink | 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... |
AshishD5/bhainlink | 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... |
AshishD5/bhainlink | 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... |
AshishD5/bhainlink | 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);
... |
AshishD5/bhainlink | 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(... |
AshishD5/bhainlink | 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(... |
AshishD5/bhainlink | 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... |
AshishD5/bhainlink | 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... |
AshishD5/bhainlink | 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... |
AshishD5/bhainlink | 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... |
AshishD5/bhainlink | 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 ... |
AshishD5/bhainlink | 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 ... |
AshishD5/bhainlink | 79 | tests/ui/asm/named-asm-labels.s | lab1: nop
// do more things
lab2: nop // does bar
// a: b
lab3: nop; lab4: nop
|
AshishD5/bhainlink | 29 | tests/codegen/asm/foo.s | .global foo
foo:
jmp baz
|
AshishD5/bhainlink | 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
|
AshishD5/bhainlink | 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
|
ashutosh-py/Rust | 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 ... |
ashutosh-py/Rust | 29 | tests/codegen/foo.s | .global foo
foo:
jmp baz
|
ashutosh-py/Rust | 79 | tests/ui/asm/named-asm-labels.s | lab1: nop
// do more things
lab2: nop // does bar
// a: b
lab3: nop; lab4: nop
|
ashutosh-py/Rust | 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
|
ashutosh-py/Rust | 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
|
AspeedTech-BMC/caliptra-sw | 8,866 | rom/dev/src/start.S | /*++
Licensed under the Apache-2.0 license.
File Name:
start.S
Abstract:
File contains startup code for Caliptra.
Environment:
ROM
--*/
.section .init, "ax"
.global _start
_start:
.cfi_startproc
.cfi_undefined ra
// Clear minstret
csrw minstret, zero
csrw minstreth, zero
... |
AspeedTech-BMC/caliptra-sw | 6,393 | rom/dev/tools/test-fmc/src/start.S | /*++
Licensed under the Apache-2.0 license.
File Name:
start.S
Abstract:
File contains startup code for Caliptra.
Environment:
FMC
--*/
.section .init, "ax"
.global _start
_start:
.cfi_startproc
.cfi_undefined ra
// Clear minstret
csrw minstret, zero
csrw minstreth, zero
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.