diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-04-09 19:54:33 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-04-09 19:54:33 +0000 |
commit | db42a3e876e1ff37a692380cc226cd155eda60cd (patch) | |
tree | a5deab7ede06195a3b2ba6a05f3185edbb843f18 /clang/test/CodeGenCXX/arm.cpp | |
parent | 96d2507e790a2bdbf84a1fa72f6555ec5ef66884 (diff) | |
download | llvm-db42a3e876e1ff37a692380cc226cd155eda60cd.zip llvm-db42a3e876e1ff37a692380cc226cd155eda60cd.tar.gz llvm-db42a3e876e1ff37a692380cc226cd155eda60cd.tar.bz2 |
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.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/arm.cpp b/clang/test/CodeGenCXX/arm.cpp index 672ca01..8d74d00 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]] |