[llvm-commits] CVS: llvm/test/Programs/SingleSource/UnitTests/2003-05-26-Shorts.c
Vikram Adve
vadve at cs.uiuc.edu
Tue Jun 3 14:00:01 PDT 2003
Changes in directory llvm/test/Programs/SingleSource/UnitTests:
2003-05-26-Shorts.c updated: 1.2 -> 1.3
---
Log message:
Pull out constant to prevent constant folding.
---
Diffs of the changes:
Index: llvm/test/Programs/SingleSource/UnitTests/2003-05-26-Shorts.c
diff -u llvm/test/Programs/SingleSource/UnitTests/2003-05-26-Shorts.c:1.2 llvm/test/Programs/SingleSource/UnitTests/2003-05-26-Shorts.c:1.3
--- llvm/test/Programs/SingleSource/UnitTests/2003-05-26-Shorts.c:1.2 Fri May 30 00:14:24 2003
+++ llvm/test/Programs/SingleSource/UnitTests/2003-05-26-Shorts.c Tue Jun 3 13:59:34 2003
@@ -9,10 +9,16 @@
*/
#include <stdio.h>
+/* Move the value here to prevent constant folding */
+unsigned long long getL()
+{
+ return 0xafafafafc5c5b8a3ull;
+}
+
int
main(int argc, char** argv)
{
- unsigned long long UL = 0xafafafafc5c5b8a3ULL;
+ unsigned long long UL = getL(); /* 0xafafafafc5c5b8a3 */
long long L = (long long) UL;
unsigned int ui = (unsigned int) UL; /* 0xc5c5b8a3 = 3318069411 */
More information about the llvm-commits
mailing list