Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 690281 Details for
Bug 905862
gcc 4.8 regression: ‘asm’ operand has impossible constraints
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Preprocessed testcase
test.i (text/plain), 3.45 KB, created by
Sandro Mani
on 2013-01-30 10:47:32 UTC
(
hide
)
Description:
Preprocessed testcase
Filename:
MIME Type:
Creator:
Sandro Mani
Created:
2013-01-30 10:47:32 UTC
Size:
3.45 KB
patch
obsolete
># 1 "test.c" ># 1 "<command-line>" ># 1 "/usr/include/stdc-predef.h" 1 3 4 ># 1 "<command-line>" 2 ># 1 "test.c" ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.0/include/stdint.h" 1 3 4 ># 9 "/usr/lib/gcc/x86_64-redhat-linux/4.8.0/include/stdint.h" 3 4 ># 1 "/usr/include/stdint.h" 1 3 4 ># 25 "/usr/include/stdint.h" 3 4 ># 1 "/usr/include/features.h" 1 3 4 ># 375 "/usr/include/features.h" 3 4 ># 1 "/usr/include/sys/cdefs.h" 1 3 4 ># 385 "/usr/include/sys/cdefs.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 386 "/usr/include/sys/cdefs.h" 2 3 4 ># 376 "/usr/include/features.h" 2 3 4 ># 399 "/usr/include/features.h" 3 4 ># 1 "/usr/include/gnu/stubs.h" 1 3 4 ># 10 "/usr/include/gnu/stubs.h" 3 4 ># 1 "/usr/include/gnu/stubs-64.h" 1 3 4 ># 11 "/usr/include/gnu/stubs.h" 2 3 4 ># 400 "/usr/include/features.h" 2 3 4 ># 26 "/usr/include/stdint.h" 2 3 4 ># 1 "/usr/include/bits/wchar.h" 1 3 4 ># 22 "/usr/include/bits/wchar.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 23 "/usr/include/bits/wchar.h" 2 3 4 ># 27 "/usr/include/stdint.h" 2 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 28 "/usr/include/stdint.h" 2 3 4 ># 36 "/usr/include/stdint.h" 3 4 >typedef signed char int8_t; >typedef short int int16_t; >typedef int int32_t; > >typedef long int int64_t; > > > > > > > >typedef unsigned char uint8_t; >typedef unsigned short int uint16_t; > >typedef unsigned int uint32_t; > > > >typedef unsigned long int uint64_t; ># 65 "/usr/include/stdint.h" 3 4 >typedef signed char int_least8_t; >typedef short int int_least16_t; >typedef int int_least32_t; > >typedef long int int_least64_t; > > > > > > >typedef unsigned char uint_least8_t; >typedef unsigned short int uint_least16_t; >typedef unsigned int uint_least32_t; > >typedef unsigned long int uint_least64_t; ># 90 "/usr/include/stdint.h" 3 4 >typedef signed char int_fast8_t; > >typedef long int int_fast16_t; >typedef long int int_fast32_t; >typedef long int int_fast64_t; ># 103 "/usr/include/stdint.h" 3 4 >typedef unsigned char uint_fast8_t; > >typedef unsigned long int uint_fast16_t; >typedef unsigned long int uint_fast32_t; >typedef unsigned long int uint_fast64_t; ># 119 "/usr/include/stdint.h" 3 4 >typedef long int intptr_t; > > >typedef unsigned long int uintptr_t; ># 134 "/usr/include/stdint.h" 3 4 >typedef long int intmax_t; >typedef unsigned long int uintmax_t; ># 10 "/usr/lib/gcc/x86_64-redhat-linux/4.8.0/include/stdint.h" 2 3 4 ># 2 "test.c" 2 > > > > >static __inline__ int ASMBitFirstClear(const volatile void *pvBitmap, uint32_t cBits) >{ > if (cBits) > { > int32_t iBit; > uint64_t uEAX, uECX, uEDI; > > > __asm__ __volatile__("repe; scasl\n\t" > "je 1f\n\t" > "lea -4(%%rdi), %%rdi\n\t" > "xorl (%%rdi), %%eax\n\t" > "subq %5, %%rdi\n\t" > "shll $3, %%edi\n\t" > "bsfl %%eax, %%edx\n\t" > "addl %%edi, %%edx\n\t" > "1:\t\n" > : "=d" (iBit), > "=&c" (uECX), > "=&D" (uEDI), > "=&a" (uEAX) > : "0" (0xffffffff), > "mr" (pvBitmap), > "1" (cBits >> 5), > "2" (pvBitmap), > "3" (0xffffffff)); > return iBit; > } > return -1; >} > >void test(void) >{ > > > const int N = 128; > uint8_t a[N/8]; > ASMBitFirstClear(a, N); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 905862
: 690281