| ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py |
| ; RUN: llc < %s -mtriple=i686-unknown -mattr=+sse2 | FileCheck %s --check-prefix=X86 |
| ; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+sse2 | FileCheck %s --check-prefix=X64 |
| ; Verify that we don't fail when shift by zero is encountered. |
| define i64 @test1(<2 x i64> %a) { |
| ; X86-NEXT: movd %xmm0, %eax |
| ; X86-NEXT: pshufd {{.*#+}} xmm0 = xmm0[1,1,1,1] |
| ; X86-NEXT: movd %xmm0, %edx |
| ; X64-NEXT: movq %xmm0, %rax |
| %c = shl <2 x i64> %a, <i64 0, i64 2> |
| %d = extractelement <2 x i64> %c, i32 0 |