[LLVMbugs] [Bug 17163] New: fatal error: error in backend: Cannot select: 0x344cf50: i8, ch = AtomicSwap

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Sep 8 22:31:43 PDT 2013


            Bug ID: 17163
           Summary: fatal error: error in backend: Cannot select:
                    0x344cf50: i8,ch = AtomicSwap
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: simmons.44 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11168
  --> http://llvm.org/bugs/attachment.cgi?id=11168&action=edit
Preprocessed Source

__c11_atomic_xxx operations fail to compile when attempted on a file scope
static variable. Preprocessed source attached.

llc output:
atomic store operand must be power-of-two byte-sized integer
  store atomic i1 true, i1* @test release, align 1
 i1Broken module found, compilation aborted!
0  libLLVM-3.3.so  0x00007fdbe34ad112 llvm::sys::PrintStackTrace(_IO_FILE*) +
1  libLLVM-3.3.so  0x00007fdbe34acf79
2  libpthread.so.0 0x00007fdbe25b2870
3  libc.so.6       0x00007fdbe1f2a3d9 gsignal + 57
4  libc.so.6       0x00007fdbe1f2b7d8 abort + 328
5  libLLVM-3.3.so  0x00007fdbe2d06f01
6  libLLVM-3.3.so  0x00007fdbe2d0efb5
7  libLLVM-3.3.so  0x00007fdbe2cf1a57
llvm::FPPassManager::runOnFunction(llvm::Function&) + 471
8  libLLVM-3.3.so  0x00007fdbe2cf1aeb
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
9  libLLVM-3.3.so  0x00007fdbe2cf1d1b
llvm::MPPassManager::runOnModule(llvm::Module&) + 523
10 libLLVM-3.3.so  0x00007fdbe2cf3cfc llvm::PassManagerImpl::run(llvm::Module&)
+ 172
11 llc             0x000000000040cdb4
12 llc             0x000000000040bdc8 main + 376
13 libc.so.6       0x00007fdbe1f16bc5 __libc_start_main + 245
14 llc             0x000000000040be21
Stack dump:
0.    Program arguments: llc atomic_test.ll 
1.    Running pass 'Function Pass Manager' on module 'atomic_test.ll'.
2.    Running pass 'Module Verifier' on function '@main'

clang output:

fatal error: error in backend: Cannot select: 0x344cf50: i8,ch = AtomicSwap
      0x344d150, 0x3449f80<Volatile ST1[@test]> [ID=28]
  0x344d150: i64 = X86ISD::Wrapper 0x344d450 [ID=19]
    0x344d450: i64 = TargetGlobalAddress<i1* @test> 0 [ID=16]
  0x3449f80: i8 = Constant<1> [ORD=3] [ID=15]
In function: main
clang: error: clang frontend command failed with exit code 70 (use -v to see
clang version 3.3 (tags/RELEASE_33/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix

clang invocation:

clang -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free
-disable-llvm-verifier -main-file-name atomic_test.c -mrelocation-model static
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -target-linker-version 2.23.2
-momit-leaf-frame-pointer -O2 -Wall -Wextra -std=c11 -ferror-limit 19
-fmessage-length 90 -pthread -mstackrealign -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fdiagnostics-show-option
-fcolor-diagnostics -backend-option -vectorize-loops -x c atomic_test-rjAMdm.c

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130909/c90665d4/attachment.html>

More information about the llvm-bugs mailing list