Skip to content

Error: suffix or operands invalid for `sar' #3614

@regehr

Description

@regehr
Bugzilla Link 3242
Resolution FIXED
Resolved on Dec 20, 2008 11:22
Version unspecified
OS Linux
CC @sunfishcode

Extended Description

Seen using r61273 on Ubuntu Hardy on x86.

regehr@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@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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions