diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2016-05-15 18:05:10 +0000 | 
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2016-05-15 18:05:10 +0000 | 
| commit | ecdd13d7884827b1d92fae080083ecd5832b64f0 (patch) | |
| tree | 712da2662745463ace00a9d714e5af35d70b5dce /llvm/test | |
| parent | 8fe1b1fd4f536169d50f44b17f5f8d2048017995 (diff) | |
| download | bcm5719-llvm-ecdd13d7884827b1d92fae080083ecd5832b64f0.tar.gz bcm5719-llvm-ecdd13d7884827b1d92fae080083ecd5832b64f0.zip | |
regenerate checks
llvm-svn: 269596
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Transforms/SimplifyCFG/switch-masked-bits.ll | 26 | 
1 files changed, 16 insertions, 10 deletions
| diff --git a/llvm/test/Transforms/SimplifyCFG/switch-masked-bits.ll b/llvm/test/Transforms/SimplifyCFG/switch-masked-bits.ll index 692973c362b..ecd516519ab 100644 --- a/llvm/test/Transforms/SimplifyCFG/switch-masked-bits.ll +++ b/llvm/test/Transforms/SimplifyCFG/switch-masked-bits.ll @@ -1,10 +1,18 @@ +; NOTE: Assertions have been autogenerated by utils/update_test_checks.py  ; RUN: opt -S -simplifycfg < %s | FileCheck %s  define i32 @test1(i32 %x) nounwind { +; CHECK-LABEL: @test1( +; CHECK-NEXT:  a: +; CHECK-NEXT:    [[I:%.*]] = shl i32 %x, 1 +; CHECK-NEXT:    [[COND:%.*]] = icmp eq i32 [[I]], 24 +; CHECK-NEXT:    [[DOT:%.*]] = select i1 [[COND]], i32 5, i32 0 +; CHECK-NEXT:    ret i32 [[DOT]] +;    %i = shl i32 %x, 1    switch i32 %i, label %a [ -    i32 21, label %b -    i32 24, label %c +  i32 21, label %b +  i32 24, label %c    ]  a: @@ -13,18 +21,18 @@ b:    ret i32 3  c:    ret i32 5 -; CHECK-LABEL: @test1( -; CHECK: %cond = icmp eq i32 %i, 24 -; CHECK: %. = select i1 %cond, i32 5, i32 0 -; CHECK: ret i32 %.  }  define i32 @test2(i32 %x) nounwind { +; CHECK-LABEL: @test2( +; CHECK-NEXT:  a: +; CHECK-NEXT:    ret i32 0 +;    %i = shl i32 %x, 1    switch i32 %i, label %a [ -    i32 21, label %b -    i32 23, label %c +  i32 21, label %b +  i32 23, label %c    ]  a: @@ -33,6 +41,4 @@ b:    ret i32 3  c:    ret i32 5 -; CHECK-LABEL: @test2( -; CHECK: ret i32 0  } | 

