Author: lattner
Date: Mon Jan 7 23:16:29 2008
New Revision: 45739
URL: http://llvm.org/viewvc/llvm-project?rev=45739&view=rev
Log:
Testcase for PR1721
Added:
llvm/trunk/test/CFrontend/2008-01-07-UnusualIntSize.c
Added: llvm/trunk/test/CFrontend/2008-01-07-UnusualIntSize.c
URL:
http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2008-01-07-UnusualIntSize.c?rev=45739&view=auto
==============================================================================
--- llvm/trunk/test/CFrontend/2008-01-07-UnusualIntSize.c (added)
+++ llvm/trunk/test/CFrontend/2008-01-07-UnusualIntSize.c Mon Jan 7 23:16:29
2008
@@ -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;
+}
_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits