diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/CellSPU/icmp16.ll | 14 | ||||
-rw-r--r-- | test/CodeGen/CellSPU/icmp32.ll | 4 | ||||
-rw-r--r-- | test/CodeGen/CellSPU/icmp8.ll | 15 |
3 files changed, 26 insertions, 7 deletions
diff --git a/test/CodeGen/CellSPU/icmp16.ll b/test/CodeGen/CellSPU/icmp16.ll index 4dc0ad8..bace031 100644 --- a/test/CodeGen/CellSPU/icmp16.ll +++ b/test/CodeGen/CellSPU/icmp16.ll @@ -1,4 +1,14 @@ ; RUN: llvm-as -o - %s | llc -march=cellspu > %t1.s +; RUN: grep ilh %t1.s | count 5 +; RUN: grep ceqh %t1.s | count 29 +; RUN: grep ceqhi %t1.s | count 13 +; RUN: grep clgth %t1.s | count 15 +; RUN: grep cgth %t1.s | count 14 +; RUN: grep cgthi %t1.s | count 6 +; RUN: grep {selb\t\\\$3, \\\$6, \\\$5, \\\$3} %t1.s | count 7 +; RUN: grep {selb\t\\\$3, \\\$5, \\\$6, \\\$3} %t1.s | count 3 +; RUN: grep {selb\t\\\$3, \\\$5, \\\$4, \\\$3} %t1.s | count 17 +; RUN: grep {selb\t\\\$3, \\\$4, \\\$5, \\\$3} %t1.s | count 6 target datalayout = "E-p:32:32:128-f64:64:128-f32:32:128-i64:32:128-i32:32:128-i16:16:128-i8:8:128-i1:8:128-a0:0:128-v128:128:128-s0:128:128" target triple = "spu" @@ -113,14 +123,14 @@ entry: define i16 @icmp_ugt_immed01_i16(i16 %arg1, i16 %val1, i16 %val2) nounwind { entry: - %A = icmp ugt i16 %arg1, 511 + %A = icmp ugt i16 %arg1, 500 %B = select i1 %A, i16 %val1, i16 %val2 ret i16 %B } define i16 @icmp_ugt_immed02_i16(i16 %arg1, i16 %val1, i16 %val2) nounwind { entry: - %A = icmp ugt i16 %arg1, 65534 + %A = icmp ugt i16 %arg1, 0 %B = select i1 %A, i16 %val1, i16 %val2 ret i16 %B } diff --git a/test/CodeGen/CellSPU/icmp32.ll b/test/CodeGen/CellSPU/icmp32.ll index 0a7f1f5c..4f74b0d 100644 --- a/test/CodeGen/CellSPU/icmp32.ll +++ b/test/CodeGen/CellSPU/icmp32.ll @@ -1,9 +1,9 @@ ; RUN: llvm-as -o - %s | llc -march=cellspu > %t1.s ; RUN: grep ila %t1.s | count 6 ; RUN: grep ceq %t1.s | count 28 -; RUN: grep ceqi %t1.s | count 11 +; RUN: grep ceqi %t1.s | count 12 ; RUN: grep clgt %t1.s | count 16 -; RUN: grep clgti %t1.s | count 5 +; RUN: grep clgti %t1.s | count 6 ; RUN: grep cgt %t1.s | count 16 ; RUN: grep cgti %t1.s | count 6 ; RUN: grep {selb\t\\\$3, \\\$6, \\\$5, \\\$3} %t1.s | count 7 diff --git a/test/CodeGen/CellSPU/icmp8.ll b/test/CodeGen/CellSPU/icmp8.ll index fd556d0..d246481 100644 --- a/test/CodeGen/CellSPU/icmp8.ll +++ b/test/CodeGen/CellSPU/icmp8.ll @@ -1,4 +1,13 @@ ; RUN: llvm-as -o - %s | llc -march=cellspu > %t1.s +; RUN: grep ceqb %t1.s | count 24 +; RUN: grep ceqbi %t1.s | count 12 +; RUN: grep clgtb %t1.s | count 11 +; RUN: grep cgtb %t1.s | count 13 +; RUN: grep cgtbi %t1.s | count 5 +; RUN: grep {selb\t\\\$3, \\\$6, \\\$5, \\\$3} %t1.s | count 7 +; RUN: grep {selb\t\\\$3, \\\$5, \\\$6, \\\$3} %t1.s | count 3 +; RUN: grep {selb\t\\\$3, \\\$5, \\\$4, \\\$3} %t1.s | count 11 +; RUN: grep {selb\t\\\$3, \\\$4, \\\$5, \\\$3} %t1.s | count 4 target datalayout = "E-p:32:32:128-f64:64:128-f32:32:128-i64:32:128-i32:32:128-i16:16:128-i8:8:128-i1:8:128-a0:0:128-v128:128:128-s0:128:128" target triple = "spu" @@ -184,7 +193,7 @@ entry: define i8 @icmp_sgt_immed01_i8(i8 %arg1, i8 %val1, i8 %val2) nounwind { entry: - %A = icmp sgt i8 %arg1, 127 + %A = icmp sgt i8 %arg1, 96 %B = select i1 %A, i8 %val1, i8 %val2 ret i8 %B } @@ -237,14 +246,14 @@ entry: define i8 @icmp_slt_immed01_i8(i8 %arg1, i8 %val1, i8 %val2) nounwind { entry: - %A = icmp slt i8 %arg1, 127 + %A = icmp slt i8 %arg1, 96 %B = select i1 %A, i8 %val1, i8 %val2 ret i8 %B } define i8 @icmp_slt_immed02_i8(i8 %arg1, i8 %val1, i8 %val2) nounwind { entry: - %A = icmp slt i8 %arg1, -128 + %A = icmp slt i8 %arg1, -120 %B = select i1 %A, i8 %val1, i8 %val2 ret i8 %B } |