[LLVMbugs] [Bug 2681] New: bad asm generated

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Aug 14 20:53:40 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2681

           Summary: bad asm generated
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu


This is seen on Ubuntu Hardy on ia32 using r54810.

regehr at john-home:~/volatile/tmp5$ clang small.c --emit-llvm -o - 2>/dev/null |
llvm-as | llc | as -o foo.o
{standard input}: Assembler messages:
{standard input}:37: Error: suffix or operands invalid for `mov'


regehr at john-home:~/volatile/tmp5$ cat small.c
typedef short int int16_t;
typedef int int32_t;
__extension__ typedef long long int int64_t;
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
int32_t g_491;
uint8_t g_676;
int32_t g_678;
int16_t g_897;
uint16_t g_1105;
int32_t func_18 (uint16_t p_19, uint16_t p_20, uint16_t p_21, uint16_t p_22,
                 uint8_t p_23, int64_t p_25, int32_t p_27, uint16_t p_28,
                 int64_t p_29, uint8_t p_31);
int32_t
func_7 (int16_t p_9)
{
  uint16_t l_13;
  uint8_t l_1100;
  int16_t l_1103;
  uint8_t l_1104;
  int16_t l_1109;
  int32_t l_1112;
  uint16_t l_1114;
  int32_t l_1118;
  uint8_t l_1121;
  int16_t l_1122;
  int32_t l_1123;
  uint8_t l_1124;
  uint8_t l_1127;
  int32_t l_1128;
  int32_t l_1129;
  int32_t l_1130;
  if (func_10
      ((func_18
        (1, 1, 3L, 1, l_1100, 0x1F66FCA5L, 1, l_1103,
         func_18 (l_1104, 1, 1, 1, 1, l_1114, 1, l_1112,
                  func_18 (1, l_1118, g_678, 1, l_1121, p_9,
                           (lshift_u_s (1), 1), ((l_1122 ^ p_9) | l_1123),
                           func_18 (l_1124, p_9, p_9, 1, l_13, g_1105, 1, p_9,
                                    func_18 (l_1127, g_676, g_897, g_491,
                                             l_1109, l_1128, p_9, l_1129,
                                             l_1130, 1), 1), 1), 1), 1)), 1))
    {
    }
}


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list