search for: moveq

Displaying 20 results from an estimated 45 matches for "moveq".

Did you mean: move
2006 Aug 21
5
[LLVMdev] selecting select_cc
I am trying to add support for select_cc. In ARM it can be implemented with: mov $dst, $falseVal cmp $a, $b moveq $dst, $trueVal My current strategy is to expand select_cc in two ARM nodes: ARM::SELECT and ARM::CMP. The two nodes would be connected by a flag edge. ARM::CMP would then expand to "cmp $a, $b". This instruction has no results. It only alters the CPSR (current program status register)....
2006 Aug 22
0
[LLVMdev] selecting select_cc
Hi Rafael, > I am trying to add support for select_cc. In ARM it can be implemented > with: > > mov $dst, $falseVal > cmp $a, $b > moveq $dst, $trueVal The more normal ARM code, as produced by assembly writers and compilers that I've seen, is cmp $a, $b moveq $dst, $trueVal movne $dst, $falseVal e.g. at the end of a function returning r0 orr r0, r0, #0x40 cmp r0, #0xfe moveq r0, #1 movne r0, #0 s...
2018 Apr 27
2
[DbgInfo] Potential bug in location list address ranges
...cmp r3, ip 8158: bne.n 8168 <foo+0x44> 815a: ldrb r1, [r1, #0] 815c: ldrb r3, [r4, #0] 815e: cmp r3, r1 8160: ittt eq 8162: moveq r0, #3 8164: strbeq r0, [r2, #0] 8166: moveq r0, #170 ; 0xaa 8168: pop {r4, r6, r7, pc} // a function return I have a variable *bar* and here's its corresponding DWARF DIE: <2><3b>: Abbrev...
2018 Apr 27
0
[DbgInfo] Potential bug in location list address ranges
...t; 8158: bne.n 8168 <foo+0x44> > > 815a: ldrb r1, [r1, #0] > 815c: ldrb r3, [r4, #0] > 815e: cmp r3, r1 > 8160: ittt eq > 8162: moveq r0, #3 > 8164: strbeq r0, [r2, #0] > 8166: moveq r0, #170 ; 0xaa > 8168: pop {r4, r6, r7, pc} // a function return > > I have a variable bar and here's its corresponding DWARF DIE: > &...
2018 Apr 27
2
[DbgInfo] Potential bug in location list address ranges
...cmp r3, ip 8158: bne.n 8168 <foo+0x44> 815a: ldrb r1, [r1, #0] 815c: ldrb r3, [r4, #0] 815e: cmp r3, r1 8160: ittt eq 8162: moveq r0, #3 8164: strbeq r0, [r2, #0] 8166: moveq r0, #170 ; 0xaa 8168: pop {r4, r6, r7, pc} // a function return I have a variable bar and here's its corresponding DWARF DIE: <2><3b>: Abbrev Nu...
2006 Jun 26
0
[klibc 23/43] cris support for klibc
.... +# +# See __static_init.c or __shared_init.c for the expected +# arguments. +# + + .text + .balign 4 + .type _start, at function + .globl _start +_start: + /* Save the address of the ELF argument array */ + move.d $sp,$r10 /* Address of ELF arguments */ + + /* atexit() function (assume null) */ + moveq 0,$r11 + + /* Set up a dummy stack frame to keep gcc from getting confused */ + push $r11 + push $r11 + jump __libc_init + + .size _start, .-_start diff --git a/usr/klibc/arch/cris/divide.c b/usr/klibc/arch/cris/divide.c new file mode 100644 index 0000000..1d4ab23 --- /dev/null +++ b/usr/klibc/arch...
2011 Jan 29
1
[PATCH] Re: klibc barfs on m68k syscall interface
...%d5 ++ ++ /* syscall is done, result in %d0, registers are restored */ ++ .globl __syscall_checkandout ++__syscall_checkandout: ++ /* now check for error */ ++ cmp.l #-4095, %d0 ++ bcs.l 1f /* jmp short if _not_ error */ ++ ++ /* prepare for error return */ + neg.l %d0 + move.l %d0, (errno) +- moveq #-1, %d0 +-1: +- movea.l %d0, %a0 /* Redundant return */ +- movem.l (%sp)+, %d2-%d6 /* Restore registers */ ++ move.l #-1, %d0 ++ /* fallthrough to common return path */ ++ ++1: /* copy return value to %a0 for syscalls returning pointers */ ++ move.l %d0, %a0 + rts + + .size __syscall_common,.-_...
2020 Apr 30
0
[klibc:master] arch: Remove cris port
.... -# -# See __static_init.c or __shared_init.c for the expected -# arguments. -# - - .text - .balign 4 - .type _start, at function - .globl _start -_start: - /* Save the address of the ELF argument array */ - move.d $sp,$r10 /* Address of ELF arguments */ - - /* atexit() function (assume null) */ - moveq 0,$r11 - - /* Set up a dummy stack frame to keep gcc from getting confused */ - push $r11 - push $r11 - jump __libc_init - - .size _start, .-_start diff --git a/usr/klibc/arch/cris/divide.c b/usr/klibc/arch/cris/divide.c deleted file mode 100644 index 1d4ab236..00000000 --- a/usr/klibc/arch/cris/di...
2018 May 07
2
[DbgInfo] Potential bug in location list address ranges
...; >> >> 815a: ldrb r1, [r1, #0] >> >> 815c: ldrb r3, [r4, #0] >> >> 815e: cmp r3, r1 >> >> 8160: ittt eq >> >> 8162: moveq r0, #3 >> >> 8164: strbeq r0, [r2, #0] >> >> 8166: moveq r0, #170 ; 0xaa >> >> 8168: pop {r4, r6, r7, pc} // a >> function return >> >> >> >>...
2018 Apr 27
0
[DbgInfo] Potential bug in location list address ranges
...bne.n 8168 <foo+0x44> > > > > 815a: ldrb r1, [r1, #0] > > 815c: ldrb r3, [r4, #0] > > 815e: cmp r3, r1 > > 8160: ittt eq > > 8162: moveq r0, #3 > > 8164: strbeq r0, [r2, #0] > > 8166: moveq r0, #170 ; 0xaa > > 8168: pop {r4, r6, r7, pc} // a > function return > > > > I have a variable *bar* and here's its c...
2012 Oct 02
2
[PATCH] fix ARM longjmp with zero 'val'.
...libc/arch/arm/setjmp.S +++ b/usr/klibc/arch/arm/setjmp.S @@ -40,10 +40,9 @@ setjmp: .type longjmp, #function longjmp: ldmia r0, {r4, r5, r6, r7, r8, r9, r10, fp, sp, lr} - mov r0, r1 - bne 1f - mov r0, #1 -1: BX(lr) + movs r0, r1 + moveq r0, #1 + BX(lr) .size longjmp,.-longjmp #else /* __thumb__ */
2011 Jan 29
0
[PATCH] Fix m68k syscall API and support 6-argument syscalls.
...ve.l (%sp)+, %d5 + + /* syscall is done, result in %d0, registers are restored */ + .globl __syscall_checkandout +__syscall_checkandout: + /* now check for error */ + cmp.l #-4095, %d0 + bcs.l 1f /* jmp short if _not_ error */ + + /* prepare for error return */ neg.l %d0 move.l %d0, (errno) - moveq #-1, %d0 -1: - movea.l %d0, %a0 /* Redundant return */ - movem.l (%sp)+, %d2-%d6 /* Restore registers */ + move.l #-1, %d0 + /* fallthrough to common return path */ + +1: /* copy return value to %a0 for syscalls returning pointers */ + move.l %d0, %a0 rts .size __syscall_common,.-__syscall_co...
2018 May 07
0
[DbgInfo] Potential bug in location list address ranges
...8168 <foo+0x44> > > > > 815a: ldrb r1, [r1, #0] > > 815c: ldrb r3, [r4, #0] > > 815e: cmp r3, r1 > > 8160: ittt eq > > 8162: moveq r0, #3 > > 8164: strbeq r0, [r2, #0] > > 8166: moveq r0, #170 ; 0xaa > > 8168: pop {r4, r6, r7, pc} // a function return > > > > I have a variable bar and here's its c...
2004 Jun 23
4
CRIS port of klibc
.../klibc/arch/cris/setjmp.S Wed Jun 23 09:59:57 2004 @@ -13,25 +13,25 @@ .text .balign 4 - .globl _setjmp - .type _setjmp, @function -_setjmp: + .globl setjmp + .type setjmp, @function +setjmp: movem $r8,[$r10+] /* Save $r8..$r0 at $r10... */ move.d $sp,[$r10+] move $srp,[$r10] ret moveq 0,$r10 - .size _setjmp,.-_setjmp + .size setjmp,.-setjmp .text .balign 4 - .globl _longjmp - .type _longjmp, @function -_longjmp: + .globl longjmp + .type longjmp, @function +longjmp: movem [$r10+],$r8 /* Load $r8..$r0 from $r10... */ move.d [$r10+],$sp jump [$r10] - move.d $r11,$r...
2006 Jun 26
0
[klibc 27/43] m68k support for klibc
...stack; the system call number in %d0. + */ + + .text + .align 2 + .globl __syscall_common + .type __syscall_common, @function +__syscall_common: + movem.l %d2-%d6, -(%sp) /* 5 registers saved */ + movem.l 24(%sp), %d1-%d6 + trap #0 + cmpi.l #-4095, %d0 + blt.l 1f + neg.l %d0 + move.l %d0, (errno) + moveq #-1, %d0 +1: + movea.l %d0, %a0 /* Redundant return */ + movem.l (%sp)+, %d2-%d6 /* Restore registers */ + rts + + .size __syscall_common,.-__syscall_common diff --git a/usr/klibc/arch/m68k/sysstub.ph b/usr/klibc/arch/m68k/sysstub.ph new file mode 100644 index 0000000..78c239d --- /dev/null +++ b/u...
2010 Oct 08
0
[LLVMdev] Flag output used by two other nodes in DAG
Hello, Edmund, > Is it, or should it be legal for a Flag output to be used as input by > more than one other node? It's illegal. Multiple uses of the flag output do not make any sense, this breaks the semantics of flag operands. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
2010 Oct 08
1
[LLVMdev] Flag output used by two other nodes in DAG
...instruction is to be used as input to two other instructions? For a concrete example, consider: int f(int x) { return x < 0 ? 11 : x == 0 ? 22 : 33; } I'd like this to turn into something like what I've seen from other compilers: cmp r0, #0 movlt r0, #11 bxlt lr movne r0, #33 moveq r0, #22 bx lr -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy...
2012 Apr 24
1
Attempting to boot into ramdisk on 8.3
...that makes a bootable ISO using a ramdisk image as the boot volume. At release 8 it panics right after reporting the real memory size with: kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode ... [thread pid 0 tid 0 ] Stopped at pmap_enter+0x19a: moveq (%rcx),%r14 (I have the text frozen on another screen if more data is needed, I've literally spent weeks trying to get this panic to appear on the screen so it's not going anywhere.) I build the world with this system without cross compiling. # uname -mrs FreeBSD 8.3-RC1 amd64 The sys...
2012 Oct 03
0
[klibc:master] [PATCH] fix ARM longjmp with zero 'val'.
...ibc/arch/arm/setjmp.S index 92ffc43..9f96274 100644 --- a/usr/klibc/arch/arm/setjmp.S +++ b/usr/klibc/arch/arm/setjmp.S @@ -40,10 +40,9 @@ setjmp: .type longjmp, #function longjmp: ldmia r0, {r4, r5, r6, r7, r8, r9, r10, fp, sp, lr} - mov r0, r1 - bne 1f - mov r0, #1 -1: BX(lr) + movs r0, r1 + moveq r0, #1 + BX(lr) .size longjmp,.-longjmp #else /* __thumb__ */
2019 Oct 25
2
Where and how to report an optimisation issue that doesn't cause a crash
<div dir='rtl'><div> <div dir="rtl"> <div dir="ltr">Could be... But the wierd thing here is if I change the array to be of size 256 and the index to be 'unsigned char', seems like there is no way to access the 'size' field throught "y->ptr[index]" (in your example) but clang still performs the re-read: <a