From: Simon Pilgrim Date: Wed, 19 Apr 2017 12:06:40 +0000 (+0000) Subject: Regenerate test. NFCI. X-Git-Tag: android-x86-7.1-r4~17535 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=83479b7405afbf02d3d82cb4cf9c57fa76e547c4;p=android-x86%2Fexternal-llvm.git Regenerate test. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300683 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/pr32686.ll b/test/Transforms/InstCombine/pr32686.ll index 7abda234920..b2d2aff2fde 100644 --- a/test/Transforms/InstCombine/pr32686.ll +++ b/test/Transforms/InstCombine/pr32686.ll @@ -1,17 +1,18 @@ +; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ; RUN: opt -S -instcombine %s | FileCheck %s -; CHECK-LABEL: define void @tinkywinky -; CHECK-NEXT: %patatino = load i8, i8* @a, align 1 -; CHECK-NEXT: %tobool = icmp eq i8 %patatino, 0 -; CHECK-NEXT: %1 = zext i1 %tobool to i32 -; CHECK-NEXT: %or1 = or i32 %1, or (i32 zext (i1 icmp ne (i32* bitcast (i8* @a to i32*), i32* @b) to i32), i32 2) -; CHECK-NEXT: store i32 %or1, i32* @b, align 4 -; CHECK-NEXT: ret void - @a = external global i8 @b = external global i32 define void @tinkywinky() { +; CHECK-LABEL: @tinkywinky( +; CHECK-NEXT: [[PATATINO:%.*]] = load i8, i8* @a, align 1 +; CHECK-NEXT: [[TOBOOL:%.*]] = icmp eq i8 [[PATATINO]], 0 +; CHECK-NEXT: [[TMP1:%.*]] = zext i1 [[TOBOOL]] to i32 +; CHECK-NEXT: [[OR1:%.*]] = or i32 [[TMP1]], or (i32 zext (i1 icmp ne (i32* bitcast (i8* @a to i32*), i32* @b) to i32), i32 2) +; CHECK-NEXT: store i32 [[OR1]], i32* @b, align 4 +; CHECK-NEXT: ret void +; %patatino = load i8, i8* @a %tobool = icmp ne i8 %patatino, 0 %lnot = xor i1 %tobool, true