search for: bswapl

Displaying 4 results from an estimated 4 matches for "bswapl".

Did you mean: bswap
2018 Nov 25
2
BUGS n code generated for target i386 compiling __bswapdi3, and for target x86-64 compiling __bswapsi2()
...erified via objdump that the my_bswap function contains the follow assembly which I believe matches the assembly you linked to on godbolt. _my_bswap: 1f70: 55 pushl %ebp 1f71: 89 e5 movl %esp, %ebp 1f73: 8b 55 08 movl 8(%ebp), %edx 1f76: 8b 45 0c movl 12(%ebp), %eax 1f79: 0f c8 bswapl %eax 1f7b: 0f ca bswapl %edx 1f7d: 5d popl %ebp 1f7e: c3 retl ~Craig On Sun, Nov 25, 2018 at 11:39 AM Stefan Kanthak <stefan.kanthak at nexgo.de> wrote: > "Craig Topper" <craig.topper at gmail.com> wrote: > > > bswapdi2 for i386 is correct > &gt...
2008 Jul 10
2
[PATCH] PV-GRUB: xfs support
...: "0" (x)); \ return x; } @@ -109,9 +109,9 @@ le16 (xfs_uint16_t x) static inline __const__ xfs_uint32_t le32 (xfs_uint32_t x) { -#if 0 +#if 1 /* 386 doesn''t have bswap. */ - __asm__("bswap %0" : "=r" (x) : "0" (x)); + __asm__("bswapl %k0" : "=r" (x) : "0" (x)); #else /* This is slower but this works on all x86 architectures. */ __asm__("xchgb %b0, %h0" \ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-de...
2011 Oct 13
2
[LLVMdev] Failed test: CodeGen/X86/bswap.ll
...| /usr/home/emeewis/build/llvm-debug-clang-configure/Debug+Asserts/bin/FileCheck /usr/home/emeewis/contrib/llvm/test/CodeGen/X86/bswap.ll -- Exit Code: 1 Command Output (stderr): -- /usr/home/emeewis/contrib/llvm/test/CodeGen/X86/bswap.ll:20:10: error: expected string not found in input ; CHECK: bswapl %eax ^ <stdin>:22:4: note: scanning from here X: # @X ^ <stdin>:26:12: note: possible intended match here movbel 4(%esp), %eax ^ --
2018 Nov 25
3
BUGS n code generated for target i386 compiling __bswapdi3, and for target x86-64 compiling __bswapsi2()
bswapdi2 for i386 is correct Bits 31:0 of the source are loaded into edx. Bits 63:32 are loaded into eax. Those are each bswapped. The ABI for the return is edx contains bits [63:32] and eax contains [31:0]. This is opposite of how the register were loaded. ~Craig On Sun, Nov 25, 2018 at 10:36 AM Craig Topper <craig.topper at gmail.com> wrote: > bswapsi2 on the x86-64 isn't using