diff options
author | Nadav Rotem <nadav.rotem@intel.com> | 2011-06-15 12:26:53 +0000 |
---|---|---|
committer | Nadav Rotem <nadav.rotem@intel.com> | 2011-06-15 12:26:53 +0000 |
commit | 24c65588653b6cf6d14555bc1b15f17f88f29ac0 (patch) | |
tree | 2d7dca21a11c050cd8cf77f91996e3178df63187 /llvm/test/CodeGen/X86/4char-promote.ll | |
parent | d2d9bdb2b0e8e88349a8d83182f155aa901ff203 (diff) | |
download | bcm5719-llvm-24c65588653b6cf6d14555bc1b15f17f88f29ac0.tar.gz bcm5719-llvm-24c65588653b6cf6d14555bc1b15f17f88f29ac0.zip |
This test was failing on X86 machines which do not have SSE4. Fixed the test by
specifying that the target CPU is corei7.
llvm-svn: 133053
Diffstat (limited to 'llvm/test/CodeGen/X86/4char-promote.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/4char-promote.ll | 17 |
1 files changed, 17 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 00000000000..386057f0a3b --- /dev/null +++ b/llvm/test/CodeGen/X86/4char-promote.ll @@ -0,0 +1,17 @@ +; A test for checking PR 9623 +;RUN: llc -march=x86-64 -mcpu=corei7 -promote-elements < %s | FileCheck %s + +target triple = "x86_64-apple-darwin" + +; 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 +} + + |