brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 0768269 Raw
44 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i386-unknown -mattr=+sse2 | FileCheck %s --check-prefix=X323; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+sse2 | FileCheck %s --check-prefix=X644 5; Used movq to load i64 into a v2i64 when the top i64 is 0.6 7define <2 x i64> @foo1(ptr %y) nounwind  {8; X32-LABEL: foo1:9; X32:       # %bb.0: # %entry10; X32-NEXT:    movl {{[0-9]+}}(%esp), %eax11; X32-NEXT:    movsd {{.*#+}} xmm0 = mem[0],zero12; X32-NEXT:    retl13;14; X64-LABEL: foo1:15; X64:       # %bb.0: # %entry16; X64-NEXT:    movsd {{.*#+}} xmm0 = mem[0],zero17; X64-NEXT:    retq18entry:19  %tmp1 = load i64, ptr %y, align 820  %s2v = insertelement <2 x i64> undef, i64 %tmp1, i32 021  %loadl = shufflevector <2 x i64> zeroinitializer, <2 x i64> %s2v, <2 x i32> <i32 2, i32 1>22  ret <2 x i64> %loadl23}24 25 26define <4 x float> @foo2(ptr %p) nounwind {27; X32-LABEL: foo2:28; X32:       # %bb.0: # %entry29; X32-NEXT:    movl {{[0-9]+}}(%esp), %eax30; X32-NEXT:    movsd {{.*#+}} xmm0 = mem[0],zero31; X32-NEXT:    retl32;33; X64-LABEL: foo2:34; X64:       # %bb.0: # %entry35; X64-NEXT:    movsd {{.*#+}} xmm0 = mem[0],zero36; X64-NEXT:    retq37entry:38  %load = load i64, ptr %p39  %s2v = insertelement <2 x i64> undef, i64 %load, i32 040  %loadl = shufflevector <2 x i64> zeroinitializer, <2 x i64> %s2v, <2 x i32> <i32 2, i32 1>41  %0 = bitcast <2 x i64> %loadl to <4 x float>42  ret <4 x float> %043}44