diff options
| author | Nadav Rotem <nadav.rotem@intel.com> | 2011-06-14 13:23:10 +0000 |
|---|---|---|
| committer | Nadav Rotem <nadav.rotem@intel.com> | 2011-06-14 13:23:10 +0000 |
| commit | 0e230bc7bb63d7713bb94d3f9f31e4cf73894de6 (patch) | |
| tree | 2bf3ab756e10f60a26e959613b9ade78931385cc | |
| parent | 648788e7225e0b122ec258783556c9fbcbcbe7d8 (diff) | |
Add a testcase for #9623
llvm-svn: 132991
| -rw-r--r-- | llvm/test/CodeGen/X86/4char-promote.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/4char-promote.ll b/llvm/test/CodeGen/X86/4char-promote.ll new file mode 100644 index 000000000000..fd7b8c08b45f --- /dev/null +++ b/llvm/test/CodeGen/X86/4char-promote.ll @@ -0,0 +1,16 @@ +; A test for checking PR 9623 +;RUN: llc -march=x86-64 -promote-elements < %s | FileCheck %s + + +; CHECK: pmulld +; CHECK: paddd +; CHECK: movdqa + +define <4 x i8> @foo(<4 x i8> %x, <4 x i8> %y) { +entry: + %binop = mul <4 x i8> %x, %y + %binop6 = add <4 x i8> %binop, %x + ret <4 x i8> %binop6 +} + + |
