a4fcbb6048f58abf25db2459a9e4dd854df83280
[oota-llvm.git] / test / Transforms / BBVectorize / X86 / cmp-types.ll
1 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
2 target triple = "x86_64-unknown-linux-gnu"
3 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -bb-vectorize -S | FileCheck %s
4
5 %"struct.btSoftBody" = type { float, float, float*, i8 }
6
7 define void @test1(%"struct.btSoftBody"* %n1, %"struct.btSoftBody"* %n2) uwtable align 2 {
8 entry:
9   %tobool15 = icmp ne %"struct.btSoftBody"* %n1, null
10   %cond16 = zext i1 %tobool15 to i32
11   %tobool21 = icmp ne %"struct.btSoftBody"* %n2, null
12   %cond22 = zext i1 %tobool21 to i32
13   ret void
14 ; CHECK: @test1
15 }
16