diff options
author | Chris Lattner <sabre@nondot.org> | 2010-06-26 21:25:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-06-26 21:25:03 +0000 |
commit | 51924e517bd2d25faea6ef873db3c59ec4d09bf8 (patch) | |
tree | 7d971b3e55a000a23d28dac62cc985f20f05be06 /clang/test/CodeGen/extern-inline.c | |
parent | 217e056e409f51bc64a82334e72bed0f14a51270 (diff) | |
download | bcm5719-llvm-51924e517bd2d25faea6ef873db3c59ec4d09bf8.tar.gz bcm5719-llvm-51924e517bd2d25faea6ef873db3c59ec4d09bf8.zip |
Implement support for -fwrapv, rdar://7221421
As part of this, pull together trapv handling into the same enum.
This also add support for NSW multiplies.
This also makes PCH disagreement on overflow behavior silent, since it
really doesn't matter except for warnings and codegen (no macros get
defined etc).
llvm-svn: 106956
Diffstat (limited to 'clang/test/CodeGen/extern-inline.c')
-rw-r--r-- | clang/test/CodeGen/extern-inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGen/extern-inline.c b/clang/test/CodeGen/extern-inline.c index 5dd9bfda574..60f6d034bf1 100644 --- a/clang/test/CodeGen/extern-inline.c +++ b/clang/test/CodeGen/extern-inline.c @@ -19,7 +19,7 @@ int g2(void) {return f2(0,1);} static int f2(int a, int b) {return a*b;} // CHECK: load i32* %{{.*}} // CHECK: load i32* %{{.*}} -// CHECK: mul i32 %{{.*}}, %{{.*}} +// CHECK: mul nsw i32 %{{.*}}, %{{.*}} int h2(void) {return f2(1,2);} // CHECK: call i32 @f2 |