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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Seen using r61273 on Ubuntu Hardy on x86.

reg...@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'
reg...@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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to