aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-06-16 07:03:21 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-06-16 07:03:21 +0000
commitd381a7a91ee6fb72cda3e08b71d602c4c6d83d35 (patch)
tree96c1bb90d914f283f7330174467e50d5b576b52f /test
parent2559011a0176f7829effdad0a26395f14d723930 (diff)
Add AVX suport for fpextend.
Original patch by Syoyo Fujita with more comments by me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133153 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/avx-128.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx-128.ll b/test/CodeGen/X86/avx-128.ll
index 2bd3b5dfed..c29cb5d36c 100644
--- a/test/CodeGen/X86/avx-128.ll
+++ b/test/CodeGen/X86/avx-128.ll
@@ -10,3 +10,13 @@ entry:
ret void
}
+define void @fpext() nounwind uwtable {
+entry:
+ %f = alloca float, align 4
+ %d = alloca double, align 8
+ %tmp = load float* %f, align 4
+ ; CHECK: vcvtss2sd
+ %conv = fpext float %tmp to double
+ store double %conv, double* %d, align 8
+ ret void
+}