diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-07-22 20:53:20 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-07-22 20:53:20 +0000 |
commit | dad38638e172a4c53caf1d9dac9b92228bd4be7a (patch) | |
tree | c8e3167061d84cacf2d6484423ead5ae3ce3d2ec /test/CodeGen/X86 | |
parent | 44a456332f1f41d1e0b2815d93e47a88d501ee6e (diff) | |
download | external_llvm-dad38638e172a4c53caf1d9dac9b92228bd4be7a.zip external_llvm-dad38638e172a4c53caf1d9dac9b92228bd4be7a.tar.gz external_llvm-dad38638e172a4c53caf1d9dac9b92228bd4be7a.tar.bz2 |
Fix PR10422 by adding the necessary AVX UCOMISD memory versions to
load folding logic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
-rw-r--r-- | test/CodeGen/X86/avx-cmp-fp.ll | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx-cmp-fp.ll b/test/CodeGen/X86/avx-cmp-fp.ll new file mode 100644 index 0000000..18d381b --- /dev/null +++ b/test/CodeGen/X86/avx-cmp-fp.ll @@ -0,0 +1,28 @@ +; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s + +declare void @scale() nounwind uwtable + +; CHECK: vucomisd .LCPI +define void @render() nounwind uwtable { +entry: + br i1 undef, label %for.cond5, label %for.end52 + +for.cond5: + %or.cond = and i1 undef, false + br i1 %or.cond, label %for.body33, label %for.cond5 + +for.cond30: + br i1 false, label %for.body33, label %for.cond5 + +for.body33: + %tobool = fcmp une double undef, 0.000000e+00 + br i1 %tobool, label %if.then, label %for.cond30 + +if.then: + call void @scale() + br label %for.cond30 + +for.end52: + ret void +} + |