diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-10-31 21:40:39 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-10-31 21:40:39 +0000 |
commit | e57b2cbce652d45ed5516e52ad82991bfa03cfd7 (patch) | |
tree | ebb28b57979f57cddc2f7172f559c5981005ad09 /test/Transforms/LoopVectorize/gcc-examples.ll | |
parent | 0dba9a9a26f45119a82200d1db37b734b3e1bb22 (diff) |
LoopVectorize: Preserve NSW, NUW and IsExact flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167174 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LoopVectorize/gcc-examples.ll')
-rw-r--r-- | test/Transforms/LoopVectorize/gcc-examples.ll | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Transforms/LoopVectorize/gcc-examples.ll b/test/Transforms/LoopVectorize/gcc-examples.ll index d8942ac861..fce29d2404 100644 --- a/test/Transforms/LoopVectorize/gcc-examples.ll +++ b/test/Transforms/LoopVectorize/gcc-examples.ll @@ -21,7 +21,7 @@ target triple = "x86_64-apple-macosx10.8.0" ;CHECK: @example1 ;CHECK: load <4 x i32> -;CHECK: add <4 x i32> +;CHECK: add nsw <4 x i32> ;CHECK: store <4 x i32> ;CHECK: ret void define void @example1() nounwind uwtable ssp { @@ -227,6 +227,8 @@ define i32 @example9() nounwind uwtable readonly ssp { } ;CHECK: @example10a +;CHECK: load <4 x i32> +;CHECK: add nsw <4 x i32> ;CHECK: load <4 x i16> ;CHECK: add <4 x i16> ;CHECK: store <4 x i16> |