diff options
| author | Shawn Landden <shawn@git.icu> | 2019-06-13 02:24:24 +0000 | 
|---|---|---|
| committer | Shawn Landden <shawn@git.icu> | 2019-06-13 02:24:24 +0000 | 
| commit | f93b99b2b6a429f020aca2ea8c503e7553f3777c (patch) | |
| tree | 3da484444848c18ab5bb7532d5c6b3e83e05d3ed /llvm/test/Transforms/SimplifyCFG/ARM/cttz-ctlz.ll | |
| parent | f3356722184362c2e99ad6590f26eacadb507377 (diff) | |
| download | bcm5719-llvm-f93b99b2b6a429f020aca2ea8c503e7553f3777c.tar.gz bcm5719-llvm-f93b99b2b6a429f020aca2ea8c503e7553f3777c.zip  | |
[SimplifyCFG] NFC, update Switch tests to HEAD so I can
see if my changes change anything
Also add baseline tests to show effect of later patches.
Differential Revision: https://reviews.llvm.org/D61150
llvm-svn: 363222
Diffstat (limited to 'llvm/test/Transforms/SimplifyCFG/ARM/cttz-ctlz.ll')
| -rw-r--r-- | llvm/test/Transforms/SimplifyCFG/ARM/cttz-ctlz.ll | 21 | 
1 files changed, 13 insertions, 8 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/ARM/cttz-ctlz.ll b/llvm/test/Transforms/SimplifyCFG/ARM/cttz-ctlz.ll index ffcf2175091..22f5e9f3cc1 100644 --- a/llvm/test/Transforms/SimplifyCFG/ARM/cttz-ctlz.ll +++ b/llvm/test/Transforms/SimplifyCFG/ARM/cttz-ctlz.ll @@ -1,11 +1,14 @@ +; NOTE: Assertions have been autogenerated by utils/update_test_checks.py  ; RUN: opt -S -simplifycfg -mtriple=arm -mattr=+v6t2 < %s | FileCheck %s  define i32 @ctlz(i32 %A) {  ; CHECK-LABEL: @ctlz( -; CHECK: [[ICMP:%[A-Za-z0-9]+]] = icmp eq i32 %A, 0 -; CHECK-NEXT: [[CTZ:%[A-Za-z0-9]+]] = tail call i32 @llvm.ctlz.i32(i32 %A, i1 true) -; CHECK-NEXT: [[SEL:%[A-Za-z0-9.]+]] = select i1 [[ICMP]], i32 32, i32 [[CTZ]] -; CHECK-NEXT: ret i32 [[SEL]] +; CHECK-NEXT:  entry: +; CHECK-NEXT:    [[TOBOOL:%.*]] = icmp eq i32 [[A:%.*]], 0 +; CHECK-NEXT:    [[TMP0:%.*]] = tail call i32 @llvm.ctlz.i32(i32 [[A]], i1 true) +; CHECK-NEXT:    [[SPEC_SELECT:%.*]] = select i1 [[TOBOOL]], i32 32, i32 [[TMP0]] +; CHECK-NEXT:    ret i32 [[SPEC_SELECT]] +;  entry:    %tobool = icmp eq i32 %A, 0    br i1 %tobool, label %cond.end, label %cond.true @@ -21,10 +24,12 @@ cond.end:  define i32 @cttz(i32 %A) {  ; CHECK-LABEL: @cttz( -; CHECK: [[ICMP:%[A-Za-z0-9]+]] = icmp eq i32 %A, 0 -; CHECK-NEXT: [[CTZ:%[A-Za-z0-9]+]] = tail call i32 @llvm.cttz.i32(i32 %A, i1 true) -; CHECK-NEXT: [[SEL:%[A-Za-z0-9.]+]] = select i1 [[ICMP]], i32 32, i32 [[CTZ]] -; CHECK-NEXT: ret i32 [[SEL]] +; CHECK-NEXT:  entry: +; CHECK-NEXT:    [[TOBOOL:%.*]] = icmp eq i32 [[A:%.*]], 0 +; CHECK-NEXT:    [[TMP0:%.*]] = tail call i32 @llvm.cttz.i32(i32 [[A]], i1 true) +; CHECK-NEXT:    [[SPEC_SELECT:%.*]] = select i1 [[TOBOOL]], i32 32, i32 [[TMP0]] +; CHECK-NEXT:    ret i32 [[SPEC_SELECT]] +;  entry:    %tobool = icmp eq i32 %A, 0    br i1 %tobool, label %cond.end, label %cond.true  | 

