From 003e68e442d423c3d8867af7b063a67fb1deb21a Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Wed, 13 Apr 2005 04:41:06 +0000 Subject: [PATCH] added s4addl matching test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21277 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/Alpha/s4addl.ll | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/CodeGen/Alpha/s4addl.ll diff --git a/test/CodeGen/Alpha/s4addl.ll b/test/CodeGen/Alpha/s4addl.ll new file mode 100644 index 00000000000..1a92d63fb84 --- /dev/null +++ b/test/CodeGen/Alpha/s4addl.ll @@ -0,0 +1,14 @@ +; Make sure this testcase codegens to the bic instruction +; RUN: llvm-as < %s | llc -march=alpha | grep 's4addl' + +; ModuleID = 'test.o' +deplibs = [ "c", "crtend" ] + +implementation ; Functions: + +int %foo(int %x, int %y) { +entry: + %tmp.1 = shl int %y, ubyte 2 ; [#uses=1] + %tmp.3 = add int %tmp.1, %x ; [#uses=1] + ret int %tmp.3 +}