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/builtins-ppc-altivec.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/builtins-ppc-altivec.c')
-rw-r--r-- | clang/test/CodeGen/builtins-ppc-altivec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeGen/builtins-ppc-altivec.c b/clang/test/CodeGen/builtins-ppc-altivec.c index 1ffb05905af..4b9c3d5c422 100644 --- a/clang/test/CodeGen/builtins-ppc-altivec.c +++ b/clang/test/CodeGen/builtins-ppc-altivec.c @@ -428,13 +428,13 @@ int main () res_vus = vec_mladd(vus, vus, vus); // CHECK: mul <8 x i16> // CHECK: add <8 x i16> - res_vs = vec_mladd(vus, vs, vs); // CHECK: mul <8 x i16> + res_vs = vec_mladd(vus, vs, vs); // CHECK: mul nsw <8 x i16> // CHECK: add nsw <8 x i16> - res_vs = vec_mladd(vs, vus, vus); // CHECK: mul <8 x i16> + res_vs = vec_mladd(vs, vus, vus); // CHECK: mul nsw <8 x i16> // CHECK: add nsw <8 x i16> - res_vs = vec_mladd(vs, vs, vs); // CHECK: mul <8 x i16> + res_vs = vec_mladd(vs, vs, vs); // CHECK: mul nsw <8 x i16> // CHECK: add nsw <8 x i16> /* vec_mradds */ |