Changes in directory llvm/test/Regression/CodeGen/PowerPC:
darwin-labels.ll added (r1.1.2.2) fp_to_uint.ll added (r1.1.4.2) mul-neg-power-2.ll added (r1.1.4.2) reg-coalesce-simple.ll added (r1.1.4.2) --- Log message: Merged mainline into Vector LLVM branch --- Diffs of the changes: (+38 -0) darwin-labels.ll | 8 ++++++++ fp_to_uint.ll | 9 +++++++++ mul-neg-power-2.ll | 9 +++++++++ reg-coalesce-simple.ll | 12 ++++++++++++ 4 files changed, 38 insertions(+) Index: llvm/test/Regression/CodeGen/PowerPC/darwin-labels.ll diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/darwin-labels.ll:1.1.2.2 *** /dev/null Wed Nov 16 12:33:30 2005 --- llvm/test/Regression/CodeGen/PowerPC/darwin-labels.ll Wed Nov 16 12:33:20 2005 *************** *** 0 **** --- 1,8 ---- + ; RUN: llvm-as < %s | llc | grep 'foo bar":' + + target endian = big + target pointersize = 32 + target triple = "powerpc-apple-darwin8.2.0" + + "foo bar" = global int 4 + Index: llvm/test/Regression/CodeGen/PowerPC/fp_to_uint.ll diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/fp_to_uint.ll:1.1.4.2 *** /dev/null Wed Nov 16 12:33:32 2005 --- llvm/test/Regression/CodeGen/PowerPC/fp_to_uint.ll Wed Nov 16 12:33:20 2005 *************** *** 0 **** --- 1,9 ---- + ; RUN: llvm-as < %s | llc -march=ppc32 | grep fctiwz | wc -l | grep 1 + + implementation + + ushort %foo(float %a) { + entry: + %tmp.1 = cast float %a to ushort + ret ushort %tmp.1 + } Index: llvm/test/Regression/CodeGen/PowerPC/mul-neg-power-2.ll diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/mul-neg-power-2.ll:1.1.4.2 *** /dev/null Wed Nov 16 12:33:32 2005 --- llvm/test/Regression/CodeGen/PowerPC/mul-neg-power-2.ll Wed Nov 16 12:33:20 2005 *************** *** 0 **** --- 1,9 ---- + ; RUN: llvm-as < %s | llc -march=ppc32 && + ; RUN: llvm-as < %s | llc -march=ppc32 | not grep mul + + int %test1(int %a) { + %tmp.1 = mul int %a, -2 ; <int> [#uses=1] + %tmp.2 = add int %tmp.1, 63 ; <int> [#uses=1] + ret int %tmp.2 + } + Index: llvm/test/Regression/CodeGen/PowerPC/reg-coalesce-simple.ll diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/reg-coalesce-simple.ll:1.1.4.2 *** /dev/null Wed Nov 16 12:33:32 2005 --- llvm/test/Regression/CodeGen/PowerPC/reg-coalesce-simple.ll Wed Nov 16 12:33:20 2005 *************** *** 0 **** --- 1,12 ---- + ; RUN: llvm-as < %s | llc -march=ppc32 && + ; RUN: llvm-as < %s | llc -march=ppc32 | not grep or + + %struct.foo = type { int, int, [0 x ubyte] } + int %test(%struct.foo* %X) { + %tmp1 = getelementptr %struct.foo* %X, int 0, uint 2, int 100 + %tmp = load ubyte* %tmp1 ; <ubyte> [#uses=1] + %tmp2 = cast ubyte %tmp to int ; <int> [#uses=1] + ret int %tmp2} + + + _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits