repo_id
string
size
int64
file_path
string
content
string
xiao-tai/ics2021
1,025
abstract-machine/am/src/riscv/mycpu/trap.S
#define concat_temp(x, y) x ## y #define concat(x, y) concat_temp(x, y) #define MAP(c, f) c(f) #define REGS(f) \ f( 1) f( 3) f( 4) f( 5) f( 6) f( 7) f( 8) f( 9) \ f(10) f(11) f(12) f(13) f(14) f(15) f(16) f(17) f(18) f(19) \ f(20) f(21) f(22) f(23) f(24) f(25) f(26) f(27) f(28) f(29) \ f(30) f(31) #defin...
xiao-tai/ics2021
2,775
abstract-machine/am/src/riscv/mycpu/libgcc/div.S
#define FUNC_TYPE(X) .type X,@function #define FUNC_SIZE(X) .size X,.-X #define FUNC_BEGIN(X) \ .globl X; \ FUNC_TYPE (X); \ X: #define FUNC_END(X) \ FUNC_SIZE(X) #define FUNC_ALIAS(X,Y) \ .globl X; \ X = Y #define __riscv_xlen 64 .text .align 2 #if __riscv_xlen == 32 /* Our RV64 64-bit routines a...
xiao-tai/ics2021
1,717
abstract-machine/am/src/x86/qemu/trap32.S
#include "x86-qemu.h" .globl __am_kcontext_start __am_kcontext_start: // eax = arg, ebx = entry pushl %eax pushl $__am_panic_on_return jmpl *%ebx trap: cli subl $20, %esp pushl %ebp pushl %edi pushl %esi pushl $0 pushl %edx pushl %ecx pushl %ebx pushl %eax movw %ds, %ax pushl %eax ...
xiao-tai/ics2021
1,562
abstract-machine/am/src/x86/qemu/start64.S
#include <x86/x86.h> #include "x86-qemu.h" .code32 .globl _start _start: movl $(PDPT_ADDR | PTE_P | PTE_W), %eax cmpl (PML4_ADDR), %eax je .long_mode_init movl $(PDPT_ADDR | PTE_P | PTE_W), %eax movl %eax, (PML4_ADDR) movl $0, %ecx movl $512, %esi // 512 pages ...
xiao-tai/ics2021
1,094
abstract-machine/am/src/x86/qemu/boot/start.S
#define CR0_PE 0x00000001 #define GDT_ENTRY(n) \ ((n) << 3) #define SEG_NULLASM \ .word 0, 0; \ .byte 0, 0, 0, 0 #define SEG_ASM(type, base, lim) \ .word (((lim) >> 12) & 0xffff), ((base) & 0xffff); \ .byte (((base) >> 16) & 0xff), (0x90 | (type)), \ (0xC...
xiao-tai/ics2021
1,402
abstract-machine/am/src/mips/nemu/trap.S
#define MAP(c, f) c(f) #define REGS(f) \ f( 1) f( 2) f( 3) f( 4) f( 5) f( 6) f( 7) f( 8) f( 9) \ f(10) f(11) f(12) f(13) f(14) f(15) f(16) f(17) f(18) f(19) \ f(20) f(21) f(22) f(23) f(24) f(25) f(28) \ f(30) f(31) #define PUSH(n) sw $n, (n * 4)($sp); #define POP(n) lw $n, (n * 4)($sp); #de...
xiaowuzxc/SparrowRV
1,207
bsp/lib/start.S
.section .init; /*声明此处段名为.init*/ .globl _start; /*声明_start是全局的*/ .type _start,@function /*声明_start是函数*/ _start: .option push /*保存编译设置*/ .option norelax /*禁用相对寻址*/ nop /*空操作*/ la gp, __global_pointer$ /*设置gp全局指针,__global_pointer$来源于链接脚本,与data段关联,指向全局变量*/ .option pop la sp, _sp /*设置sp堆栈指针,_sp来源于链接脚本,指向普通的局部变量*/ ...
xiaowuzxc/SparrowRV
1,250
bsp/lib/trap/trap_entry.S
.section .text.entry .align 2 .global trap_entry trap_entry: addi sp, sp, -16*4 sw x1 , 0*4(sp) sw x5 , 1*4(sp) sw x6 , 2*4(sp) sw x7 , 3*4(sp) sw x10, 4*4(sp) sw x11, 5*4(sp) sw x12, 6*4(sp) sw x13, 7*4(sp) sw x14, 8*4(sp) sw x15, 9*4(sp) sw x16, 10*4...
xiaowuzxc/SparrowRV
2,651
tb/tools/isa/rv32ui/xor.S
# See LICENSE for license details. #***************************************************************************** # xor.S #----------------------------------------------------------------------------- # # Test xor instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #----...
xiaowuzxc/SparrowRV
3,122
tb/tools/isa/rv32ui/sub.S
# See LICENSE for license details. #***************************************************************************** # sub.S #----------------------------------------------------------------------------- # # Test sub instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #----...
xiaowuzxc/SparrowRV
2,308
tb/tools/isa/rv32ui/lw.S
# See LICENSE for license details. #***************************************************************************** # lw.S #----------------------------------------------------------------------------- # # Test lw instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #------...
xiaowuzxc/SparrowRV
2,748
tb/tools/isa/rv32ui/sltu.S
# See LICENSE for license details. #***************************************************************************** # sltu.S #----------------------------------------------------------------------------- # # Test sltu instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #--...
xiaowuzxc/SparrowRV
2,538
tb/tools/isa/rv32ui/bgeu.S
# See LICENSE for license details. #***************************************************************************** # bgeu.S #----------------------------------------------------------------------------- # # Test bgeu instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #--...
xiaowuzxc/SparrowRV
2,175
tb/tools/isa/rv32ui/slti.S
# See LICENSE for license details. #***************************************************************************** # slti.S #----------------------------------------------------------------------------- # # Test slti instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #--...
xiaowuzxc/SparrowRV
4,209
tb/tools/isa/rv32ui/sll.S
# See LICENSE for license details. #***************************************************************************** # sll.S #----------------------------------------------------------------------------- # # Test sll instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #----...
xiaowuzxc/SparrowRV
2,345
tb/tools/isa/rv32ui/addi.S
# See LICENSE for license details. #***************************************************************************** # addi.S #----------------------------------------------------------------------------- # # Test addi instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #--...
xiaowuzxc/SparrowRV
2,345
tb/tools/isa/rv32ui/ld.S
# See LICENSE for license details. #***************************************************************************** # ld.S #----------------------------------------------------------------------------- # # Test ld instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #------...
xiaowuzxc/SparrowRV
1,680
tb/tools/isa/rv32ui/andi.S
# See LICENSE for license details. #***************************************************************************** # andi.S #----------------------------------------------------------------------------- # # Test andi instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #--...
xiaowuzxc/SparrowRV
2,310
tb/tools/isa/rv32ui/lhu.S
# See LICENSE for license details. #***************************************************************************** # lhu.S #----------------------------------------------------------------------------- # # Test lhu instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #----...
xiaowuzxc/SparrowRV
2,633
tb/tools/isa/rv32ui/and.S
# See LICENSE for license details. #***************************************************************************** # and.S #----------------------------------------------------------------------------- # # Test and instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #----...
xiaowuzxc/SparrowRV
2,366
tb/tools/isa/rv32ui/bltu.S
# See LICENSE for license details. #***************************************************************************** # bltu.S #----------------------------------------------------------------------------- # # Test bltu instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #--...
xiaowuzxc/SparrowRV
2,642
tb/tools/isa/rv32ui/sh.S
# See LICENSE for license details. #***************************************************************************** # sh.S #----------------------------------------------------------------------------- # # Test sh instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #------...
xiaowuzxc/SparrowRV
3,433
tb/tools/isa/rv32ui/srl.S
# See LICENSE for license details. #***************************************************************************** # srl.S #----------------------------------------------------------------------------- # # Test srl instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #----...
xiaowuzxc/SparrowRV
2,610
tb/tools/isa/rv32ui/sb.S
# See LICENSE for license details. #***************************************************************************** # sb.S #----------------------------------------------------------------------------- # # Test sb instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #------...
xiaowuzxc/SparrowRV
2,028
tb/tools/isa/rv32ui/beq.S
# See LICENSE for license details. #***************************************************************************** # beq.S #----------------------------------------------------------------------------- # # Test beq instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #----...
xiaowuzxc/SparrowRV
2,750
tb/tools/isa/rv32ui/sd.S
# See LICENSE for license details. #***************************************************************************** # sd.S #----------------------------------------------------------------------------- # # Test sd instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #------...
xiaowuzxc/SparrowRV
1,829
tb/tools/isa/rv32ui/ori.S
# See LICENSE for license details. #***************************************************************************** # ori.S #----------------------------------------------------------------------------- # # Test ori instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #----...
xiaowuzxc/SparrowRV
2,302
tb/tools/isa/rv32ui/lbu.S
# See LICENSE for license details. #***************************************************************************** # lbu.S #----------------------------------------------------------------------------- # # Test lbu instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #----...
xiaowuzxc/SparrowRV
2,326
tb/tools/isa/rv32ui/lwu.S
# See LICENSE for license details. #***************************************************************************** # lwu.S #----------------------------------------------------------------------------- # # Test lwu instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #----...
xiaowuzxc/SparrowRV
2,680
tb/tools/isa/rv32ui/sw.S
# See LICENSE for license details. #***************************************************************************** # sw.S #----------------------------------------------------------------------------- # # Test sw instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #------...
xiaowuzxc/SparrowRV
4,003
tb/tools/isa/rv32ui/sra.S
# See LICENSE for license details. #***************************************************************************** # sra.S #----------------------------------------------------------------------------- # # Test sra instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #----...
xiaowuzxc/SparrowRV
2,623
tb/tools/isa/rv32ui/or.S
# See LICENSE for license details. #***************************************************************************** # or.S #----------------------------------------------------------------------------- # # Test or instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #------...
xiaowuzxc/SparrowRV
2,597
tb/tools/isa/rv32ui/srai.S
# See LICENSE for license details. #***************************************************************************** # srai.S #----------------------------------------------------------------------------- # # Test srai instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #--...
xiaowuzxc/SparrowRV
2,013
tb/tools/isa/rv32ui/bne.S
# See LICENSE for license details. #***************************************************************************** # bne.S #----------------------------------------------------------------------------- # # Test bne instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #----...
xiaowuzxc/SparrowRV
2,201
tb/tools/isa/rv32ui/sltiu.S
# See LICENSE for license details. #***************************************************************************** # sltiu.S #----------------------------------------------------------------------------- # # Test sltiu instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #...
xiaowuzxc/SparrowRV
1,087
tb/tools/isa/rv32ui/jal.S
# See LICENSE for license details. #***************************************************************************** # jal.S #----------------------------------------------------------------------------- # # Test jal instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #----...
xiaowuzxc/SparrowRV
1,425
tb/tools/isa/rv32ui/jalr.S
# See LICENSE for license details. #***************************************************************************** # jalr.S #----------------------------------------------------------------------------- # # Test jalr instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #--...
xiaowuzxc/SparrowRV
2,160
tb/tools/isa/rv32ui/srli.S
# See LICENSE for license details. #***************************************************************************** # srli.S #----------------------------------------------------------------------------- # # Test srli instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #--...
xiaowuzxc/SparrowRV
2,821
tb/tools/isa/rv32ui/slli.S
# See LICENSE for license details. #***************************************************************************** # slli.S #----------------------------------------------------------------------------- # # Test slli instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #--...
xiaowuzxc/SparrowRV
2,290
tb/tools/isa/rv32ui/lh.S
# See LICENSE for license details. #***************************************************************************** # lh.S #----------------------------------------------------------------------------- # # Test lh instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #------...
xiaowuzxc/SparrowRV
3,145
tb/tools/isa/rv32ui/add.S
# See LICENSE for license details. #***************************************************************************** # add.S #----------------------------------------------------------------------------- # # Test add instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #----...
xiaowuzxc/SparrowRV
2,282
tb/tools/isa/rv32ui/lb.S
# See LICENSE for license details. #***************************************************************************** # lb.S #----------------------------------------------------------------------------- # # Test lb instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #------...
xiaowuzxc/SparrowRV
1,861
tb/tools/isa/rv32ui/xori.S
# See LICENSE for license details. #***************************************************************************** # xori.S #----------------------------------------------------------------------------- # # Test xori instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #--...
xiaowuzxc/SparrowRV
2,949
tb/tools/isa/rv32ui/slt.S
# See LICENSE for license details. #***************************************************************************** # slt.S #----------------------------------------------------------------------------- # # Test slt instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #----...
xiaowuzxc/SparrowRV
2,149
tb/tools/isa/rv32ui/bge.S
# See LICENSE for license details. #***************************************************************************** # bge.S #----------------------------------------------------------------------------- # # Test bge instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #----...
xiaowuzxc/SparrowRV
2,028
tb/tools/isa/rv32ui/blt.S
# See LICENSE for license details. #***************************************************************************** # blt.S #----------------------------------------------------------------------------- # # Test blt instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV64U RVTEST_CODE_BEGIN #----...
xiaowuzxc/SparrowRV
2,960
tb/tools/isa/rv32um/mulhu.S
# See LICENSE for license details. #***************************************************************************** # mulhu.S #----------------------------------------------------------------------------- # # Test mulhu instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV32U RVTEST_CODE_BEGIN #...
xiaowuzxc/SparrowRV
2,923
tb/tools/isa/rv32um/mulh.S
# See LICENSE for license details. #***************************************************************************** # mulh.S #----------------------------------------------------------------------------- # # Test mulh instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV32U RVTEST_CODE_BEGIN #--...
xiaowuzxc/SparrowRV
2,997
tb/tools/isa/rv32um/mulhsu.S
# See LICENSE for license details. #***************************************************************************** # mulhsu.S #----------------------------------------------------------------------------- # # Test mulhsu instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV32U RVTEST_CODE_BEGIN ...
xiaowuzxc/SparrowRV
2,818
tb/tools/isa/rv32um/mul.S
# See LICENSE for license details. #***************************************************************************** # mul.S #----------------------------------------------------------------------------- # # Test mul instruction. # #include "riscv_test.h" #include "test_macros.h" RVTEST_RV32U RVTEST_CODE_BEGIN #----...
xiaowuzxc/SparrowRV
1,207
tb/tools/bootrom/lib/start.S
.section .init; /*声明此处段名为.init*/ .globl _start; /*声明_start是全局的*/ .type _start,@function /*声明_start是函数*/ _start: .option push /*保存编译设置*/ .option norelax /*禁用相对寻址*/ nop /*空操作*/ la gp, __global_pointer$ /*设置gp全局指针,__global_pointer$来源于链接脚本,与data段关联,指向全局变量*/ .option pop la sp, _sp /*设置sp堆栈指针,_sp来源于链接脚本,指向普通的局部变量*/ ...
xiaowuzxc/SparrowRV
1,250
tb/tools/bootrom/lib/trap/trap_entry.S
.section .text.entry .align 2 .global trap_entry trap_entry: addi sp, sp, -16*4 sw x1 , 0*4(sp) sw x5 , 1*4(sp) sw x6 , 2*4(sp) sw x7 , 3*4(sp) sw x10, 4*4(sp) sw x11, 5*4(sp) sw x12, 6*4(sp) sw x13, 7*4(sp) sw x14, 8*4(sp) sw x15, 9*4(sp) sw x16, 10*4...
xiaowuzxc/SparrowRV
1,207
doc/小教程/start.S
.section .init; /*声明此处段名为.init*/ .globl _start; /*声明_start是全局的*/ .type _start,@function /*声明_start是函数*/ _start: .option push /*保存编译设置*/ .option norelax /*禁用相对寻址*/ nop /*空操作*/ la gp, __global_pointer$ /*设置gp全局指针,__global_pointer$来源于链接脚本,与data段关联,指向全局变量*/ .option pop la sp, _sp /*设置sp堆栈指针,_sp来源于链接脚本,指向普通的局部变量*/ ...
xiazhuo/nscc2022_personal
1,820
asm/user-sample.s
.org 0x0 .set noreorder .set noat .text .global _start _start: lui $sp,0x807E lui $a3,0x8060 move $v0,$zero lui $a1,0x1 move $v1,$a3 .L1: mul $a0,$v0,$v0 addiu $v1,$v1,4 addiu $v0,$v0,1 bne $v0,$a1,.L1 sw $a0,-4($v1) lui $t2,0x8040 lui $t1,0x8050 move $t0,$ze...
xiazhuo/nscc2022_personal
5,748
thinpad_top.srcs/sim_1/testbin/lab2/lab2.S
#include <inst_test.h> #include <regdef.h> .org 0x0 .set noreorder .set noat .text .global _start _start: b fib nop info: .asciz "Fib Finish." .p2align 2 feed: .asciz "All PASS!" .p2align 2 fib: ori t0, zero, 0x1 # t0 = 1 ori t1, zero, 0x1 # t...
xiazhuo/nscc2022_personal
2,995
thinpad_top.srcs/sim_1/testbin/self_test/test.S
.org 0x0 .set noreorder .set noat .text .global _start _start: lui $sp,0x807E addiu $sp,$sp,-24 move $s8,$sp move $a0,$zero #传参0 jal QUICKSORT li $a1,8 #传参8 move $sp,$s8 addiu $sp,$sp,24 READ: lui $t0,0x8040 loop: lw $t1,0($t0) bne $t1,$zero,loop ...
xiazhuo/nscc2022_personal
1,899
add2windows_env/testbin/test_.S
.org 0x0 .set noreorder .set noat .text .global _start _start: lui $sp,0x807E addiu $sp,$sp,-32 sw $ra,28($sp) sw $s8,24($sp) move $s8,$sp sw $zero,16($s8) b .L4 nop .L3: lw $v1,16($s8) lw $v0,16($s8) mul $v0,$v1,$v0 move $a0,$v0 lui $v0,0x8062 #b [i] ...
xiazhuo/nscc2022_personal
1,820
add2windows_env/testbin/test.S
.org 0x0 .set noreorder .set noat .text .global _start _start: lui $sp,0x807E lui $a3,0x8060 move $v0,$zero lui $a1,0x1 move $v1,$a3 .L1: mul $a0,$v0,$v0 addiu $v1,$v1,4 addiu $v0,$v0,1 bne $v0,$a1,.L1 sw $a0,-4($v1) lui $t2,0x8040 lui $t1,0x8050 move $t0,$ze...
xiazhuo/nscc2022_personal
2,383
add2windows_env/C_code/test.s
.file 1 "test.c" .section .mdebug.abi32 .previous .nan legacy .module fp=xx .module nooddspreg .globl a .data .align 2 .type a, @object .size a, 20 a: .word 9 .word 8 .word 10 .word 0 .word -1 .comm b,262180,4 .comm c,20,4 .text .align 2 .globl bsearchr .set nomips16 .set nomicromips .ent bsea...
xiazhuo/nscc2022_personal
2,995
add2windows_env/testbin/快速排序/test.S
.org 0x0 .set noreorder .set noat .text .global _start _start: lui $sp,0x807E addiu $sp,$sp,-24 move $s8,$sp move $a0,$zero #传参0 jal QUICKSORT li $a1,8 #传参8 move $sp,$s8 addiu $sp,$sp,24 READ: lui $t0,0x8040 loop: lw $t1,0($t0) bne $t1,$zero,loop ...
linkease/lcdsimple-be3600
21,041
gl-be3600-lcd/src-glinet-be3600/lvgl/src/draw/sw/blend/helium/lv_blend_helium.S
/** * @file lv_blend_helium.S * */ #ifndef __ASSEMBLY__ #define __ASSEMBLY__ #endif #include "lv_blend_helium.h" #if LV_USE_DRAW_SW_ASM == LV_DRAW_SW_ASM_HELIUM && defined(__ARM_FEATURE_MVE) && __ARM_FEATURE_MVE && LV_USE_NATIVE_HELIUM_ASM .data reciprocal: .byte 0xFF, 0xE2, 0xCC, 0xB9, 0xAA, 0x9C, 0x91, 0x88 ....
linkease/lcdsimple-be3600
21,316
gl-be3600-lcd/src-glinet-be3600/lvgl/src/draw/sw/blend/neon/lv_blend_neon.S
/** * @file lv_blend_neon.S * */ #ifndef __ASSEMBLY__ #define __ASSEMBLY__ #endif #include "lv_blend_neon.h" #if LV_USE_DRAW_SW_ASM == LV_DRAW_SW_ASM_NEON .text .fpu neon .arch armv7a .syntax unified .altmacro .p2align 2 @ d0 ~ d3 : src B,G,R,A @ d4 ~ d7 : dst B,G,R,A @ q8 : src RGB565 raw @ q9 : dst RGB565 raw...
linux-sunxi/cedarx-libs
1,333
libcedarv/linux-armhf2/include/include_platform/CHIP_A23/mach/entry-macro.S
/* * arch/arm/mach-versatile/include/mach/entry-macro.S * * Low-level IRQ helper macros for Versatile platforms * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #include <...
linux-sunxi/cedarx-libs
1,333
libcedarv/linux-armhf2/include/include_platform/CHIP_A13/mach/entry-macro.S
/* * arch/arm/mach-versatile/include/mach/entry-macro.S * * Low-level IRQ helper macros for Versatile platforms * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #include <...
linux-sunxi/cedarx-libs
1,333
libcedarv/linux-armhf2/include/include_platform/CHIP_A20/mach/entry-macro.S
/* * arch/arm/mach-versatile/include/mach/entry-macro.S * * Low-level IRQ helper macros for Versatile platforms * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #include <...
linux-sunxi/cedarx-libs
1,333
libcedarv/linux-armhf2/include/include_platform/CHIP_A10/mach/entry-macro.S
/* * arch/arm/mach-versatile/include/mach/entry-macro.S * * Low-level IRQ helper macros for Versatile platforms * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #include <...
linux-sunxi/cedarx-libs
1,333
libcedarv/linux-armhf2/include/include_platform/CHIP_A31/mach/entry-macro.S
/* * arch/arm/mach-versatile/include/mach/entry-macro.S * * Low-level IRQ helper macros for Versatile platforms * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #include <...
liruqi/Mume-iOS
18,086
Library/ShadowPath/ShadowPath/shadowsocks-libev/libsodium/src/libsodium/crypto_stream/salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.S
#ifdef HAVE_AMD64_ASM .text .p2align 5 .globl crypto_stream_salsa20 .globl _crypto_stream_salsa20 #ifdef __ELF__ .type crypto_stream_salsa20, @function .type _crypto_stream_salsa20, @function #endif crypto_stream_salsa20: _crypto_stream_salsa20: mov %rsp,%r11 and $31,%r11 add $512,%r11 sub %r11,%rsp movq %r11,416(%...
liruqi/Mume-iOS
2,671
Library/ShadowPath/ShadowPath/shadowsocks-libev/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S
#ifdef IN_SANDY2X /* This file is adapted from amd64-51/fe25519_square.s: Adding loop to perform n squares. */ #include "fe51_namespace.h" #include "consts_namespace.h" .p2align 5 .globl fe51_nsquare .globl _fe51_nsquare #ifdef __ELF__ .type fe51_nsquare, @function .type _fe51_nsquare, @function #endif fe51_ns...
liruqi/Mume-iOS
3,040
Library/ShadowPath/ShadowPath/shadowsocks-libev/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_mul.S
#ifdef IN_SANDY2X /* This file is basically amd64-51/fe25519_mul.s. */ #include "fe51_namespace.h" #include "consts_namespace.h" .text .p2align 5 .globl _fe51_mul .globl fe51_mul _fe51_mul: fe51_mul: mov %rsp,%r11 and $31,%r11 add $96,%r11 sub %r11,%rsp movq %r11,0(%rsp) movq %r12,8(%rsp) movq %r13,16(%rsp) movq %r...
liruqi/Mume-iOS
33,827
Library/ShadowPath/ShadowPath/shadowsocks-libev/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.S
#ifdef IN_SANDY2X #include "ladder_namespace.h" #include "consts_namespace.h" .p2align 5 .globl ladder .globl _ladder #ifdef __ELF__ .type ladder, @function .type _ladder, @function #endif ladder: _ladder: mov %rsp,%r11 and $31,%r11 add $1856,%r11 sub %r11,%rsp movq %r11,1824(%rsp) movq %r12,1832(%rsp) movq %r13,18...
liruqi/Mume-iOS
30,292
Library/ShadowPath/ShadowPath/shadowsocks-libev/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.S
#ifdef IN_SANDY2X #include "ladder_base_namespace.h" #include "consts_namespace.h" .p2align 5 .globl ladder_base .globl _ladder_base #ifdef __ELF__ .type ladder_base, @function .type _ladder_base, @function #endif ladder_base: _ladder_base: mov %rsp,%r11 and $31,%r11 add $1568,%r11 sub %r11,%rsp movq %r11,1536(%rsp...
liruqi/Mume-iOS
3,455
Library/ShadowPath/ShadowPath/shadowsocks-libev/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S
#ifdef IN_SANDY2X /* This file is the result of merging amd64-51/fe25519_pack.c and amd64-51/fe25519_freeze.s. */ #include "fe51_namespace.h" #include "consts_namespace.h" .p2align 5 .globl fe51_pack .globl _fe51_pack #ifdef __ELF__ .type fe51_pack, @function .type _fe51_pack, @function #endif fe51_pack: _fe5...
litz-lab/scarab
2,466
src/test/scalar_mov_port_binding_test.s
.section .text .globl _start _start: mov $0, %rax LOOP: add $1, %rax mov $1, %rbx mov $1, %rbx mov $1, %rbx mov $1, %rbx mov $1, %rbx mov $1, %rbx mov $1, %rbx mov $1, %rbx mov $1, %rbx mov $1, %rbx mov $1, %rbx mov $1, %rbx mov $1, %...
litz-lab/scarab
1,053
src/test/gather_scatter_wrongpath.s
.section .text .globl _start _start: kmovw full_mask, %k1 vmovdqa64 neg_indices,%zmm0 vpgatherdd output_ints(,%zmm0,4),%zmm1{%k1} kmovw full_mask, %k1 lea output_ints, %rcx vmovdqa64 pos_indices,%zmm0 vpscatterdd %zmm1,(%rcx,%zmm0,4){%k1} vmovdqa64 input_ints_2,%zmm1 ...
litz-lab/scarab
2,519
src/test/vector_mov_port_binding_test.s
.section .text .globl _start _start: mov $0, %rax LOOP: add $1, %rax movmskps %xmm0, %rbx movmskps %xmm0, %rbx movmskps %xmm0, %rbx movmskps %xmm0, %rbx movmskps %xmm0, %rbx movmskps %xmm0, %rbx movmskps %xmm0, %rbx movmskps %xmm0, %rbx movmskps %xmm0, %rbx ...
litz-lab/scarab
3,573
src/test/different_scatter_types.s
.section .text .globl _start _start: vmovdqa64 input_ints,%zmm1 lea output_ints, %rcx #vmovdqa64 indices, %zmm0 #kmovw mask_0, %k1 #vscatterdps %zmm1,(%rcx,%zmm0,4){%k1} #vmovdqa64 indices, %zmm0 #kmovw mask_1, %k1 #vscatterdps %zmm1,output_ints(,%zmm0,4){%k1} ...
litz-lab/scarab
1,329
src/test/gather_not_kmask.s
.section .text .globl _start _start: // mov $-32, %ebx // vmovdqa int_indices,%ymm0 // vmovdqa mask1_2,%ymm2 // vpgatherdd %ymm2,output_ints(%ebx,%ymm0,4),%ymm3 // vmovdqa %ymm3, output_ints // vmovdqa int_indices,%ymm0 // vmovdqa mask3_4,%ymm7 // vpgatherdq %ymm7,input...
litz-lab/scarab
1,226
src/test/isa_test.s
.section .text .globl _start _start: mov $0, %rax mov $0, %rbx add %rax, %rbx mov var(,1), %rcx add $1, var(,1) add %eax, var(,1) add var(,1), %rdx lea var(,1), %rbx mov (%rbx, %rax), %rbp mov (%rbx, %rax, 1), %rsp mov var(, %rax, 4), %rdi mov %eb...
LIV2/RIDE
7,607
Software/bootrom/bootrom.s
include exec/types.i include exec/execbase.i include exec/alerts.i include exec/nodes.i include exec/resident.i include exec/memory.i include exec/lists.i include lvo/exec_lib.i include lvo/expansion_lib.i include libraries/configvars.i include hardware/cia.i include ../include/board.i BonusEna...
liva/minimal-linux
1,346
usr/initramfs_data.S
/* SPDX-License-Identifier: GPL-2.0 */ /* initramfs_data includes the compressed binary that is the filesystem used for early user space. Note: Older versions of "as" (prior to binutils 2.11.90.0.23 released on 2001-07-14) dit not support .incbin. If you are forced to use older binutils than that then the f...
Live-CTF/LiveCTF-DEFCON33
4,529
qualifiers/challenges/ropably/attempt2/checker.S
.file "checker.c" .text .section .text.checker,"ax",@progbits .globl checker .type checker, @function checker: endbr64 pushq %rbp movq %rsp, %rbp movq %rdi, -24(%rbp) movl $1, -4(%rbp) movq -24(%rbp), %rax addq $5, %rax movzbl (%rax), %eax movsbl %al, %edx movq -24(%rbp), %rax addq $13, %rax movzbl (%r...
Live-CTF/LiveCTF-DEFCON33
9,167
qualifiers/challenges/ropably/attempt2/checker-obf.S
.file "checker.c" .text .section .text.checker,"ax",@progbits .globl checker .type checker, @function checker: .size checker, .-checker leaq chain(%rip), %rbx xchg %rsp, %rbx ret rop_chunk_4: xchg %rsp, %rbx movzbl (%rax), %eax movsbl %al, %eax xchg %rsp, %rbx ret rop_chunk_54: ...
Live-CTF/LiveCTF-DEFCON33
1,263
qualifiers/challenges/ropably/attempt1/part2.S
.section .text.checker,"ax",@progbits .globl checker .type checker, @function checker: leaq chain(%rip), %rbx xchg %rsp, %rbx ret rop_chunk0: xchg %rsp, %rbx endbr64 pushq %rbp movq %rsp, %rbp subq $32, %rsp movq %fs:40, %rax xchg %rsp, %rbx ret rop_chunk1: xchg %rsp, %rbx movq %r...
Live-CTF/LiveCTF-DEFCON33
1,185
qualifiers/challenges/ropably/attempt1/test-function.S
.file "test-function.c" .text .globl x .data .align 4 .type x, @object .size x, 4 x: .long 1 .section .rodata .LC0: .string "%d" .LC1: .string "%d\n" .section .text.checker,"ax",@progbits .globl checker .type checker, @function checker: endbr64 pushq %rbp movq %rsp, %rbp subq $32, %rsp movq %fs:40, %...
Live-CTF/LiveCTF-DEFCON33
6,678
finals/challenges/alt-uni/challenge/src/alt_uni.s
@ upward_stack_ctf.s @ ARM Assembly CTF with ONLY upward-growing stack @ No push/pop - only manual stack operations in reverse @ Compile: as -o upward_stack_ctf.o upward_stack_ctf.s @ Link: ld -o upward_stack_ctf upward_stack_ctf.o .global _start .section .data @ Messages banner: .ascii "=== Alternate Uni...
Live-CTF/LiveCTF-DEFCON33
8,174
finals/challenges/alt-uni/challenge/src/alt_uni_single_char.s
@ upward_stack_ctf.s @ ARM Assembly CTF with ONLY upward-growing stack @ No push/pop - only manual stack operations in reverse @ Compile: as -o upward_stack_ctf.o upward_stack_ctf.s @ Link: ld -o upward_stack_ctf upward_stack_ctf.o .global _start .section .data @ Messages banner: .ascii "=== Alt Uni ===\n...
liva/minimal-linux
1,743
arch/x86/boot/pmjump.S
/* ----------------------------------------------------------------------- * * * Copyright (C) 1991, 1992 Linus Torvalds * Copyright 2007 rPath, Inc. - All Rights Reserved * * This file is part of the Linux kernel, and is made available under * the terms of the GNU General Public License version 2. * * ...
liva/minimal-linux
1,052
arch/x86/boot/copy.S
/* ----------------------------------------------------------------------- * * * Copyright (C) 1991, 1992 Linus Torvalds * Copyright 2007 rPath, Inc. - All Rights Reserved * * This file is part of the Linux kernel, and is made available under * the terms of the GNU General Public License version 2. * * ...
liva/minimal-linux
1,588
arch/x86/boot/bioscall.S
/* ----------------------------------------------------------------------- * * Copyright 2009-2014 Intel Corporation; author H. Peter Anvin * * This file is part of the Linux kernel, and is made available under * the terms of the GNU General Public License version 2 or (at your * option) any later version...
liva/minimal-linux
17,018
arch/x86/boot/header.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * header.S * * Copyright (C) 1991, 1992 Linus Torvalds * * Based on bootsect.S and setup.S * modified by more people than can be counted * * Rewritten as a common file by H. Peter Anvin (Apr 2007) * * BIG FAT NOTE: We're in real mode using 64k segments. Therefore seg...
liva/minimal-linux
3,586
arch/x86/lib/memmove_64.S
/* SPDX-License-Identifier: GPL-2.0 */ /* * Normally compiler builtins are used, but sometimes the compiler calls out * of line code. Based on asm-i386/string.h. * * This assembly file is re-written from memmove_64.c file. * - Copyright 2011 Fenghua Yu <fenghua.yu@intel.com> */ #include <linux/linkage.h> #include...
liva/minimal-linux
3,746
arch/x86/lib/csum-copy_64.S
/* * Copyright 2002, 2003 Andi Kleen, SuSE Labs. * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive * for more details. No warranty for anything given at all. */ #include <linux/linkage.h> #include <asm/errno.h> #in...
liva/minimal-linux
1,670
arch/x86/lib/msr-reg.S
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> #include <linux/errno.h> #include <asm/asm.h> #include <asm/msr.h> #ifdef CONFIG_X86_64 /* * int {rdmsr,wrmsr}_safe_regs(u32 gprs[8]); * * reg layout: u32 gprs[eax, ecx, edx, ebx, esp, ebp, esi, edi] * */ .macro op_safe_regs op ENTRY(\op\()_safe_re...
liva/minimal-linux
7,850
arch/x86/lib/copy_user_64.S
/* * Copyright 2008 Vitaly Mayatskikh <vmayatsk@redhat.com> * Copyright 2002 Andi Kleen, SuSE Labs. * Subject to the GNU Public License v2. * * Functions to copy from and to user space. */ #include <linux/linkage.h> #include <asm/current.h> #include <asm/asm-offsets.h> #include <asm/thread_info.h> #include <asm/...
liva/minimal-linux
1,253
arch/x86/lib/retpoline.S
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/stringify.h> #include <linux/linkage.h> #include <asm/dwarf2.h> #include <asm/cpufeatures.h> #include <asm/alternative-asm.h> #include <asm/export.h> #include <asm/nospec-branch.h> .macro THUNK reg .section .text.__x86.indirect_thunk ENTRY(__x86_indirect_thunk_...
liva/minimal-linux
2,772
arch/x86/lib/atomic64_cx8_32.S
/* * atomic64_t for 586+ * * Copyright © 2010 Luca Barbieri * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. ...
liva/minimal-linux
3,748
arch/x86/lib/rwsem.S
/* * x86 semaphore implementation. * * (C) Copyright 1999 Linus Torvalds * * Portions Copyright 1999 Red Hat, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 ...
liva/minimal-linux
2,772
arch/x86/lib/memset_64.S
/* SPDX-License-Identifier: GPL-2.0 */ /* Copyright 2002 Andi Kleen, SuSE Labs */ #include <linux/linkage.h> #include <asm/cpufeatures.h> #include <asm/alternative-asm.h> #include <asm/export.h> .weak memset /* * ISO C memset - set a memory block to a byte value. This function uses fast * string to get better perf...
liva/minimal-linux
2,479
arch/x86/lib/hweight.S
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> #include <asm/export.h> #include <asm/asm.h> /* * unsigned int __sw_hweight32(unsigned int w) * %rdi: w */ ENTRY(__sw_hweight32) #ifdef CONFIG_X86_64 movl %edi, %eax # w #endif __ASM_SIZE(push,) %__ASM_REG(dx) movl %eax, %edx # w -> t shr...