summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/arm.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-04-09 19:54:33 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-04-09 19:54:33 +0000
commitdb42a3e876e1ff37a692380cc226cd155eda60cd (patch)
treea5deab7ede06195a3b2ba6a05f3185edbb843f18 /clang/test/CodeGenCXX/arm.cpp
parent96d2507e790a2bdbf84a1fa72f6555ec5ef66884 (diff)
downloadbcm5719-llvm-db42a3e876e1ff37a692380cc226cd155eda60cd.tar.gz
bcm5719-llvm-db42a3e876e1ff37a692380cc226cd155eda60cd.zip
Make sure we or together the overflow flags of the multiply and add, so the
check is triggered appropriately. Reported on cfe-dev. llvm-svn: 129231
Diffstat (limited to 'clang/test/CodeGenCXX/arm.cpp')
-rw-r--r--clang/test/CodeGenCXX/arm.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/arm.cpp b/clang/test/CodeGenCXX/arm.cpp
index 672ca010078..8d74d003c3d 100644
--- a/clang/test/CodeGenCXX/arm.cpp
+++ b/clang/test/CodeGenCXX/arm.cpp
@@ -117,7 +117,8 @@ namespace test3 {
// CHECK: [[N:%.*]] = load i32*
// CHECK: @llvm.umul.with.overflow.i32(i32 [[N]], i32 4)
// CHECK: @llvm.uadd.with.overflow.i32(i32 {{.*}}, i32 8)
- // CHECK: [[SZ:%.*]] = select
+ // CHECK: [[OR:%.*]] = or i1
+ // CHECK: [[SZ:%.*]] = select i1 [[OR]]
// CHECK: call noalias i8* @_Znam(i32 [[SZ]])
// CHECK: store i32 4
// CHECK: store i32 [[N]]
OpenPOWER on IntegriCloud