Testcase for PR1721

llvm-svn: 45739
This commit is contained in:
Chris Lattner 2008-01-08 05:16:29 +00:00
parent 812e1ea7cf
commit 184f79a5e1
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
// RUN: %llvmgcc %s -S -o - -O | grep {and.*8589934591}
// PR1721
struct s {
unsigned long long u33: 33;
} a, b;
// This should turn into a real 33-bit add, not a 64-bit add.
_Bool test(void) {
return a.u33 + b.u33 != 0;
}