diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-05-07 05:36:19 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-05-07 05:36:19 +0000 |
commit | 5f9cccc509fc0a51ace855af19e8405cee900efd (patch) | |
tree | 4997835bc6d5842af54a7fdb0a97e50844dc3371 /test | |
parent | e5076d484b2f530e2e2422fb06c268970b53b055 (diff) | |
download | external_llvm-5f9cccc509fc0a51ace855af19e8405cee900efd.tar.gz external_llvm-5f9cccc509fc0a51ace855af19e8405cee900efd.tar.bz2 external_llvm-5f9cccc509fc0a51ace855af19e8405cee900efd.zip |
Add SSE4A MOVNTSS/MOVNTSD instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156281 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/sse4a.ll | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/CodeGen/X86/sse4a.ll b/test/CodeGen/X86/sse4a.ll new file mode 100644 index 0000000000..0732353fce --- /dev/null +++ b/test/CodeGen/X86/sse4a.ll @@ -0,0 +1,19 @@ +; RUN: llc < %s -mtriple=i686-apple-darwin9 -mattr=sse4a | FileCheck %s + +define void @test1(float* %p, <4 x float> %a) nounwind optsize ssp { +; CHECK: movntss +entry: + tail call void @llvm.x86.sse4a.movnt.ss(float* %p, <4 x float> %a) nounwind + ret void +} + +declare void @llvm.x86.sse4a.movnt.ss(float*, <4 x float>) + +define void @test2(double* %p, <2 x double> %a) nounwind optsize ssp { +; CHECK: movntsd +entry: + tail call void @llvm.x86.sse4a.movnt.sd(double* %p, <2 x double> %a) nounwind + ret void +} + +declare void @llvm.x86.sse4a.movnt.sd(double*, <2 x double>) |