summaryrefslogtreecommitdiffstats
path: root/llvm/test/FrontendC/2010-07-27-MinNoFoldConst.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-07-26 23:49:39 +0000
committerEric Christopher <echristo@apple.com>2011-07-26 23:49:39 +0000
commit44817320155b0f68c3c5c8aa793cc203edcfc7ea (patch)
treef269da111298fa66bb80dfd11085ff4024fabada /llvm/test/FrontendC/2010-07-27-MinNoFoldConst.c
parentfbcce6fba31fa8ae689e99358e25f6a736aee286 (diff)
downloadbcm5719-llvm-44817320155b0f68c3c5c8aa793cc203edcfc7ea.tar.gz
bcm5719-llvm-44817320155b0f68c3c5c8aa793cc203edcfc7ea.zip
Remove test/FrontendC, almost all of the tests have been migrated
to clang now, the rest are in process (6) or have been deleted. llvm-svn: 136191
Diffstat (limited to 'llvm/test/FrontendC/2010-07-27-MinNoFoldConst.c')
-rw-r--r--llvm/test/FrontendC/2010-07-27-MinNoFoldConst.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/llvm/test/FrontendC/2010-07-27-MinNoFoldConst.c b/llvm/test/FrontendC/2010-07-27-MinNoFoldConst.c
deleted file mode 100644
index ea711e5dddc..00000000000
--- a/llvm/test/FrontendC/2010-07-27-MinNoFoldConst.c
+++ /dev/null
@@ -1,18 +0,0 @@
-// RUN: %llvmgcc -S %s -o - | FileCheck %s
-extern int printf(const char *, ...);
-static void bad(unsigned int v1, unsigned int v2) {
- printf("%u\n", 1631381461u * (((v2 - 1273463329u <= v1 - 1273463329u) ? v2 : v1) - 1273463329u) + 121322179u);
-}
-// Radar 8198362
-// GCC FE wants to convert the above to
-// 1631381461u * MIN(v2 - 1273463329u, v1 - 1273463329u)
-// and then to
-// MIN(1631381461u * v2 - 4047041419, 1631381461u * v1 - 4047041419)
-//
-// 1631381461u * 1273463329u = 2077504466193943669, but 32-bit overflow clips
-// this to 4047041419. This breaks the comparison implicit in the MIN().
-// Two multiply operations suggests the bad optimization is happening;
-// one multiplication, after the MIN(), is correct.
-// CHECK: mul
-// CHECK-NOT: mul
-// CHECK: ret
OpenPOWER on IntegriCloud