[LLVMbugs] [Bug 3242] New: Error: suffix or operands invalid for `sar'

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Dec 20 07:55:21 PST 2008


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

           Summary: Error: suffix or operands invalid for `sar'
           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


Seen using r61273 on Ubuntu Hardy on x86.

regehr at john-home:~/volatile/tmp79$ llvm-gcc -O0 small.c
small.c: In function ‘func_105’:
small.c:23: warning: right shift count >= width of type
/tmp/ccOHrIz8.s: Assembler messages:
/tmp/ccOHrIz8.s:36: Error: suffix or operands invalid for `sar'
regehr at john-home:~/volatile/tmp79$ cat small.c
typedef char int8_t;
typedef int int32_t;
typedef char uint32_t;
uint32_t
func_105 (int32_t p_106)
{
  1, func_51 (1) || 0x5296D32418DFC5AELL
    && 0x5296D32418DFC5AELL > +0x5296D32418DFC5AELL
    && -9223372036854775807LL - 1 + 0x5296D32418DFC5AELL
    || 0x5296D32418DFC5AELL && 0x5296D32418DFC5AELL < +0x5296D32418DFC5AELL
    && 0x5296D32418DFC5AELL <
    +0x5296D32418DFC5AELL ? : 0x5296D32418DFC5AELL * 0 >=
    sizeof (int8_t) * 8 ? 1 : p_106 >> (0x5296D32418DFC5AELL
                                        && 0x5296D32418DFC5AELL >
                                        +0x5296D32418DFC5AELL
                                        && +0x5296D32418DFC5AELL
                                        || 0x5296D32418DFC5AELL
                                        && 0x5296D32418DFC5AELL <
                                        +0x5296D32418DFC5AELL
                                        && 0x5296D32418DFC5AELL <
                                        +0x5296D32418DFC5AELL ?
                                        0x5296D32418DFC5AELL :
                                        0x5296D32418DFC5AELL), 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