Home
last modified time | relevance | path

Searched refs:__asm__ (Results 1 – 25 of 199) sorted by relevance

12345678

/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_syscall_linux_hexagon.inc30 __asm__ __volatile__("trap0(#1)" : "=r"(r0) : __VA_ARGS__ : "memory"); \
37 register u32 r6 __asm__("r6") = n;
38 register u32 r0 __asm__("r0");
45 register u32 r6 __asm__("r6") = n;
46 register u32 r0 __asm__("r0") = a;
54 register u32 r6 __asm__("r6") = n;
55 register u32 r0 __asm__("r0") = a;
56 register u32 r1 __asm__("r1") = b;
64 register u32 r6 __asm__("r6") = n;
65 register u32 r0 __asm__("r0") = a;
[all …]
H A Dsanitizer_linux_s390.cpp73 register uptr res __asm__("r2"); in internal_clone()
74 register void *__cstack __asm__("r2") = child_stack; in internal_clone()
75 register long __flags __asm__("r3") = flags; in internal_clone()
76 register int *__ptidptr __asm__("r4") = parent_tidptr; in internal_clone() local
77 register int *__ctidptr __asm__("r5") = child_tidptr; in internal_clone() local
78 register void *__newtls __asm__("r6") = newtls; in internal_clone() local
80 __asm__ __volatile__( in internal_clone() local
79 register int * __ptidptr __asm__("r4") = parent_tidptr; internal_clone() local
81 register void * __newtls __asm__("r6") = newtls; internal_clone() local
/freebsd/crypto/openssh/
H A Dsntrup761.c64 __asm__ ("sarw $15,%0" : "+r"(crypto_int16_x) : : "cc"); in crypto_int16_negative_mask()
68 __asm__ ("sbfx %w0,%w1,15,1" : "=r"(crypto_int16_y) : "r"(crypto_int16_x) : ); in crypto_int16_negative_mask()
82 __asm__ ("shrw $15,%0" : "+r"(crypto_int16_x) : : "cc"); in crypto_int16_unsigned_topbit_01()
86 __asm__ ("ubfx %w0,%w1,15,1" : "=r"(crypto_int16_y) : "r"(crypto_int16_x) : ); in crypto_int16_unsigned_topbit_01()
118 __asm__ ("andw $1,%0" : "+r"(crypto_int16_x) : : "cc"); in crypto_int16_bottombit_mask()
122 __asm__ ("sbfx %w0,%w1,0,1" : "=r"(crypto_int16_y) : "r"(crypto_int16_x) : ); in crypto_int16_bottombit_mask()
134 __asm__ ("andw $1,%0" : "+r"(crypto_int16_x) : : "cc"); in crypto_int16_bottombit_01()
138 __asm__ ("ubfx %w0,%w1,0,1" : "=r"(crypto_int16_y) : "r"(crypto_int16_x) : ); in crypto_int16_bottombit_01()
150 __asm__ ("sarw %%cl,%0" : "+r"(crypto_int16_x) : "c"(crypto_int16_s) : "cc"); in crypto_int16_bitinrangepublicpos_mask()
152 __asm__ ("sxth %w0,%w0\n asr %w0,%w0,%w1" : "+&r"(crypto_int16_x) : "r"(crypto_int16_s) : ); in crypto_int16_bitinrangepublicpos_mask()
[all …]
/freebsd/sys/arm/include/
H A Dprofile.h60 __asm__(".text"); \
61 __asm__(".align 2"); \
62 __asm__(".type __mcount ,%function"); \
63 __asm__(".global __mcount"); \
64 __asm__("__mcount:"); \
68 __asm__("stmfd sp!, {r0-r3, ip, lr}"); \
75 __asm__("mov r0, ip"); \
79 __asm__("mov r1, lr"); \
83 __asm__("bl mcount"); \
87 __asm__("ldmfd sp!, {r0-r3, lr}"); \
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/
H A Dcrtbegin.c74 __asm__(".pushsection .init_array,\"aw\",@init_array\n\t"
85 __asm__(".pushsection .init,\"ax\",@progbits\n\t"
89 __asm__(".pushsection .init,\"ax\",%progbits\n\t"
93 __asm__(".pushsection .init,\"ax\",%progbits\n\t"
97 __asm__(".pushsection .init,\"ax\",@progbits\n\t"
101 __asm__(".pushsection .init,\"ax\",@progbits\n\t"
106 __asm__(".pushsection .init,\"ax\",@progbits\n\t"
156 __asm__(".pushsection .fini_array,\"aw\",@fini_array\n\t"
167 __asm__(".pushsection .fini,\"ax\",@progbits\n\t"
171 __asm__(".pushsection .fini,\"ax\",%progbits\n\t"
[all …]
H A Dclear_cache.c98 __asm__ volatile("ibar 0"); in __clear_cache()
103 __asm__ volatile("rdhwr %0, $1" : "=r"(synci_step)); in __clear_cache()
107 __asm__ volatile("synci 0(%0)" : : "r"(p)); in __clear_cache()
110 __asm__ volatile(".set noat\n" in __clear_cache()
171 __asm__ volatile("dcbf 0, %0" : : "r"(line)); in __clear_cache()
172 __asm__ volatile("sync"); in __clear_cache()
175 __asm__ volatile("icbi 0, %0" : : "r"(line)); in __clear_cache()
176 __asm__ volatile("isync"); in __clear_cache()
186 __asm__ volatile("flush %0" : : "r"(dword)); in __clear_cache()
206 __asm__ volatile("fencec 2"); in __clear_cache()
/freebsd/sys/contrib/ck/include/gcc/aarch64/
H A Dck_pr_lse.h42 register uint64_t x0 __asm__ ("x0") = compare[0]; in ck_pr_cas_64_2_value()
43 register uint64_t x1 __asm__ ("x1") = compare[1]; in ck_pr_cas_64_2_value()
44 register uint64_t x2 __asm__ ("x2") = set[0]; in ck_pr_cas_64_2_value()
45 register uint64_t x3 __asm__ ("x3") = set[1]; in ck_pr_cas_64_2_value()
47 __asm__ __volatile__("casp %0, %1, %4, %5, [%6]\n" in ck_pr_cas_64_2_value()
73 register uint64_t x0 __asm__ ("x0") = compare[0]; in ck_pr_cas_64_2()
74 register uint64_t x1 __asm__ ("x1") = compare[1]; in ck_pr_cas_64_2()
75 register uint64_t x2 __asm__ ("x2") = set[0]; in ck_pr_cas_64_2()
76 register uint64_t x3 __asm__ ("x3") = set[1]; in ck_pr_cas_64_2()
78 __asm__ __volatile__("casp %0, %1, %2, %3, [%4]\n" in ck_pr_cas_64_2()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Headers/
H A Dintrin.h243 __asm__ __volatile__("rep movsb" in __movsb()
248 __asm__ __volatile__("xchg {%%esi, %1|%1, esi}\n" in __movsb()
260 __asm__ __volatile__("rep movs{l|d}" in __movsd()
265 __asm__ __volatile__("xchg {%%esi, %1|%1, esi}\n" in __movsd()
277 __asm__ __volatile__("rep movsw" in __movsw()
282 __asm__ __volatile__("xchg {%%esi, %1|%1, esi}\n" in __movsw()
293 __asm__ __volatile__("rep stos{l|d}" in __stosd()
301 __asm__ __volatile__("rep stosw" in __stosw()
310 __asm__ __volatile__("rep movsq" in __movsq()
318 __asm__ __volatile__("rep stosq" : "+D"(__dst), "+c"(__n) : "a"(__x) in __stosq()
[all …]
H A D__clang_cuda_device_functions.h37 __DEVICE__ void __brkpt() { __asm__ __volatile__("brkpt;"); } in __brkpt()
41 __asm__ __volatile__("brkpt;"); in __brkpt()
512 #define __prof_trigger(__a) __asm__ __volatile__("pmevent \t%0;" ::"i"(__a))
531 __DEVICE__ void __trap(void) { __asm__ __volatile__("trap;"); } in __trap()
1070 __asm__("vabsdiff2.s32.s32.s32 %0,%1,%2,%3;" in __vabs2()
1077 __asm__("vabsdiff4.s32.s32.s32 %0,%1,%2,%3;" in __vabs4()
1084 __asm__("vabsdiff2.s32.s32.s32 %0,%1,%2,%3;" in __vabsdiffs2()
1092 __asm__("vabsdiff4.s32.s32.s32 %0,%1,%2,%3;" in __vabsdiffs4()
1099 __asm__("vabsdiff2.u32.u32.u32 %0,%1,%2,%3;" in __vabsdiffu2()
1106 __asm__("vabsdiff4.u32.u32.u32 %0,%1,%2,%3;" in __vabsdiffu4()
[all …]
/freebsd/contrib/llvm-project/libc/src/__support/OSUtil/linux/riscv/
H A Dsyscall.h16 register long a7 __asm__("a7") = number; \
17 register long a0 __asm__("a0");
19 register long a7 __asm__("a7") = number; \
20 register long a0 __asm__("a0") = arg1;
21 #define REGISTER_DECL_2 REGISTER_DECL_1 register long a1 __asm__("a1") = arg2;
24 register long a2 __asm__("a2") = arg3;
27 register long a3 __asm__("a3") = arg4;
30 register long a4 __asm__("a4") = arg5;
33 register long a5 __asm__("a5") = arg6;
/freebsd/contrib/llvm-project/libc/src/__support/OSUtil/darwin/aarch64/
H A Dsyscall.h16 register long x16 __asm__("x16") = number; \
17 register long x0 __asm__("x0");
19 register long x16 __asm__("x16") = number; \
20 register long x0 __asm__("x0") = arg1;
23 register long x1 __asm__("x1") = arg2;
26 register long x2 __asm__("x2") = arg3;
29 register long x3 __asm__("x3") = arg4;
32 register long x4 __asm__("x4") = arg5;
35 register long x5 __asm__("x5") = arg6;
/freebsd/contrib/llvm-project/libc/src/__support/OSUtil/linux/aarch64/
H A Dsyscall.h16 register long x8 __asm__("x8") = number; \
17 register long x0 __asm__("x0");
19 register long x8 __asm__("x8") = number; \
20 register long x0 __asm__("x0") = arg1;
21 #define REGISTER_DECL_2 REGISTER_DECL_1 register long x1 __asm__("x1") = arg2;
24 register long x2 __asm__("x2") = arg3;
27 register long x3 __asm__("x3") = arg4;
30 register long x4 __asm__("x4") = arg5;
33 register long x5 __asm__("x5") = arg6;
/freebsd/sys/i386/linux/
H A Dlinux_vdso_gtod.c61 __asm__ __volatile__ in write()
76 __asm__ __volatile__ in __vdso_clock_gettime_fallback()
91 __asm__ __volatile__ in __vdso_clock_gettime64_fallback()
106 __asm__ __volatile__ in __vdso_gettimeofday_fallback()
121 __asm__ __volatile__ in __vdso_clock_getres_fallback()
136 __asm__ __volatile__ in __vdso_getcpu_fallback()
151 __asm__ __volatile__ in __vdso_time_fallback()
/freebsd/sys/amd64/linux32/
H A Dlinux32_vdso_gtod.c61 __asm__ __volatile__ in write()
76 __asm__ __volatile__ in __vdso_clock_gettime_fallback()
91 __asm__ __volatile__ in __vdso_clock_gettime64_fallback()
106 __asm__ __volatile__ in __vdso_gettimeofday_fallback()
121 __asm__ __volatile__ in __vdso_clock_getres_fallback()
136 __asm__ __volatile__ in __vdso_getcpu_fallback()
151 __asm__ __volatile__ in __vdso_time_fallback()
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/loongarch/
H A Dfp_mode.c24 __asm__ __volatile__("movfcsr2gr %0, $fcsr0" : "=r" (fcsr)); in __fe_getround()
26 __asm__ __volatile__("movfcsr2gr %0, $r0" : "=r" (fcsr)); in __fe_getround()
49 __asm__ __volatile__("movfcsr2gr %0, $fcsr0" : "=r" (fcsr)); in __fe_raise_inexact()
50 __asm__ __volatile__( in __fe_raise_inexact()
53 __asm__ __volatile__("movfcsr2gr %0, $r0" : "=r" (fcsr)); in __fe_raise_inexact()
54 __asm__ __volatile__( in __fe_raise_inexact()
/freebsd/sys/contrib/ck/include/gcc/ppc64/
H A Dck_pr.h57 __asm__ __volatile__("or 1, 1, 1;" in ck_pr_stall()
66 __asm__ __volatile__(I ::: "memory"); \
96 __asm__ __volatile__(I "%U1%X1 %0, %1" \
126 __asm__ __volatile__(I "%U0%X0 %1, %0" \
157 __asm__ __volatile__("1:" in ck_pr_cas_64_value()
179 __asm__ __volatile__("1:" in ck_pr_cas_ptr_value()
201 __asm__ __volatile__("1:" in ck_pr_cas_64()
222 __asm__ __volatile__("1:" in ck_pr_cas_ptr()
243 __asm__ __volatile__("1:" \
262 __asm__ __volatile__("1:" \
[all …]
/freebsd/sys/amd64/linux/
H A Dlinux_vdso_gtod.c62 __asm__ __volatile__ in write()
77 __asm__ __volatile__ in __vdso_clock_gettime_fallback()
92 __asm__ __volatile__ in __vdso_gettimeofday_fallback()
107 __asm__ __volatile__ in __vdso_clock_getres_fallback()
122 __asm__ __volatile__ in __vdso_getcpu_fallback()
137 __asm__ __volatile__ in __vdso_time_fallback()
/freebsd/sys/contrib/ncsw/Peripherals/QM/
H A Dqman_private.h61 __asm__ __volatile__ ("dcbf 0, %0" : : "r" (addr)); \
67 __asm__ __volatile__ ("dcbt 0, %0" : : "r" (addr)); \
72 __asm__ __volatile__ ("dcbtst 0, %0" : : "r" (addr)); \
77 __asm__ __volatile__ ("dcbzl 0,%0" : : "r" (p)); \
101 __asm__ __volatile__ ("dcbt 0,%0" : : "r" (p)); \
106 __asm__ __volatile__ ("dcbtst 0,%0" : : "r" (p)); \
110 __asm__ __volatile__ ("dcbz 0,%0" : : "r" (p)); \
/freebsd/sys/amd64/include/xen/
H A Dhypercall.h60 __asm__ volatile ( \
72 __asm__ volatile ( \
84 __asm__ volatile ( \
96 __asm__ volatile ( \
110 register long __arg4 __asm__("r10") = (long)(a4); \
111 __asm__ volatile ( \
125 register long __arg4 __asm__("r10") = (long)(a4); \
126 register long __arg5 __asm__("r8") = (long)(a5); \
127 __asm__ volatile ( \
142 register long __arg4 __asm__("r10") = (long)(a4); in privcmd_hypercall()
[all …]
/freebsd/sys/sys/
H A Dcdefs.h403 __asm__(".weak " #alias); \
404 __asm__(".equ " #alias ", " #sym)
406 __asm__(".section .gnu.warning." #sym); \
407 __asm__(".asciz \"" msg "\""); \
408 __asm__(".previous")
411 __asm__(".symver " #impl ", " #sym "@" #verid)
413 __asm__(".symver " #impl ", " #sym "@@@" #verid)
417 __asm__(".weak alias"); \
418 __asm__(".equ alias, sym")
420 __asm__(".section .gnu.warning.sym"); \
[all …]
/freebsd/sys/contrib/ck/include/gcc/sparcv9/
H A Dck_pr.h55 __asm__ __volatile__("membar #LoadLoad" ::: "memory"); in ck_pr_stall()
63 __asm__ __volatile__(I ::: "memory"); \
93 __asm__ __volatile__(I " [%1], %0" \
117 __asm__ __volatile__(I " %0, [%1]" \
158 __asm__ __volatile__(CK_PR_INS_CASX " [%1] " CK_PR_ASI_ATOMIC ", %2, %0" in ck_pr_cas_64_value()
172 __asm__ __volatile__(CK_PR_INS_CASX " [%1] " CK_PR_ASI_ATOMIC ", %2, %0" in ck_pr_cas_64()
199 __asm__ __volatile__(CK_PR_INS_CAS " [%1] " CK_PR_ASI_ATOMIC ", %2, %0" \
210 __asm__ __volatile__(CK_PR_INS_CAS " [%1] " CK_PR_ASI_ATOMIC ", %2, %0" \
229 __asm__ __volatile__(CK_PR_INS_SWAP " [%1] " CK_PR_ASI_ATOMIC ", %0" \
/freebsd/contrib/llvm-project/libc/src/__support/OSUtil/linux/arm/
H A Dsyscall.h36 register long r0 __asm__("r0");
39 register long r0 __asm__("r0") = arg1;
42 register long r1 __asm__("r1") = arg2;
45 register long r2 __asm__("r2") = arg3;
48 register long r3 __asm__("r3") = arg4;
51 register long r4 __asm__("r4") = arg5;
54 register long r5 __asm__("r5") = arg6;
/freebsd/sys/contrib/ncsw/Peripherals/BM/
H A Dbman_private.h60 __asm__ __volatile__ ("dcbf 0, %0" : : "r" (addr)); \
66 __asm__ __volatile__ ("dcbt 0, %0" : : "r" (addr)); \
71 __asm__ __volatile__ ("dcbtst 0, %0" : : "r" (addr)); \
76 __asm__ __volatile__ ("dcbzl 0,%0" : : "r" (p)); \
100 __asm__ __volatile__ ("dcbt 0,%0" : : "r" (p)); \
105 __asm__ __volatile__ ("dcbz 0,%0" : : "r" (p)); \
/freebsd/sys/contrib/ck/include/gcc/x86/
H A Dck_pr.h55 __asm__ __volatile__("pause" ::: "memory"); in ck_pr_stall()
65 __asm__ __volatile__("" ::: "memory"); \
74 __asm__ __volatile__(I ::: "memory"); \
115 __asm__ __volatile__(I " %0, %1" \
142 __asm__ __volatile__(I " %1, %0" \
167 __asm__ __volatile__(I " %1, %0" \
195 __asm__ __volatile__(CK_PR_LOCK_PREFIX I " %1, %0" \
228 __asm__ __volatile__(CK_PR_LOCK_PREFIX I " %0" \
240 __asm__ __volatile__(CK_PR_LOCK_PREFIX I " %0; setz %1" \
281 __asm__ __volatile__(CK_PR_LOCK_PREFIX I " %1, %0" \
[all …]
/freebsd/sys/contrib/ck/include/gcc/x86_64/
H A Dck_pr.h67 __asm__ __volatile__("pause" ::: "memory"); in ck_pr_stall()
75 __asm__ __volatile__(I ::: "memory"); \
128 __asm__ __volatile__("prefetchw (%0)" in ck_pr_rfo()
144 __asm__ __volatile__(I " %0, %1" \
178 __asm__ __volatile__(I " %1, %0" \
206 __asm__ __volatile__("movq %%rdx, %%rcx;" in ck_pr_load_64_2()
249 __asm__ __volatile__(I " %1, %0" \
260 __asm__ __volatile__(I " %1, %0" \
293 __asm__ __volatile__(CK_PR_LOCK_PREFIX I " %1, %0" \
327 __asm__ __volatile__(CK_PR_LOCK_PREFIX I " %0" \
[all …]

12345678