diff options
Diffstat (limited to 'llvm/test/CodeGen/X86/avx-256-cmp.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/avx-256-cmp.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/avx-256-cmp.ll b/llvm/test/CodeGen/X86/avx-256-cmp.ll new file mode 100644 index 00000000000..3323a5bd9cc --- /dev/null +++ b/llvm/test/CodeGen/X86/avx-256-cmp.ll @@ -0,0 +1,18 @@ +; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s + +; CHECK: vcmpltps %ymm +; CHECK-NOT: vucomiss +define <8 x i32> @cmp00(<8 x float> %a, <8 x float> %b) nounwind readnone { + %bincmp = fcmp olt <8 x float> %a, %b + %s = sext <8 x i1> %bincmp to <8 x i32> + ret <8 x i32> %s +} + +; CHECK: vcmpltpd %ymm +; CHECK-NOT: vucomisd +define <4 x i64> @cmp01(<4 x double> %a, <4 x double> %b) nounwind readnone { + %bincmp = fcmp olt <4 x double> %a, %b + %s = sext <4 x i1> %bincmp to <4 x i64> + ret <4 x i64> %s +} + |

