repo_id string | size int64 | file_path string | content string |
|---|---|---|---|
andreafioraldi/qasan | 3,308 | qemu/tests/tcg/cris/check_lsr.s | # mach: crisv0 crisv3 crisv8 crisv10 crisv32
# output: ffffffff\n1\n1\n1ffff\n5a67f\n1\n0\n0\n3699fc67\nffffffff\n1\n1\n1ffff\n5a67f\nda670000\nda670000\nda670000\nda673c67\nffffffff\nffff7fff\n1\nffff0000\nffff0001\n5a67000f\nda67f100\nda67f100\nda67f100\nda67f127\nffffffff\nffffff7f\n1\nffffff00\nffffff00\nffffff01\n... |
andreafioraldi/qasan | 1,792 | qemu/tests/tcg/xtensa/test_sr.S | #include "macros.inc"
test_suite sr
.macro sr_op sym, op_sym, op_byte, sr
.if \sym
\op_sym a4, \sr
.else
.byte 0x40, \sr, \op_byte
.endif
.endm
.macro test_sr_op sym, mask, op, op_byte, sr
movi a4, 0
.if (\mask)
set_vector kernel, 0
sr_op \sym, \op, \op_byte, \sr
.else
... |
andreafioraldi/qasan | 1,307 | qemu/tests/tcg/xtensa/test_sext.S | #include "macros.inc"
test_suite sext
test sext
movi a2, 0xffffff5a
movi a3, 0x0000005a
sext a4, a2, 7
assert eq, a3, a4
movi a2, 0x000000a5
movi a3, 0xffffffa5
sext a4, a2, 7
assert eq, a3, a4
movi a2, 0xfffffaa5
movi a3, 0x000000a5
sext a4, ... |
andreafioraldi/qasan | 5,292 | qemu/tests/tcg/xtensa/test_mac16.S | #include "macros.inc"
test_suite mac16
#define ext16(v) (((v) & 0xffff) | (((v) & 0x8000) * 0x1ffffffe))
#define mul16(a, b) ((ext16(a) * ext16(b)))
.macro assert_acc_value v
rsr a4, ACCLO
movi a5, (\v) & 0xffffffff
assert eq, a4, a5
rsr a4, ACCHI
movi a5, (\v) >> 32
sext a5... |
andreafioraldi/qasan | 1,267 | qemu/tests/tcg/xtensa/test_bi.S | #include "macros.inc"
test_suite bi
test beqi
movi a2, 7
beqi a2, 7, 1f
test_fail
1:
movi a2, 1
beqi a2, 7, 1f
j 2f
1:
test_fail
2:
test_end
test bnei
movi a2, 1
bnei a2, 7, 1f
test_fail
1:
movi a2, 7
bnei a2, 7, 1f
j 2f
1:
t... |
andreafioraldi/qasan | 1,634 | qemu/tests/tcg/xtensa/test_mul16.S | #include "macros.inc"
test_suite mul16
test mul16u_pp
movi a2, 0x137f5a5a
mov a3, a2
movi a4, 0xa5a5137f
movi a6, 0x06e180a6
mul16u a5, a2, a4
assert eq, a5, a6
mul16u a2, a2, a4
assert eq, a2, a6
mul16u a3, a4, a3
assert eq, a3, a6
test_end
test mul16u_np
... |
andreafioraldi/qasan | 4,352 | qemu/tests/tcg/xtensa/test_timer.S | #include "macros.inc"
#define CCOUNT_SHIFT 4
#define WAIT_LOOPS 20
.macro make_ccount_delta target, delta
rsr \delta, ccount
rsr \target, ccount
sub \delta, \target, \delta
slli \delta, \delta, CCOUNT_SHIFT
add \target, \target, \delta
.endm
test_suite timer
test ccount
... |
andreafioraldi/qasan | 3,897 | qemu/tests/tcg/xtensa/test_interrupt.S | #include "macros.inc"
#define LSBIT(v) ((v) ^ ((v) & ((v) - 1)))
test_suite interrupt
.macro clear_interrupts
movi a2, 0
wsr a2, intenable
wsr a2, ccompare0
wsr a2, ccompare1
wsr a2, ccompare2
esync
rsr a2, interrupt
wsr a2, intclear
esync
rsr a... |
andreafioraldi/qasan | 1,681 | qemu/tests/tcg/xtensa/test_cache.S | #include "macros.inc"
.purgem test_init
.macro test_init
call0 cache_unlock_invalidate
.endm
test_suite cache
.macro pf_op op
\op a2, 0
\op a3, 0
\op a4, 0
.endm
test prefetch
movi a2, 0xd0000000 /* cacheable */
movi a3, 0xd8000000 /* non-cacheable */
movi a4,... |
andreafioraldi/qasan | 2,192 | qemu/tests/tcg/xtensa/test_phys_mem.S | #include "macros.inc"
test_suite phys_mem
.purgem test_init
.macro test_init
movi a2, 0xc0000003 /* PPN */
movi a3, 0xc0000004 /* VPN */
wdtlb a2, a3
witlb a2, a3
movi a2, 0xc0000000
wsr a2, ptevaddr
.endm
test inst_fetch_get_pte_no_phys
set_vector kernel, 2f
movi ... |
andreafioraldi/qasan | 3,933 | qemu/tests/tcg/xtensa/test_shift.S | #include "macros.inc"
test_suite shift
.macro test_shift prefix, dst, src, v, imm
\prefix\()_set \dst, \src, \v, \imm
\prefix\()_ver \dst, \v, \imm
.endm
.macro test_shift_sd prefix, v, imm
test_shift \prefix, a3, a2, \v, \imm
test_shift \prefix, a2, a2, \v, \imm
.endm
.macro tests_imm_shift prefix,... |
andreafioraldi/qasan | 3,114 | qemu/tests/tcg/xtensa/linker.ld.S | #include "core-isa.h"
#if XTENSA_HAVE_BE
OUTPUT_FORMAT("elf32-xtensa-be")
#else
OUTPUT_FORMAT("elf32-xtensa-le")
#endif
ENTRY(_start)
__DYNAMIC = 0;
MEMORY {
ram : ORIGIN = XCHAL_VECBASE_RESET_VADDR, LENGTH = 0x08000000 /* 128M */
rom : ORIGIN = XCHAL_RESET_VECTOR_VADDR, LENGTH = 0x00001000 /* 4k */
}
SEC... |
andreafioraldi/qasan | 2,834 | qemu/tests/tcg/xtensa/test_quo.S | #include "macros.inc"
test_suite quo
test quou_pp
movi a2, 0x5a5a137f
mov a3, a2
movi a4, 0x137f5a5a
movi a6, 0x4
quou a5, a2, a4
assert eq, a5, a6
quou a2, a2, a4
assert eq, a2, a6
quou a4, a3, a4
assert eq, a4, a6
test_end
test quou_np
movi a2... |
andreafioraldi/qasan | 2,870 | qemu/tests/tcg/xtensa/test_rem.S | #include "macros.inc"
test_suite rem
test remu_pp
movi a2, 0x5a5a137f
mov a3, a2
movi a4, 0x137f5a5a
movi a6, 0x0c5caa17
remu a5, a2, a4
assert eq, a5, a6
remu a2, a2, a4
assert eq, a2, a6
remu a4, a3, a4
assert eq, a4, a6
test_end
test remu_np
mov... |
andreafioraldi/qasan | 1,465 | qemu/tests/tcg/xtensa/test_min.S | #include "macros.inc"
test_suite min
test min
movi a2, 0xffffffff
movi a3, 1
movi a4, 0xffffffff
min a5, a2, a3
assert eq, a5, a4
movi a2, 1
movi a3, 0xffffffff
movi a4, 0xffffffff
min a5, a2, a3
assert eq, a5, a4
movi a2, 0xffffffff
mov... |
andreafioraldi/qasan | 1,620 | qemu/tests/tcg/xtensa/test_sar.S | #include "macros.inc"
test_suite sar
.macro test_sar prefix, imm
\prefix\()_set \imm
\prefix\()_ver \imm
.endm
.macro tests_sar prefix
test_sar \prefix, 0
test_sar \prefix, 1
test_sar \prefix, 2
test_sar \prefix, 3
test_sar \prefix, 0x1f
test_sar \prefix, 0x20
test_sar \prefix, 0x... |
andreafioraldi/qasan | 14,799 | qemu/tests/tcg/xtensa/test_mmu.S | #include "macros.inc"
test_suite mmu
.purgem test_init
.macro clean_tlb_way way, page_size, n_entries
movi a2, \way
movi a3, \page_size
movi a4, \n_entries
loop a4, 1f
idtlb a2
iitlb a2
add a2, a2, a3
1:
.endm
.macro test_init
clean_tlb_way 0, 0x00001000, 4
cl... |
andreafioraldi/qasan | 6,001 | qemu/tests/tcg/xtensa/test_break.S | #include "macros.inc"
#define debug_level 6
#define debug_vector level6
test_suite break
test break
set_vector debug_vector, 0
rsil a2, debug_level
_break 0, 0
set_vector debug_vector, 2f
rsil a2, debug_level - 1
1:
_break 0, 0
test_fail
2:
rsr a2, ps
movi a3, 0x1f... |
andreafioraldi/qasan | 2,458 | qemu/tests/tcg/xtensa/test_pipeline.S | #include "macros.inc"
.purgem test
.macro test name
movi a2, 1f
movi a3, 99f
0:
ipf a2, 0
ipf a2, 4
ipf a2, 8
ipf a2, 12
addi a2, a2, 16
blt a2, a3, 0b
j 1f
.align 4
1:
.endm
test_suite pipeline
test register_no_stall
rsr a3, ccount
... |
andreafioraldi/qasan | 1,465 | qemu/tests/tcg/xtensa/test_max.S | #include "macros.inc"
test_suite max
test max
movi a2, 0xffffffff
movi a3, 1
movi a4, 1
max a5, a2, a3
assert eq, a5, a4
movi a2, 1
movi a3, 0xffffffff
movi a4, 1
max a5, a2, a3
assert eq, a5, a4
movi a2, 0xffffffff
movi a3, 1
mov... |
andreafioraldi/qasan | 2,893 | qemu/tests/tcg/xtensa/test_rst0.S | #include "macros.inc"
test_suite rst0
test and
movi a2, 0x137fa5a5
mov a3, a2
movi a4, 0xa5a5137f
movi a6, 0x01250125
and a5, a2, a4
assert eq, a5, a6
and a2, a2, a4
assert eq, a2, a6
and a3, a4, a3
assert eq, a3, a6
test_end
test or
movi a2,... |
andreafioraldi/qasan | 2,958 | qemu/tests/tcg/xtensa/test_b.S | #include "macros.inc"
test_suite b
test bnone
movi a2, 0xa5a5ff00
movi a3, 0x5a5a00ff
bnone a2, a3, 1f
test_fail
1:
movi a2, 0xa5a5ff01
bnone a2, a3, 1f
j 2f
1:
test_fail
2:
test_end
test beq
movi a2, 0
movi a3, 0
beq a2, a3, 1f
test_fail
1... |
andreafioraldi/qasan | 6,625 | qemu/tests/tcg/xtensa/test_windowed.S | #include "macros.inc"
test_suite windowed
.altmacro
.macro reset_window start
movi a2, 0xff
wsr a2, windowstart
rsync
movi a2, 0
wsr a2, windowbase
rsync
movi a2, \start
wsr a2, windowstart
rsync
.endm
.macro overflow_test shift, window, probe_ok, probe_ex
... |
andreafioraldi/qasan | 2,355 | qemu/tests/tcg/xtensa/test_loop.S | #include "macros.inc"
test_suite loop
test loop
movi a2, 0
movi a3, 5
loop a3, 1f
addi a2, a2, 1
1:
assert eqi, a2, 5
test_end
test loop0
movi a2, 0
loop a2, 1f
rsr a2, lcount
assert eqi, a2, -1
j 1f
1:
test_end
test loop_jump
movi a2, 0
... |
andreafioraldi/qasan | 2,166 | qemu/tests/migration/i386/a-b-bootblock.S | # x86 bootblock used in migration test
# repeatedly increments the first byte of each page in a 100MB
# range.
# Outputs an initial 'A' on serial followed by repeated 'B's
#
# Copyright (c) 2016 Red Hat, Inc. and/or its affiliates
# This work is licensed under the terms of the GNU GPL, version 2 or later.
# See the ... |
andreafioraldi/qasan | 1,826 | qemu/tests/migration/aarch64/a-b-kernel.S | #
# Copyright (c) 2018 Red Hat, Inc. and/or its affiliates
#
# Author:
# Wei Huang <wei@redhat.com>
#
# This work is licensed under the terms of the GNU GPL, version 2 or later.
# See the COPYING file in the top-level directory.
#
# Note: Please make sure the compiler compiles the assembly code below with
# pc-relati... |
andreiw/RaspberryPiPkg | 2,764 | Library/RaspberryPiPlatformLib/AARCH64/RaspberryPiHelper.S | #
# Copyright (c) 2011-2013, ARM Limited. All rights reserved.
# Copyright (c) 2016, Linaro Limited. All rights reserved.
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the ... |
andreiw/RaspberryPiPkg | 2,777 | Library/RaspberryPiPlatformLib/ARM/RaspberryPiHelper.S | #
# Copyright (c) 2011-2013, ARM Limited. All rights reserved.
# Copyright (c) 2014-2016, Linaro Limited. All rights reserved.
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of... |
andreiw/RaspberryPiPkg | 10,122 | Drivers/HypDxe/AArch64/ExceptionSupport.S | /** @file
*
* Copyright (c), 2018, Andrei Warkentin <andrey.warkentin@gmail.com>
* Copyright (c) 2011 - 2014 ARM LTD. All rights reserved.
* Portion of Copyright (c) 2014 NVIDIA Corporation. All rights reserved.
* Copyright (c) 2016 HP Development Company, L.P.
*
* This program and the accompanying m... |
andreiw/RaspberryPiPkg | 1,269 | Drivers/HypDxe/AArch64/SecondaryStartup.S | /** @file
*
* Copyright (c), 2018, Andrei Warkentin <andrey.warkentin@gmail.com>
*
* This program and the accompanying materials
* are licensed and made available under the terms and conditions of the BSD License
* which accompanies this distribution. The full text of the license may be found at
* h... |
andrehrferreira/ToS-Server-5 | 18,361 | Unreal/Source/ThirdParty/libsodium/src/libsodium/crypto_stream/salsa20/xmm6/salsa20_xmm6-asm.S | #ifdef HAVE_AMD64_ASM
#include "salsa20_xmm6-asm_namespace.h"
.text
.p2align 5
#ifdef ASM_HIDE_SYMBOL
ASM_HIDE_SYMBOL stream_salsa20_xmm6
ASM_HIDE_SYMBOL _stream_salsa20_xmm6
#endif
.globl stream_salsa20_xmm6
.globl _stream_salsa20_xmm6
#ifdef __ELF__
.type stream_salsa20_xmm6, @function
.type _stream_salsa20_xmm6... |
andrehrferreira/ToS-Server-5 | 2,773 | Unreal/Source/ThirdParty/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
#ifdef ASM_HIDE_SYMBOL
ASM_HIDE_SYMBOL fe51_nsquare
ASM_HIDE_SYMBOL _fe51_nsquare
#endif
.globl fe51_nsquare
.globl _fe51_nsquare
#i... |
andrehrferreira/ToS-Server-5 | 3,177 | Unreal/Source/ThirdParty/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
#ifdef ASM_HIDE_SYMBOL
ASM_HIDE_SYMBOL fe51_mul
ASM_HIDE_SYMBOL _fe51_mul
#endif
.globl fe51_mul
.globl _fe51_mul
#ifdef __ELF__
.type fe51_mul, @function
.type _fe51_mul... |
andrehrferreira/ToS-Server-5 | 38,701 | Unreal/Source/ThirdParty/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.S | #ifdef IN_SANDY2X
#include "ladder_namespace.h"
#include "consts_namespace.h"
.p2align 5
#ifdef ASM_HIDE_SYMBOL
ASM_HIDE_SYMBOL ladder
ASM_HIDE_SYMBOL _ladder
#endif
.globl ladder
.globl _ladder
#ifdef __ELF__
.type ladder, @function
.type _ladder, @function
#endif
ladder:
_ladder:
mov %rsp,%r11
and $31,%r11
add $1... |
andrehrferreira/ToS-Server-5 | 3,551 | Unreal/Source/ThirdParty/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
#ifdef ASM_HIDE_SYMBOL
ASM_HIDE_SYMBOL fe51_pack
ASM_HIDE_SYMBOL _fe51_pack
#endif
.globl fe51_pack
.globl _fe51_pack
#ifdef __E... |
andrenatal/speechrtc | 7,608 | voiceserver/webrtc/common_audio/signal_processing/filter_ar_fast_q12_armv7.S | @
@ Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
@
@ Use of this source code is governed by a BSD-style license
@ that can be found in the LICENSE file in the root of the source
@ tree. An additional intellectual property rights grant can be found
@ in the file PATENTS. All contributing project ... |
andrenatal/speechrtc | 7,093 | voiceserver/webrtc/common_audio/signal_processing/min_max_operations_neon.S | @
@ Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
@
@ Use of this source code is governed by a BSD-style license
@ that can be found in the LICENSE file in the root of the source
@ tree. An additional intellectual property rights grant can be found
@ in the file PATENTS. All contributing project ... |
andrenatal/speechrtc | 4,812 | voiceserver/webrtc/common_audio/signal_processing/cross_correlation_neon.S | @
@ Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
@
@ Use of this source code is governed by a BSD-style license
@ that can be found in the LICENSE file in the root of the source
@ tree. An additional intellectual property rights grant can be found
@ in the file PATENTS. All contributing project ... |
andrenatal/speechrtc | 4,623 | voiceserver/webrtc/common_audio/signal_processing/complex_bit_reverse_arm.S | @
@ Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
@
@ Use of this source code is governed by a BSD-style license
@ that can be found in the LICENSE file in the root of the source
@ tree. An additional intellectual property rights grant can be found
@ in the file PATENTS. All contributing project ... |
andrenatal/speechrtc | 2,310 | voiceserver/webrtc/common_audio/signal_processing/vector_scaling_operations_neon.S | @
@ Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
@
@ Use of this source code is governed by a BSD-style license
@ that can be found in the LICENSE file in the root of the source
@ tree. An additional intellectual property rights grant can be found
@ in the file PATENTS. All contributing project ... |
andrenatal/speechrtc | 2,882 | voiceserver/webrtc/common_audio/signal_processing/spl_sqrt_floor_arm.S | @
@ Written by Wilco Dijkstra, 1996. The following email exchange establishes the
@ license.
@
@ From: Wilco Dijkstra <Wilco.Dijkstra@ntlworld.com>
@ Date: Fri, Jun 24, 2011 at 3:20 AM
@ Subject: Re: sqrt routine
@ To: Kevin Ma <kma@google.com>
@ Hi Kevin,
@ Thanks for asking. Those routines are public domain (original... |
andrenatal/speechrtc | 7,353 | voiceserver/webrtc/common_audio/signal_processing/downsample_fast_neon.S | @
@ Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
@
@ Use of this source code is governed by a BSD-style license
@ that can be found in the LICENSE file in the root of the source
@ tree. An additional intellectual property rights grant can be found
@ in the file PATENTS. All contributing project ... |
andrescv/jupiter | 2,031 | src/test/riscv-tests/ori.s | ######################
# ori TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0xff00ff00
ori x30, x1, -241
li x29, 0xffffff0f
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x0ff00ff0
ori x30, x1, 240
li x29, 0x0ff00ff0
bne x30, x29, fail
test03:
li a... |
andrescv/jupiter | 2,598 | src/test/riscv-tests/lhu.s | ######################
# lhu TESTS #
######################
.globl __start
.data
tdat:
tdat1: .half 0x00ff
tdat2: .half 0xff00
tdat3: .half 0x0ff0
tdat4: .half 0xf00f
.text
__start:
test01:
li a1, 1
la x1, tdat
lhu x30, 0(x1)
li x29, 0x000000ff
bne x30, x29, fail
test02:
li a1, 2... |
andrescv/jupiter | 4,725 | src/test/riscv-tests/or.s | ######################
# or TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0xff00ff00
li x2, 0x0f0f0f0f
or x30, x1, x2
li x29, 0xff0fff0f
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x0ff00ff0
li x2, 0xf0f0f0f0
or x30, x1, x2
li x29, 0xfff0fff0
... |
andrescv/jupiter | 2,043 | src/test/riscv-tests/xori.s | ######################
# xori TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00ff0f00
xori x30, x1, -241
li x29, 0xff00f00f
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x0ff00ff0
xori x30, x1, 240
li x29, 0x0ff00f00
bne x30, x29, fail
test03:
li... |
andrescv/jupiter | 2,572 | src/test/riscv-tests/lb.s | ######################
# lb TESTS #
######################
.globl __start
.data
tdat:
tdat1: .byte 0xff
tdat2: .byte 0x00
tdat3: .byte 0xf0
tdat4: .byte 0x0f
.text
__start:
test01:
li a1, 1
la x1, tdat
lb x30, 0(x1)
li x29, 0xffffffff
bne x30, x29, fail
test02:
li a1, 2
la x1,... |
andrescv/jupiter | 1,248 | src/test/riscv-tests/divu.s | ######################
# divu TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000014
li x2, 0x00000006
divu x30, x1, x2
li x29, 0x00000003
bne x30, x29, fail
test02:
li a1, 2
li x1, 0xffffffec
li x2, 0x00000006
divu x30, x1, x2
li x29, 0x2aaaaa... |
andrescv/jupiter | 3,729 | src/test/riscv-tests/bne.s | ######################
# bne TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000000
li x2, 0x00000001
bne x1, x2, label2_test01
bne x0, a1, fail
label1_test01:
bne x0, a1, label3_test01
label2_test01:
bne x1, x2, label1_test01
bne x0, a1, fail
label3... |
andrescv/jupiter | 1,698 | src/test/riscv-tests/farith2.s | ######################
# farith2 #
######################
.globl __start
.text
__start:
test01:
li a1, 1
la a0, test01_data
flw f0, 0(a0)
flw f1, 4(a0)
flw f2, 8(a0)
lw a3, 12(a0)
fdiv.s f3, f0, f1
fmv.x.w a0, f3
bne a0, a3, fail
.data
test01_data:
.float 3.14159265
.float 2.71828... |
andrescv/jupiter | 3,135 | src/test/riscv-tests/srli.s | ######################
# srli TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x80000000
srli x30, x1, 0
li x29, 0x80000000
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x80000000
srli x30, x1, 1
li x29, 0x40000000
bne x30, x29, fail
test03:
li a1, ... |
andrescv/jupiter | 4,648 | src/test/riscv-tests/fminmax.s | ######################
# fminmax #
######################
.globl __start
.text
__start:
test01:
li a1, 1
la a0, test01_data
flw f0, 0(a0)
flw f1, 4(a0)
flw f2, 8(a0)
lw a3, 12(a0)
fmin.s f3, f0, f1
fmv.x.w a0, f3
bne a0, a3, fail
.data
test01_data:
.float 2.5
.float 1.0
.float 0... |
andrescv/jupiter | 3,178 | src/test/riscv-tests/sltiu.s | ######################
# sltiu TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000000
sltiu x30, x1, 0
li x29, 0x00000000
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x00000001
sltiu x30, x1, 1
li x29, 0x00000000
bne x30, x29, fail
test03:
li a1... |
andrescv/jupiter | 3,710 | src/test/riscv-tests/beq.s | ######################
# beq TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000000
li x2, 0x00000000
beq x1, x2, label2_test01
bne x0, a1, fail
label1_test01:
bne x0, a1, label3_test01
label2_test01:
beq x1, x2, label1_test01
bne x0, a1, fail
label3... |
andrescv/jupiter | 4,332 | src/test/riscv-tests/sb.s | ######################
# sb TESTS #
######################
.globl __start
.data
tdat:
tdat1: .byte 0xef
tdat2: .byte 0xef
tdat3: .byte 0xef
tdat4: .byte 0xef
tdat5: .byte 0xef
tdat6: .byte 0xef
tdat7: .byte 0xef
tdat8: .byte 0xef
tdat9: .byte 0xef
tdat10: .byte 0xef
.text
__s... |
andrescv/jupiter | 2,598 | src/test/riscv-tests/lw.s | ######################
# lw TESTS #
######################
.globl __start
.data
tdat:
tdat1: .word 0x00ff00ff
tdat2: .word 0xff00ff00
tdat3: .word 0x0ff00ff0
tdat4: .word 0xf00ff00f
.text
__start:
test01:
li a1, 1
la x1, tdat
lw x30, 0(x1)
li x29, 0x00ff00ff
bne x30, x29, fail
tes... |
andrescv/jupiter | 3,154 | src/test/riscv-tests/addi.s | ######################
# addi TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000000
addi x30, x1, 0
li x29, 0x00000000
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x00000001
addi x30, x1, 1
li x29, 0x00000002
bne x30, x29, fail
test03:
li a1, ... |
andrescv/jupiter | 3,154 | src/test/riscv-tests/slti.s | ######################
# slti TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000000
slti x30, x1, 0
li x29, 0x00000000
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x00000001
slti x30, x1, 1
li x29, 0x00000000
bne x30, x29, fail
test03:
li a1, ... |
andrescv/jupiter | 1,944 | src/test/riscv-tests/fcvt.s | ######################
# fcvt #
######################
.globl __start
.text
__start:
test01:
li a1, 1
la a0, test01_data
lw a3, 0(a0)
li a0, 2
fcvt.s.w f0, a0
fmv.x.w a0, f0
bne a0, a3, fail
.data
.align 2
test01_data:
.float 2.000000
.text
test02:
li a1, 2
la a0, test02_dat... |
andrescv/jupiter | 6,082 | src/test/riscv-tests/slt.s | ######################
# slt TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000000
li x2, 0x00000000
slt x30, x1, x2
li x29, 0x00000000
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x00000001
li x2, 0x00000001
slt x30, x1, x2
li x29, 0x00000000... |
andrescv/jupiter | 1,340 | src/test/riscv-tests/fclass.s | ######################
# fclass #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li a0, 0xff800000
fmv.w.x fa0, a0
fclass.s a0, fa0
li x29, 0x00000001
bne a0, x29, fail
test02:
li a1, 2
li a0, 0xbf800000
fmv.w.x fa0, a0
fclass.s a0, fa0
li x29, 0x00000002
... |
andrescv/jupiter | 4,751 | src/test/riscv-tests/xor.s | ######################
# xor TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0xff00ff00
li x2, 0x0f0f0f0f
xor x30, x1, x2
li x29, 0xf00ff00f
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x0ff00ff0
li x2, 0xf0f0f0f0
xor x30, x1, x2
li x29, 0xff00ff00... |
andrescv/jupiter | 3,135 | src/test/riscv-tests/srai.s | ######################
# srai TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000000
srai x30, x1, 0
li x29, 0x00000000
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x80000000
srai x30, x1, 1
li x29, 0xc0000000
bne x30, x29, fail
test03:
li a1, ... |
andrescv/jupiter | 5,961 | src/test/riscv-tests/sub.s | ######################
# sub TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000000
li x2, 0x00000000
sub x30, x1, x2
li x29, 0x00000000
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x00000001
li x2, 0x00000001
sub x30, x1, x2
li x29, 0x00000000... |
andrescv/jupiter | 1,248 | src/test/riscv-tests/remu.s | ######################
# remu TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000014
li x2, 0x00000006
remu x30, x1, x2
li x29, 0x00000002
bne x30, x29, fail
test02:
li a1, 2
li x1, 0xffffffec
li x2, 0x00000006
remu x30, x1, x2
li x29, 0x000000... |
andrescv/jupiter | 6,082 | src/test/riscv-tests/add.s | ######################
# add TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000000
li x2, 0x00000000
add x30, x1, x2
li x29, 0x00000000
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x00000001
li x2, 0x00000001
add x30, x1, x2
li x29, 0x00000002... |
andrescv/jupiter | 5,821 | src/test/riscv-tests/mulhsu.s | ######################
# mulhsu TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000000
li x2, 0x00000000
mulhsu x30, x1, x2
li x29, 0x00000000
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x00000001
li x2, 0x00000001
mulhsu x30, x1, x2
li x29, 0x00... |
andrescv/jupiter | 4,751 | src/test/riscv-tests/and.s | ######################
# and TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0xff00ff00
li x2, 0x0f0f0f0f
and x30, x1, x2
li x29, 0x0f000f00
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x0ff00ff0
li x2, 0xf0f0f0f0
and x30, x1, x2
li x29, 0x00f000f0... |
andrescv/jupiter | 2,046 | src/test/riscv-tests/andi.s | ######################
# andi TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0xff00ff00
andi x30, x1, -241
li x29, 0xff00ff00
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x0ff00ff0
andi x30, x1, 240
li x29, 0x000000f0
bne x30, x29, fail
test03:
li... |
andrescv/jupiter | 4,356 | src/test/riscv-tests/sh.s | ######################
# sh TESTS #
######################
.globl __start
.data
tdat:
tdat1: .half 0xbeef
tdat2: .half 0xbeef
tdat3: .half 0xbeef
tdat4: .half 0xbeef
tdat5: .half 0xbeef
tdat6: .half 0xbeef
tdat7: .half 0xbeef
tdat8: .half 0xbeef
tdat9: .half 0xbeef
tdat10: .hal... |
andrescv/jupiter | 6,687 | src/test/riscv-tests/sra.s | ######################
# sra TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x80000000
li x2, 0x00000000
sra x30, x1, x2
li x29, 0x80000000
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x80000000
li x2, 0x00000001
sra x30, x1, x2
li x29, 0xc0000000... |
andrescv/jupiter | 2,675 | src/test/riscv-tests/farith.s | ######################
# farith #
######################
.globl __start
.text
__start:
test01:
li a1, 1
la a0, test01_data
flw f0, 0(a0)
flw f1, 4(a0)
flw f2, 8(a0)
lw a3, 12(a0)
fadd.s f3, f0, f1
fmv.x.w a0, f3
bne a0, a3, fail
.data
test01_data:
.float 2.5
.float 1.0
.float 0... |
andrescv/jupiter | 3,136 | src/test/riscv-tests/slli.s | ######################
# slli TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000001
slli x30, x1, 0
li x29, 0x00000001
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x00000001
slli x30, x1, 1
li x29, 0x00000002
bne x30, x29, fail
test03:
li a1, ... |
andrescv/jupiter | 4,426 | src/test/riscv-tests/bgeu.s | ######################
# bgeu TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000000
li x2, 0x00000000
bgeu x1, x2, label2_test01
bne x0, a1, fail
label1_test01:
bne x0, a1, label3_test01
label2_test01:
bgeu x1, x2, label1_test01
bne x0, a1, fail
labe... |
andrescv/jupiter | 6,687 | src/test/riscv-tests/srl.s | ######################
# srl TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x80000000
li x2, 0x00000000
srl x30, x1, x2
li x29, 0x80000000
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x80000000
li x2, 0x00000001
srl x30, x1, x2
li x29, 0x40000000... |
andrescv/jupiter | 3,176 | src/test/riscv-tests/ffused.s | ######################
# ffused #
######################
.globl __start
.text
__start:
test01:
li a1, 1
la a0, test01_data
flw f0, 0(a0)
flw f1, 4(a0)
flw f2, 8(a0)
lw a3, 12(a0)
fmadd.s f3, f0, f1, f2
fmv.x.w a0, f3
bne a0, a3, fail
.data
test01_data:
.float 1.0
.float 2.5
.fl... |
andrescv/jupiter | 3,591 | src/test/riscv-tests/fcmp.s | ######################
# fcmp #
######################
.globl __start
.text
__start:
test01:
li a1, 1
la a0, test01_data
flw f0, 0(a0)
flw f1, 4(a0)
flw f2, 8(a0)
lw a3, 12(a0)
feq.s a0, f0, f1
bne a0, a3, fail
.data
test01_data:
.float -1.36
.float -1.36
.float 0.0
.word 0x1
... |
andrescv/jupiter | 4,408 | src/test/riscv-tests/sw.s | ######################
# sw TESTS #
######################
.globl __start
.data
tdat:
tdat1: .word 0xdeadbeef
tdat2: .word 0xdeadbeef
tdat3: .word 0xdeadbeef
tdat4: .word 0xdeadbeef
tdat5: .word 0xdeadbeef
tdat6: .word 0xdeadbeef
tdat7: .word 0xdeadbeef
tdat8: .word 0xdeadbeef
tda... |
andrescv/jupiter | 2,254 | src/test/riscv-tests/fmove.s | ######################
# fmove #
######################
.globl __start
.text
__start:
test09:
li a1, 9
li a3, 0x12345678
li a2, 0x00000000
fmv.w.x f1, a3
fmv.w.x f2, a2
fsgnj.s f0, f1, f2
fmv.x.w a0, f0
li x29, 0x12345678
bne a0, x29, fail
test10:
li a1, 10
li a3, 0x12345678
li... |
andrescv/jupiter | 5,961 | src/test/riscv-tests/mul.s | ######################
# mul TESTS #
######################
.globl __start
.text
__start:
test31:
li a1, 31
li x1, 0x00007e00
li x2, 0xb6db6db7
mul x30, x1, x2
li x29, 0x00001200
bne x30, x29, fail
test32:
li a1, 32
li x1, 0x00007fc0
li x2, 0xb6db6db7
mul x30, x1, x2
li x29, 0x000012... |
andrescv/jupiter | 2,580 | src/test/riscv-tests/lh.s | ######################
# lh TESTS #
######################
.globl __start
.data
tdat:
tdat1: .half 0x00ff
tdat2: .half 0xff00
tdat3: .half 0x0ff0
tdat4: .half 0xf00f
.text
__start:
test01:
li a1, 1
la x1, tdat
lh x30, 0(x1)
li x29, 0x000000ff
bne x30, x29, fail
test02:
li a1, 2
... |
andrescv/jupiter | 5,753 | src/test/riscv-tests/mulh.s | ######################
# mulh TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000000
li x2, 0x00000000
mulh x30, x1, x2
li x29, 0x00000000
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x00000001
li x2, 0x00000001
mulh x30, x1, x2
li x29, 0x000000... |
andrescv/jupiter | 2,590 | src/test/riscv-tests/lbu.s | ######################
# lbu TESTS #
######################
.globl __start
.data
tdat:
tdat1: .byte 0xff
tdat2: .byte 0x00
tdat3: .byte 0xf0
tdat4: .byte 0x0f
.text
__start:
test01:
li a1, 1
la x1, tdat
lbu x30, 0(x1)
li x29, 0x000000ff
bne x30, x29, fail
test02:
li a1, 2
la x1... |
andrescv/jupiter | 6,119 | src/test/riscv-tests/sltu.s | ######################
# sltu TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000000
li x2, 0x00000000
sltu x30, x1, x2
li x29, 0x00000000
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x00000001
li x2, 0x00000001
sltu x30, x1, x2
li x29, 0x000000... |
andrescv/jupiter | 5,787 | src/test/riscv-tests/mulhu.s | ######################
# mulhu TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000000
li x2, 0x00000000
mulhu x30, x1, x2
li x29, 0x00000000
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x00000001
li x2, 0x00000001
mulhu x30, x1, x2
li x29, 0x0000... |
andrescv/jupiter | 6,566 | src/test/riscv-tests/sll.s | ######################
# sll TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000001
li x2, 0x00000000
sll x30, x1, x2
li x29, 0x00000001
bne x30, x29, fail
test02:
li a1, 2
li x1, 0x00000001
li x2, 0x00000001
sll x30, x1, x2
li x29, 0x00000002... |
andrescv/jupiter | 3,710 | src/test/riscv-tests/blt.s | ######################
# blt TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000000
li x2, 0x00000001
blt x1, x2, label2_test01
bne x0, a1, fail
label1_test01:
bne x0, a1, label3_test01
label2_test01:
blt x1, x2, label1_test01
bne x0, a1, fail
label3... |
andrescv/jupiter | 4,394 | src/test/riscv-tests/bge.s | ######################
# bge TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000000
li x2, 0x00000000
bge x1, x2, label2_test01
bne x0, a1, fail
label1_test01:
bne x0, a1, label3_test01
label2_test01:
bge x1, x2, label1_test01
bne x0, a1, fail
label3... |
andrescv/jupiter | 3,736 | src/test/riscv-tests/bltu.s | ######################
# bltu TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000000
li x2, 0x00000001
bltu x1, x2, label2_test01
bne x0, a1, fail
label1_test01:
bne x0, a1, label3_test01
label2_test01:
bltu x1, x2, label1_test01
bne x0, a1, fail
labe... |
andrescv/jupiter | 1,239 | src/test/riscv-tests/rem.s | ######################
# rem TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000014
li x2, 0x00000006
rem x30, x1, x2
li x29, 0x00000002
bne x30, x29, fail
test02:
li a1, 2
li x1, 0xffffffec
li x2, 0x00000006
rem x30, x1, x2
li x29, 0xfffffffe... |
andrescv/jupiter | 1,239 | src/test/riscv-tests/div.s | ######################
# div TESTS #
######################
.globl __start
.text
__start:
test01:
li a1, 1
li x1, 0x00000014
li x2, 0x00000006
div x30, x1, x2
li x29, 0x00000003
bne x30, x29, fail
test02:
li a1, 2
li x1, 0xffffffec
li x2, 0x00000006
div x30, x1, x2
li x29, 0xfffffffd... |
Andrettin/Wyrmgus | 15,839 | src/third_party/zlib/contrib/gcc_gvmat64/gvmat64.S | /*
;uInt longest_match_x64(
; deflate_state *s,
; IPos cur_match); // current match
; gvmat64.S -- Asm portion of the optimized longest_match for 32 bits x86_64
; (AMD64 on Athlon 64, Opteron, Phenom
; and Intel EM64T on Pentium 4 with EM64T, Pentium D, Core 2 Duo, Core I5/I7)
;... |
andreluisjunqueira/react-native-document-scanner-android | 6,312 | example/ios/Pods/Flipper-Boost-iOSX/asm/ontop_ppc32_sysv_elf_gas.S | /*
Copyright Oliver Kowalke 2009.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
/*******************************************************
* ... |
andreluisjunqueira/react-native-document-scanner-android | 4,205 | example/ios/Pods/Flipper-Boost-iOSX/asm/jump_i386_ms_pe_gas.S | /*
Copyright Oliver Kowalke 2009.
Copyright Thomas Sailer 2013.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
/***********************************************************... |
andreluisjunqueira/react-native-document-scanner-android | 3,177 | example/ios/Pods/Flipper-Boost-iOSX/asm/ontop_arm_aapcs_elf_gas.S | /*
Copyright Oliver Kowalke 2009.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
/*******************************************************
* ... |
andreluisjunqueira/react-native-document-scanner-android | 9,772 | example/ios/Pods/Flipper-Boost-iOSX/asm/make_x86_64_ms_pe_gas.S | /*
Copyright Oliver Kowalke 2009.
Copyright Thomas Sailer 2013.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
/***********************************************************... |
andreluisjunqueira/react-native-document-scanner-android | 2,783 | example/ios/Pods/Flipper-Boost-iOSX/asm/make_arm_aapcs_macho_gas.S | /*
Copyright Oliver Kowalke 2009.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
/*******************************************************
* ... |
andreluisjunqueira/react-native-document-scanner-android | 1,930 | example/ios/Pods/Flipper-Boost-iOSX/asm/ontop_ppc64_sysv_xcoff_gas.S | .align 2
.globl .ontop_fcontext
.ontop_fcontext:
# reserve space on stack
subi 1, 1, 184
std 13, 0(1) # save R13
std 14, 8(1) # save R14
std 15, 16(1) # save R15
std 16, 24(1) # save R16
std 17, 32(1) # save R17
std 18, 40(1) # save R18
std 19, 48(1) # save R19
st... |
andreluisjunqueira/react-native-document-scanner-android | 3,283 | example/ios/Pods/Flipper-Boost-iOSX/asm/ontop_arm_aapcs_macho_gas.S | /*
Copyright Oliver Kowalke 2009.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
/*******************************************************
* ... |
andreluisjunqueira/react-native-document-scanner-android | 3,421 | example/ios/Pods/Flipper-Boost-iOSX/asm/make_x86_64_sysv_elf_gas.S | /*
Copyright Oliver Kowalke 2009.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
/****************************************************************************************
* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.