From 447a9dd56e85ab09366f163f2e02bbd14241ee13 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 4 Jan 2007 22:22:07 +0000 Subject: [PATCH] new testcase llvm-svn: 32883 --- .../CodeGen/PowerPC/2007-01-04-ArgExtension.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 llvm/test/Regression/CodeGen/PowerPC/2007-01-04-ArgExtension.ll diff --git a/llvm/test/Regression/CodeGen/PowerPC/2007-01-04-ArgExtension.ll b/llvm/test/Regression/CodeGen/PowerPC/2007-01-04-ArgExtension.ll new file mode 100644 index 000000000000..70d5ad315868 --- /dev/null +++ b/llvm/test/Regression/CodeGen/PowerPC/2007-01-04-ArgExtension.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | llc | grep extsb && +; RUN: llvm-as < %s | llc | grep extsh + +define i32 %p1(i8 %c, i16 %s) { +entry: + %tmp = sext i8 %c to i32 ; [#uses=1] + %tmp1 = sext i16 %s to i32 ; [#uses=1] + %tmp2 = add i32 %tmp1, %tmp ; [#uses=1] + ret i32 %tmp2 +}