Chandler Carruth | 373b2b1 | 2014-09-06 10:00:01 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -mtriple=i386-apple-darwin -mattr=-avx,+sse4.1 | FileCheck %s |
| 2 | ; This test works just like the non-upgrade one except that it only checks |
| 3 | ; forms which require auto-upgrading. |
| 4 | |
| 5 | define <2 x double> @test_x86_sse41_blendpd(<2 x double> %a0, <2 x double> %a1) { |
| 6 | ; CHECK: blendpd |
| 7 | %res = call <2 x double> @llvm.x86.sse41.blendpd(<2 x double> %a0, <2 x double> %a1, i32 7) ; <<2 x double>> [#uses=1] |
| 8 | ret <2 x double> %res |
| 9 | } |
| 10 | declare <2 x double> @llvm.x86.sse41.blendpd(<2 x double>, <2 x double>, i32) nounwind readnone |
| 11 | |
| 12 | |
| 13 | define <4 x float> @test_x86_sse41_blendps(<4 x float> %a0, <4 x float> %a1) { |
| 14 | ; CHECK: blendps |
| 15 | %res = call <4 x float> @llvm.x86.sse41.blendps(<4 x float> %a0, <4 x float> %a1, i32 7) ; <<4 x float>> [#uses=1] |
| 16 | ret <4 x float> %res |
| 17 | } |
| 18 | declare <4 x float> @llvm.x86.sse41.blendps(<4 x float>, <4 x float>, i32) nounwind readnone |
| 19 | |
| 20 | |
| 21 | define <2 x double> @test_x86_sse41_dppd(<2 x double> %a0, <2 x double> %a1) { |
| 22 | ; CHECK: dppd |
| 23 | %res = call <2 x double> @llvm.x86.sse41.dppd(<2 x double> %a0, <2 x double> %a1, i32 7) ; <<2 x double>> [#uses=1] |
| 24 | ret <2 x double> %res |
| 25 | } |
| 26 | declare <2 x double> @llvm.x86.sse41.dppd(<2 x double>, <2 x double>, i32) nounwind readnone |
| 27 | |
| 28 | |
| 29 | define <4 x float> @test_x86_sse41_dpps(<4 x float> %a0, <4 x float> %a1) { |
| 30 | ; CHECK: dpps |
| 31 | %res = call <4 x float> @llvm.x86.sse41.dpps(<4 x float> %a0, <4 x float> %a1, i32 7) ; <<4 x float>> [#uses=1] |
| 32 | ret <4 x float> %res |
| 33 | } |
| 34 | declare <4 x float> @llvm.x86.sse41.dpps(<4 x float>, <4 x float>, i32) nounwind readnone |
| 35 | |
| 36 | |
| 37 | define <4 x float> @test_x86_sse41_insertps(<4 x float> %a0, <4 x float> %a1) { |
| 38 | ; CHECK: insertps |
| 39 | %res = call <4 x float> @llvm.x86.sse41.insertps(<4 x float> %a0, <4 x float> %a1, i32 7) ; <<4 x float>> [#uses=1] |
| 40 | ret <4 x float> %res |
| 41 | } |
| 42 | declare <4 x float> @llvm.x86.sse41.insertps(<4 x float>, <4 x float>, i32) nounwind readnone |
| 43 | |
| 44 | |
| 45 | |
| 46 | define <8 x i16> @test_x86_sse41_mpsadbw(<16 x i8> %a0, <16 x i8> %a1) { |
| 47 | ; CHECK: mpsadbw |
| 48 | %res = call <8 x i16> @llvm.x86.sse41.mpsadbw(<16 x i8> %a0, <16 x i8> %a1, i32 7) ; <<8 x i16>> [#uses=1] |
| 49 | ret <8 x i16> %res |
| 50 | } |
| 51 | declare <8 x i16> @llvm.x86.sse41.mpsadbw(<16 x i8>, <16 x i8>, i32) nounwind readnone |
| 52 | |
| 53 | |
| 54 | define <8 x i16> @test_x86_sse41_pblendw(<8 x i16> %a0, <8 x i16> %a1) { |
| 55 | ; CHECK: pblendw |
| 56 | %res = call <8 x i16> @llvm.x86.sse41.pblendw(<8 x i16> %a0, <8 x i16> %a1, i32 7) ; <<8 x i16>> [#uses=1] |
| 57 | ret <8 x i16> %res |
| 58 | } |
| 59 | declare <8 x i16> @llvm.x86.sse41.pblendw(<8 x i16>, <8 x i16>, i32) nounwind readnone |
| 60 | |
| 61 | |