Home | History | Annotate | Download | only in X86
      1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
      2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=sse4.1 | FileCheck %s
      3 
      4 
      5 define <2 x double> @test_x86_sse41_blend_pd(<2 x double> %a0, <2 x double> %a1) {
      6 ; CHECK-LABEL: test_x86_sse41_blend_pd:
      7 ; CHECK:       # %bb.0:
      8 ; CHECK-NEXT:    retq
      9   %1 = call <2 x double> @llvm.x86.sse41.blendpd(<2 x double> %a0, <2 x double> %a1, i32 0)
     10   ret <2 x double> %1
     11 }
     12 
     13 define <4 x float> @test_x86_sse41_blend_ps(<4 x float> %a0, <4 x float> %a1) {
     14 ; CHECK-LABEL: test_x86_sse41_blend_ps:
     15 ; CHECK:       # %bb.0:
     16 ; CHECK-NEXT:    retq
     17   %1 = call <4 x float> @llvm.x86.sse41.blendps(<4 x float> %a0, <4 x float> %a1, i32 0)
     18   ret <4 x float> %1
     19 }
     20 
     21 define <8 x i16> @test_x86_sse41_pblend_w(<8 x i16> %a0, <8 x i16> %a1) {
     22 ; CHECK-LABEL: test_x86_sse41_pblend_w:
     23 ; CHECK:       # %bb.0:
     24 ; CHECK-NEXT:    retq
     25   %1 = call <8 x i16> @llvm.x86.sse41.pblendw(<8 x i16> %a0, <8 x i16> %a1, i32 0)
     26   ret <8 x i16> %1
     27 }
     28 
     29 define <2 x double> @test2_x86_sse41_blend_pd(<2 x double> %a0, <2 x double> %a1) {
     30 ; CHECK-LABEL: test2_x86_sse41_blend_pd:
     31 ; CHECK:       # %bb.0:
     32 ; CHECK-NEXT:    movaps %xmm1, %xmm0
     33 ; CHECK-NEXT:    retq
     34   %1 = call <2 x double> @llvm.x86.sse41.blendpd(<2 x double> %a0, <2 x double> %a1, i32 -1)
     35   ret <2 x double> %1
     36 }
     37 
     38 define <4 x float> @test2_x86_sse41_blend_ps(<4 x float> %a0, <4 x float> %a1) {
     39 ; CHECK-LABEL: test2_x86_sse41_blend_ps:
     40 ; CHECK:       # %bb.0:
     41 ; CHECK-NEXT:    movaps %xmm1, %xmm0
     42 ; CHECK-NEXT:    retq
     43   %1 = call <4 x float> @llvm.x86.sse41.blendps(<4 x float> %a0, <4 x float> %a1, i32 -1)
     44   ret <4 x float> %1
     45 }
     46 
     47 define <8 x i16> @test2_x86_sse41_pblend_w(<8 x i16> %a0, <8 x i16> %a1) {
     48 ; CHECK-LABEL: test2_x86_sse41_pblend_w:
     49 ; CHECK:       # %bb.0:
     50 ; CHECK-NEXT:    movaps %xmm1, %xmm0
     51 ; CHECK-NEXT:    retq
     52   %1 = call <8 x i16> @llvm.x86.sse41.pblendw(<8 x i16> %a0, <8 x i16> %a1, i32 -1)
     53   ret <8 x i16> %1
     54 }
     55 
     56 define <2 x double> @test3_x86_sse41_blend_pd(<2 x double> %a0) {
     57 ; CHECK-LABEL: test3_x86_sse41_blend_pd:
     58 ; CHECK:       # %bb.0:
     59 ; CHECK-NEXT:    retq
     60   %1 = call <2 x double> @llvm.x86.sse41.blendpd(<2 x double> %a0, <2 x double> %a0, i32 7)
     61   ret <2 x double> %1
     62 }
     63 
     64 define <4 x float> @test3_x86_sse41_blend_ps(<4 x float> %a0) {
     65 ; CHECK-LABEL: test3_x86_sse41_blend_ps:
     66 ; CHECK:       # %bb.0:
     67 ; CHECK-NEXT:    retq
     68   %1 = call <4 x float> @llvm.x86.sse41.blendps(<4 x float> %a0, <4 x float> %a0, i32 7)
     69   ret <4 x float> %1
     70 }
     71 
     72 define <8 x i16> @test3_x86_sse41_pblend_w(<8 x i16> %a0) {
     73 ; CHECK-LABEL: test3_x86_sse41_pblend_w:
     74 ; CHECK:       # %bb.0:
     75 ; CHECK-NEXT:    retq
     76   %1 = call <8 x i16> @llvm.x86.sse41.pblendw(<8 x i16> %a0, <8 x i16> %a0, i32 7)
     77   ret <8 x i16> %1
     78 }
     79 
     80 declare <2 x double> @llvm.x86.sse41.blendpd(<2 x double>, <2 x double>, i32)
     81 declare <4 x float> @llvm.x86.sse41.blendps(<4 x float>, <4 x float>, i32)
     82 declare <8 x i16> @llvm.x86.sse41.pblendw(<8 x i16>, <8 x i16>, i32)
     83 
     84