Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/CodeGen/PowerPC/ctrloop-lt.ll
; RUN: llc -verify-machineinstrs < %s | FileCheck %s | ; RUN: llc -verify-machineinstrs < %s | FileCheck %s | ||||
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" | 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" | ||||
target triple = "powerpc64-unknown-linux-gnu" | target triple = "powerpc64-unknown-linux-gnu" | ||||
; XFAIL: * | |||||
; SE needs improvement | |||||
; CHECK: test_pos1_ir_slt | ; CHECK: test_pos1_ir_slt | ||||
; CHECK: bdnz | ; CHECK: bdnz | ||||
; a < b | ; a < b | ||||
define void @test_pos1_ir_slt(i8* nocapture %p, i32 %a, i32 %b) nounwind { | define void @test_pos1_ir_slt(i8* nocapture %p, i32 %a, i32 %b) nounwind { | ||||
entry: | entry: | ||||
%cmp3 = icmp slt i32 8531, %b | %cmp3 = icmp slt i32 8531, %b | ||||
br i1 %cmp3, label %for.body.lr.ph, label %for.end | br i1 %cmp3, label %for.body.lr.ph, label %for.end | ||||
Show All 14 Lines | |||||
for.end: ; preds = %for.body, %entry | for.end: ; preds = %for.body, %entry | ||||
ret void | ret void | ||||
} | } | ||||
; CHECK: test_pos2_ir_slt | ; CHECK: test_pos2_ir_slt | ||||
; FIXME: Support this loop! | |||||
; CHECK: bdnz | ; CHECK: bdnz | ||||
; a < b | ; a < b | ||||
define void @test_pos2_ir_slt(i8* nocapture %p, i32 %a, i32 %b) nounwind { | define void @test_pos2_ir_slt(i8* nocapture %p, i32 %a, i32 %b) nounwind { | ||||
entry: | entry: | ||||
%cmp3 = icmp slt i32 9152, %b | %cmp3 = icmp slt i32 9152, %b | ||||
br i1 %cmp3, label %for.body.lr.ph, label %for.end | br i1 %cmp3, label %for.body.lr.ph, label %for.end | ||||
for.body.lr.ph: ; preds = %entry | for.body.lr.ph: ; preds = %entry | ||||
Show All 13 Lines | |||||
for.end: ; preds = %for.body, %entry | for.end: ; preds = %for.body, %entry | ||||
ret void | ret void | ||||
} | } | ||||
; CHECK: test_pos4_ir_slt | ; CHECK: test_pos4_ir_slt | ||||
; FIXME: Support this loop! | |||||
; CHECK: bdnz | ; CHECK: bdnz | ||||
; a < b | ; a < b | ||||
define void @test_pos4_ir_slt(i8* nocapture %p, i32 %a, i32 %b) nounwind { | define void @test_pos4_ir_slt(i8* nocapture %p, i32 %a, i32 %b) nounwind { | ||||
entry: | entry: | ||||
%cmp3 = icmp slt i32 18851, %b | %cmp3 = icmp slt i32 18851, %b | ||||
br i1 %cmp3, label %for.body.lr.ph, label %for.end | br i1 %cmp3, label %for.body.lr.ph, label %for.end | ||||
for.body.lr.ph: ; preds = %entry | for.body.lr.ph: ; preds = %entry | ||||
▲ Show 20 Lines • Show All 365 Lines • Show Last 20 Lines |