brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.2 KiB · e971d1e Raw
108 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -O3 -disable-peephole -mtriple=i686-apple-macosx10.9.0 -mcpu=corei7-avx -mattr=+avx | FileCheck %s --check-prefix=X863; RUN: llc < %s -O3 -disable-peephole -mtriple=x86_64-apple-macosx10.9.0 -mcpu=corei7-avx -mattr=+avx | FileCheck %s --check-prefix=X644 5; Function Attrs: nounwind ssp uwtable6define void @test1(ptr %A, ptr %C) #0 {7; X86-LABEL: test1:8; X86:       ## %bb.0:9; X86-NEXT:    movl {{[0-9]+}}(%esp), %eax10; X86-NEXT:    movl {{[0-9]+}}(%esp), %ecx11; X86-NEXT:    vmovss {{.*#+}} xmm0 = mem[0],zero,zero,zero12; X86-NEXT:    vandps {{\.?LCPI[0-9]+_[0-9]+}}, %xmm0, %xmm013; X86-NEXT:    vmovss %xmm0, (%eax)14; X86-NEXT:    retl15;16; X64-LABEL: test1:17; X64:       ## %bb.0:18; X64-NEXT:    vmovss {{.*#+}} xmm0 = mem[0],zero,zero,zero19; X64-NEXT:    vandps {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0, %xmm020; X64-NEXT:    vmovss %xmm0, (%rsi)21; X64-NEXT:    retq22  %tmp2 = load <8 x float>, ptr %A, align 3223  %tmp3 = bitcast <8 x float> %tmp2 to <8 x i32>24  %tmp4 = and <8 x i32> %tmp3, <i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647>25  %tmp5 = bitcast <8 x i32> %tmp4 to <8 x float>26  %tmp6 = extractelement <8 x float> %tmp5, i32 027  store float %tmp6, ptr %C28  ret void29}30 31; Function Attrs: nounwind ssp uwtable32define void @test2(ptr %A, ptr %C) #0 {33; X86-LABEL: test2:34; X86:       ## %bb.0:35; X86-NEXT:    movl {{[0-9]+}}(%esp), %eax36; X86-NEXT:    movl {{[0-9]+}}(%esp), %ecx37; X86-NEXT:    vmovaps (%ecx), %xmm038; X86-NEXT:    vorps {{\.?LCPI[0-9]+_[0-9]+}}, %xmm0, %xmm039; X86-NEXT:    vmovss %xmm0, (%eax)40; X86-NEXT:    retl41;42; X64-LABEL: test2:43; X64:       ## %bb.0:44; X64-NEXT:    vmovaps (%rdi), %xmm045; X64-NEXT:    vorps {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0, %xmm046; X64-NEXT:    vmovss %xmm0, (%rsi)47; X64-NEXT:    retq48  %tmp2 = load <8 x float>, ptr %A, align 3249  %tmp3 = bitcast <8 x float> %tmp2 to <8 x i32>50  %tmp4 = or <8 x i32> %tmp3, <i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647>51  %tmp5 = bitcast <8 x i32> %tmp4 to <8 x float>52  %tmp6 = extractelement <8 x float> %tmp5, i32 053  store float %tmp6, ptr %C54  ret void55}56 57; Function Attrs: nounwind ssp uwtable58define void @test3(ptr %A, ptr %C) #0 {59; X86-LABEL: test3:60; X86:       ## %bb.0:61; X86-NEXT:    movl {{[0-9]+}}(%esp), %eax62; X86-NEXT:    movl {{[0-9]+}}(%esp), %ecx63; X86-NEXT:    vmovaps (%ecx), %xmm064; X86-NEXT:    vxorps {{\.?LCPI[0-9]+_[0-9]+}}, %xmm0, %xmm065; X86-NEXT:    vmovss %xmm0, (%eax)66; X86-NEXT:    retl67;68; X64-LABEL: test3:69; X64:       ## %bb.0:70; X64-NEXT:    vmovaps (%rdi), %xmm071; X64-NEXT:    vxorps {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0, %xmm072; X64-NEXT:    vmovss %xmm0, (%rsi)73; X64-NEXT:    retq74  %tmp2 = load <8 x float>, ptr %A, align 3275  %tmp3 = bitcast <8 x float> %tmp2 to <8 x i32>76  %tmp4 = xor <8 x i32> %tmp3, <i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647>77  %tmp5 = bitcast <8 x i32> %tmp4 to <8 x float>78  %tmp6 = extractelement <8 x float> %tmp5, i32 079  store float %tmp6, ptr %C80  ret void81}82 83define void @test4(ptr %A, ptr %C) #0 {84; X86-LABEL: test4:85; X86:       ## %bb.0:86; X86-NEXT:    movl {{[0-9]+}}(%esp), %eax87; X86-NEXT:    movl {{[0-9]+}}(%esp), %ecx88; X86-NEXT:    vmovaps (%ecx), %xmm089; X86-NEXT:    vandnps {{\.?LCPI[0-9]+_[0-9]+}}, %xmm0, %xmm090; X86-NEXT:    vmovss %xmm0, (%eax)91; X86-NEXT:    retl92;93; X64-LABEL: test4:94; X64:       ## %bb.0:95; X64-NEXT:    vmovaps (%rdi), %xmm096; X64-NEXT:    vandnps {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0, %xmm097; X64-NEXT:    vmovss %xmm0, (%rsi)98; X64-NEXT:    retq99  %tmp2 = load <8 x float>, ptr %A, align 32100  %tmp3 = bitcast <8 x float> %tmp2 to <8 x i32>101  %tmp4 = xor <8 x i32> %tmp3, <i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1>102  %tmp5 = and <8 x i32> %tmp4, <i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647>103  %tmp6 = bitcast <8 x i32> %tmp5 to <8 x float>104  %tmp7 = extractelement <8 x float> %tmp6, i32 0105  store float %tmp7, ptr %C106  ret void107}108