[llvm-commits] [llvm] r79949 - in /llvm/trunk: lib/Target/CellSPU/SPUISelDAGToDAG.cpp lib/Target/CellSPU/SPUISelLowering.cpp lib/Target/CellSPU/SPUISelLowering.h lib/Target/CellSPU/SPUNodes.td test/CodeGen/CellSPU/sext128.ll
Chris Lattner
clattner at apple.com
Mon Aug 24 15:30:29 PDT 2009
On Aug 24, 2009, at 3:28 PM, Scott Michel wrote:
> Author: pingbak
> Date: Mon Aug 24 17:28:53 2009
> New Revision: 79949
>
> URL: http://llvm.org/viewvc/llvm-project?rev=79949&view=rev
> Log:
> 128-bit sign extension and vector shift cleanups, contributed by Ken
> Werner
> (IBM).
Nice!
> +++ llvm/trunk/test/CodeGen/CellSPU/sext128.ll Mon Aug 24 17:28:53
> 2009
> @@ -0,0 +1,17 @@
> +; RUN: llvm-as -o - %s | llc -march=cellspu > %t1.s
Please use FileCheck instead of grep for tests like this, they are
more specific and run faster.
http://llvm.org/docs/TestingGuide.html#FileCheck
-Chris
> +; RUN: grep {long.*269488144} %t1.s | count 2
> +; RUN: grep {long.*16909060} %t1.s | count 1
> +; RUN: grep {long.*84281096} %t1.s | count 1
> +; RUN: grep {rotmai} %t1.s | count 1
> +; RUN: grep {lqa} %t1.s | count 1
> +; RUN: grep {shufb} %t1.s | count 1
> +
> +; ModuleID = 'sext128.bc'
> +target datalayout = "E-p:32:32:128-i1:8:128-i8:8:128-i16:16:128-
> i32:32:128-i64:32:128-f32:32:128-f64:64:128-v64:128:128-v128:128:128-
> a0:0:128-s0:128:128"
> +target triple = "spu"
> +
> +define i128 @sext_i64_i128(i64 %a) {
> +entry:
> + %0 = sext i64 %a to i128
> + ret i128 %0
> +}
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list