Regenerate test. NFCI.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300683 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Simon Pilgrim 2017-04-19 12:06:40 +00:00
parent 4c9576b0d2
commit 83479b7405

View File

@ -1,17 +1,18 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -instcombine %s | FileCheck %s ; 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 @a = external global i8
@b = external global i32 @b = external global i32
define void @tinkywinky() { 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 %patatino = load i8, i8* @a
%tobool = icmp ne i8 %patatino, 0 %tobool = icmp ne i8 %patatino, 0
%lnot = xor i1 %tobool, true %lnot = xor i1 %tobool, true