1 ; Check that the ADDIC optimizations are not applied on PPC64
2 ; RUN: llc -verify-machineinstrs < %s | FileCheck %s
3 ; ModuleID = 'os_unix.c'
4 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-v128:128:128-n32:64"
5 target triple = "powerpc64-unknown-freebsd9.0"
7 define i32 @notZero(i32 %call) nounwind {
10 %not.tobool = icmp ne i32 %call, 0
11 %. = zext i1 %not.tobool to i32
15 define i32 @isMinusOne(i32 %call) nounwind {
18 %not.tobool = icmp eq i32 %call, -1
19 %. = zext i1 %not.tobool to i32
23 define i32 @isNotMinusOne(i32 %call) nounwind {
26 %not.tobool = icmp ne i32 %call, -1
27 %. = zext i1 %not.tobool to i32