https://llvm.org/bugs/show_bug.cgi?id=24649
Bug ID: 24649 Summary: r244578 broke x86 codegen for -Oz Product: libraries Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Backend: X86 Assignee: unassignedb...@nondot.org Reporter: gli...@google.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified For the following testcase: $ cat compress.c static int zisofs_readpage() { struct page *pages[({ (1 << (*(unsigned char *)(0xfeedface)) ); } )]; return zisofs_uncompress_block(0, 0, 0, 0, pages, 0, 0); } int (*readpage)() = zisofs_readpage; Clang r244578 reports an error when compiling with -Oz and -no-integrated-as: $ clang -target x86_64-cros-linux-gnu -no-integrated-as -Oz -w -c compress.c /tmp/compress-1e6ca5.s: Assembler messages: /tmp/compress-1e6ca5.s:35: Error: operand type mismatch for `pop' /tmp/compress-1e6ca5.s:36: Error: operand type mismatch for `pop' clang-3.8: error: assembler command failed with exit code 1 (use -v to see invocation) The same testcase compiles fine with Clang r244577. It also compiles with r244578 if either -Oz or -no-integrated-as is removed from the command line. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs