; RUN: llc < %s -march=x86    -mattr=+sse2,-avx | grep -i EDI
; RUN: llc < %s -march=x86-64 -mattr=+sse2,-avx | grep -i RDI
; RUN: llc < %s -march=x86    -mattr=+avx | grep -i EDI
; RUN: llc < %s -march=x86-64 -mattr=+avx | grep -i RDI
; rdar://6573467

define void @test(<16 x i8> %a, <16 x i8> %b, i32 %dummy, i8* %c) nounwind {
entry:
	tail call void @llvm.x86.sse2.maskmov.dqu( <16 x i8> %a, <16 x i8> %b, i8* %c )
	ret void
}

declare void @llvm.x86.sse2.maskmov.dqu(<16 x i8>, <16 x i8>, i8*) nounwind