[llvm-commits] [llvm] r92110 - /llvm/trunk/test/FrontendC++/2009-12-23-MissingSext.cpp
Dale Johannesen
dalej at apple.com
Wed Dec 23 17:10:44 PST 2009
Author: johannes
Date: Wed Dec 23 19:10:43 2009
New Revision: 92110
URL: http://llvm.org/viewvc/llvm-project?rev=92110&view=rev
Log:
Testcase for llvm-gcc checkin 92108.
Added:
llvm/trunk/test/FrontendC++/2009-12-23-MissingSext.cpp
Added: llvm/trunk/test/FrontendC++/2009-12-23-MissingSext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2009-12-23-MissingSext.cpp?rev=92110&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/2009-12-23-MissingSext.cpp (added)
+++ llvm/trunk/test/FrontendC++/2009-12-23-MissingSext.cpp Wed Dec 23 19:10:43 2009
@@ -0,0 +1,16 @@
+// RUN: %llvmgxx %s -S -o - | FileCheck %s
+// The store of p.y into the temporary was not
+// getting extended to 32 bits, so uninitialized
+// bits of the temporary were used. 7366161.
+struct foo {
+ char x:8;
+ signed int y:24;
+};
+int bar(struct foo p, int x) {
+// CHECK: bar
+// CHECK: sext
+// CHECK: sext
+ x = (p.y > x ? x : p.y);
+ return x;
+// CHECK: return
+}
More information about the llvm-commits
mailing list