diff options
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/Hexagon/BranchPredict.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/Hexagon/adde.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/Hexagon/ctlz-cttz-ctpop.ll | 8 | ||||
| -rw-r--r-- | llvm/test/CodeGen/Hexagon/macint.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/Hexagon/newvaluejump2.ll | 17 | ||||
| -rw-r--r-- | llvm/test/CodeGen/Hexagon/sube.ll | 2 | 
6 files changed, 17 insertions, 16 deletions
diff --git a/llvm/test/CodeGen/Hexagon/BranchPredict.ll b/llvm/test/CodeGen/Hexagon/BranchPredict.ll index 0cd616b31a3..17d169974e5 100644 --- a/llvm/test/CodeGen/Hexagon/BranchPredict.ll +++ b/llvm/test/CodeGen/Hexagon/BranchPredict.ll @@ -1,4 +1,4 @@ -; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s +; RUN: llc -march=hexagon -ifcvt-limit=0 < %s | FileCheck %s  ; Check if the branch probabilities are reflected in the instructions:  ; The basic block placement pass should place the more probable successor diff --git a/llvm/test/CodeGen/Hexagon/adde.ll b/llvm/test/CodeGen/Hexagon/adde.ll index 5a8345c477c..7b29e7ad8a0 100644 --- a/llvm/test/CodeGen/Hexagon/adde.ll +++ b/llvm/test/CodeGen/Hexagon/adde.ll @@ -1,7 +1,7 @@  ; RUN: llc -march=hexagon -hexagon-expand-condsets=0 < %s | FileCheck %s -; CHECK: r{{[0-9]+:[0-9]+}} = #0  ; CHECK: r{{[0-9]+:[0-9]+}} = #1 +; CHECK: r{{[0-9]+:[0-9]+}} = #0  ; CHECK: r{{[0-9]+:[0-9]+}} = add(r{{[0-9]+:[0-9]+}}, r{{[0-9]+:[0-9]+}})  ; CHECK: p{{[0-9]+}} = cmp.gtu(r{{[0-9]+:[0-9]+}}, r{{[0-9]+:[0-9]+}})  ; CHECK: p{{[0-9]+}} = cmp.gtu(r{{[0-9]+:[0-9]+}}, r{{[0-9]+:[0-9]+}}) diff --git a/llvm/test/CodeGen/Hexagon/ctlz-cttz-ctpop.ll b/llvm/test/CodeGen/Hexagon/ctlz-cttz-ctpop.ll index e942f8d0c5d..b8f483298f8 100644 --- a/llvm/test/CodeGen/Hexagon/ctlz-cttz-ctpop.ll +++ b/llvm/test/CodeGen/Hexagon/ctlz-cttz-ctpop.ll @@ -1,8 +1,10 @@  ; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s -; CHECK: r{{[0-9]+}}:{{[0-9]+}} |= lsr(r{{[0-9]+}}:{{[0-9]+}}, #4) -; CHECK: r{{[0-9]+}}:{{[0-9]+}} &= lsr(r{{[0-9]+}}:{{[0-9]+}}, #2) -; CHECK: r{{[0-9]+}} += lsr(r{{[0-9]+}}, #4) +; CHECK-DAG: ct0({{r[0-9]*:[0-9]*}}) +; CHECK-DAG: cl0({{r[0-9]*:[0-9]*}}) +; CHECK-DAG: ct0({{r[0-9]*}}) +; CHECK-DAG: cl0({{r[0-9]*}}) +; CHECK-DAG: r{{[0-9]+}} += lsr(r{{[0-9]+}}, #4)  define i32 @foo(i64 %a, i32 %b) nounwind  {  entry: diff --git a/llvm/test/CodeGen/Hexagon/macint.ll b/llvm/test/CodeGen/Hexagon/macint.ll index 458a537467c..514ba5b9130 100644 --- a/llvm/test/CodeGen/Hexagon/macint.ll +++ b/llvm/test/CodeGen/Hexagon/macint.ll @@ -1,7 +1,7 @@  ; RUN: llc -march=hexagon -mcpu=hexagonv4  < %s | FileCheck %s  ; Check that we generate integer multiply accumulate. -; CHECK: r{{[0-9]+}} += mpyi(r{{[0-9]+}}, r{{[0-9]+}}) +; CHECK: r{{[0-9]+}} {{\+|\-}}= mpyi(r{{[0-9]+}},  define i32 @main(i32* %a, i32* %b) nounwind {    entry: diff --git a/llvm/test/CodeGen/Hexagon/newvaluejump2.ll b/llvm/test/CodeGen/Hexagon/newvaluejump2.ll index 36a0db16cfc..a812a7d9665 100644 --- a/llvm/test/CodeGen/Hexagon/newvaluejump2.ll +++ b/llvm/test/CodeGen/Hexagon/newvaluejump2.ll @@ -1,17 +1,16 @@ -; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s +; RUN: llc -march=hexagon -mcpu=hexagonv5 -disable-hexagon-misched < %s \ +; RUN:    | FileCheck %s  ; Check that we generate new value jump, both registers, with one   ; of the registers as new. -@Reg = common global i8 0, align 1 +@Reg = common global i32 0, align 4  define i32 @main() nounwind {  entry: -; CHECK: if (cmp.gt(r{{[0-9]+}}.new, r{{[0-9]+}})) jump:{{[t|nt]}} .LBB{{[0-9]+}}_{{[0-9]+}} -  %Reg2 = alloca i8, align 1 -  %0 = load i8, i8* %Reg2, align 1 -  %conv0 = zext i8 %0 to i32 -  %1 = load i8, i8* @Reg, align 1 -  %conv1 = zext i8 %1 to i32 -  %tobool = icmp sle i32 %conv0, %conv1 +; CHECK: if (cmp.gt(r{{[0-9]+}}, r{{[0-9]+}}.new)) jump:{{[t|nt]}} .LBB{{[0-9]+}}_{{[0-9]+}} +  %Reg2 = alloca i32, align 4 +  %0 = load i32, i32* %Reg2, align 4 +  %1 = load i32, i32* @Reg, align 4 +  %tobool = icmp sle i32 %0, %1    br i1 %tobool, label %if.then, label %if.else  if.then: diff --git a/llvm/test/CodeGen/Hexagon/sube.ll b/llvm/test/CodeGen/Hexagon/sube.ll index 1a7882276c8..873f52b2d5d 100644 --- a/llvm/test/CodeGen/Hexagon/sube.ll +++ b/llvm/test/CodeGen/Hexagon/sube.ll @@ -1,7 +1,7 @@  ; RUN: llc -march=hexagon -hexagon-expand-condsets=0 < %s | FileCheck %s -; CHECK: r{{[0-9]+:[0-9]+}} = #0  ; CHECK: r{{[0-9]+:[0-9]+}} = #1 +; CHECK: r{{[0-9]+:[0-9]+}} = #0  ; CHECK: p{{[0-9]+}} = cmp.gtu(r{{[0-9]+:[0-9]+}}, r{{[0-9]+:[0-9]+}})  ; CHECK: r{{[0-9]+}} = mux(p{{[0-9]+}}, r{{[0-9]+}}, r{{[0-9]+}})  ; CHECK: r{{[0-9]+}} = mux(p{{[0-9]+}}, r{{[0-9]+}}, r{{[0-9]+}})  | 

