diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:04:03 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:04:03 +0000 |
commit | f8af5cf600354830d4ccf59732403f0f073eccb9 (patch) | |
tree | 2ba0398b4c42ad4f55561327538044fd2c925a8b /test/CodeGen/X86/pr17631.ll | |
parent | 59d6cff90eecf31cb3dd860c4e786674cfdd42eb (diff) | |
download | src-f8af5cf600354830d4ccf59732403f0f073eccb9.tar.gz src-f8af5cf600354830d4ccf59732403f0f073eccb9.zip |
Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3):vendor/llvm/llvm-release_34-r197841
Notes
Notes:
svn path=/vendor/llvm/dist/; revision=259698
svn path=/vendor/llvm/llvm-release_34-r197841/; revision=259700; tag=vendor/llvm/llvm-release_34-r197841
Diffstat (limited to 'test/CodeGen/X86/pr17631.ll')
-rw-r--r-- | test/CodeGen/X86/pr17631.ll | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/test/CodeGen/X86/pr17631.ll b/test/CodeGen/X86/pr17631.ll new file mode 100644 index 000000000000..98f951f1b10c --- /dev/null +++ b/test/CodeGen/X86/pr17631.ll @@ -0,0 +1,34 @@ +; RUN: llc < %s -mcpu=core-avx-i -mtriple=i386-pc-win32 | FileCheck %s + +%struct_type = type { [64 x <8 x float>], <8 x float> } + +; Function Attrs: nounwind readnone +declare i32 @llvm.x86.avx.movmsk.ps.256(<8 x float>) + +; Function Attrs: nounwind +define i32 @equal(<8 x i32> %A) { +allocas: + %first_alloc = alloca [64 x <8 x i32>] + %second_alloc = alloca %struct_type + + %A1 = bitcast <8 x i32> %A to <8 x float> + %A2 = call i32 @llvm.x86.avx.movmsk.ps.256(<8 x float> %A1) + ret i32 %A2 +} + +; CHECK: equal +; CHECK-NOT: vzeroupper +; CHECK: _chkstk +; CHECK: ret + +define <8 x float> @foo(<8 x float> %y, i64* %p, double %x) { + %i = fptoui double %x to i64 + store i64 %i, i64* %p + %ret = fadd <8 x float> %y, %y + ret <8 x float> %ret +} + +; CHECK: foo +; CHECK-NOT: vzeroupper +; CHECK: _ftol2 +; CHECK: ret |