2016-04-02 01:40:25 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
2017-05-10 23:52:59 +08:00
|
|
|
; RUN: llc < %s -mtriple=i386-linux-gnu -mattr=+sse2,-avx | FileCheck %s --check-prefix=X86
|
2016-04-02 01:40:25 +08:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-pc-linux -mattr=+sse2,-avx | FileCheck %s --check-prefix=X64
|
2008-05-08 08:57:18 +08:00
|
|
|
|
|
|
|
define <2 x i64> @t1(i64 %x) nounwind {
|
2017-05-10 23:52:59 +08:00
|
|
|
; X86-LABEL: t1:
|
2017-12-05 01:18:51 +08:00
|
|
|
; X86: # %bb.0:
|
2017-05-10 23:52:59 +08:00
|
|
|
; X86-NEXT: movsd {{.*#+}} xmm0 = mem[0],zero
|
|
|
|
; X86-NEXT: retl
|
2016-04-02 01:40:25 +08:00
|
|
|
;
|
|
|
|
; X64-LABEL: t1:
|
2017-12-05 01:18:51 +08:00
|
|
|
; X64: # %bb.0:
|
2017-04-26 15:08:44 +08:00
|
|
|
; X64-NEXT: movq %rdi, %xmm0
|
2016-04-02 01:40:25 +08:00
|
|
|
; X64-NEXT: retq
|
|
|
|
%tmp8 = insertelement <2 x i64> zeroinitializer, i64 %x, i32 0
|
|
|
|
ret <2 x i64> %tmp8
|
2008-05-08 08:57:18 +08:00
|
|
|
}
|