blob: 377875565bf8b343c0e860e7082a72d54bd208b0 [file] [log] [blame]
Jakob Stoklund Olesenb0e47cd2011-04-05 00:32:44 +00001; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
2; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s
3; RUN: llc < %s -march=x86 -mattr=-sse2 | FileCheck %s
4; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s
Chris Lattner149a4e52008-02-22 02:09:43 +00005
6; This test should use GPRs to copy the mmx value, not MMX regs. Using mmx regs,
7; increases the places that need to use emms.
Jakob Stoklund Olesenb0e47cd2011-04-05 00:32:44 +00008; CHECK-NOT: %mm
9; CHECK-NOT: emms
Chris Lattner149a4e52008-02-22 02:09:43 +000010; rdar://5741668
Chris Lattner149a4e52008-02-22 02:09:43 +000011
Chris Lattnerd2b1fb22008-02-22 05:18:04 +000012define void @foo(<1 x i64>* %x, <1 x i64>* %y) nounwind {
Chris Lattner149a4e52008-02-22 02:09:43 +000013entry:
14 %tmp1 = load <1 x i64>* %y, align 8 ; <<1 x i64>> [#uses=1]
15 store <1 x i64> %tmp1, <1 x i64>* %x, align 8
Chris Lattnerd2b1fb22008-02-22 05:18:04 +000016 ret void
Chris Lattner149a4e52008-02-22 02:09:43 +000017}