30 lines · plain
1; Check that the ADDIC optimizations are not applied on PPC642; RUN: llc -verify-machineinstrs < %s | FileCheck %s3; ModuleID = 'os_unix.c'4target 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"5target triple = "powerpc64-unknown-freebsd9.0"6 7define i32 @notZero(i32 %call) nounwind {8entry:9; CHECK-NOT: addic10 %not.tobool = icmp ne i32 %call, 011 %. = zext i1 %not.tobool to i3212 ret i32 %.13}14 15define i32 @isMinusOne(i32 %call) nounwind {16entry:17; CHECK-NOT: addic18 %not.tobool = icmp eq i32 %call, -119 %. = zext i1 %not.tobool to i3220 ret i32 %.21}22 23define i32 @isNotMinusOne(i32 %call) nounwind {24entry:25; CHECK-NOT: addic26 %not.tobool = icmp ne i32 %call, -127 %. = zext i1 %not.tobool to i3228 ret i32 %.29}30