diff options
| author | Elena Demikhovsky <elena.demikhovsky@intel.com> | 2013-12-22 10:13:18 +0000 |
|---|---|---|
| committer | Elena Demikhovsky <elena.demikhovsky@intel.com> | 2013-12-22 10:13:18 +0000 |
| commit | cd700230074b354b63c53da2bdb85a4aa236ee20 (patch) | |
| tree | 6803a012fb8a64cef12beee2abf584dbb1ccc8b7 /test/CodeGen | |
| parent | e6a866cfa331ad15df0bbb93f6d91ae836310848 (diff) | |
| download | llvm-cd700230074b354b63c53da2bdb85a4aa236ee20.tar.gz llvm-cd700230074b354b63c53da2bdb85a4aa236ee20.tar.bz2 llvm-cd700230074b354b63c53da2bdb85a4aa236ee20.tar.xz | |
AVX512: SETCC returns i1 for AVX-512 and i8 for all others
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197876 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
| -rw-r--r-- | test/CodeGen/X86/avx512-cmp.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx512-cmp.ll b/test/CodeGen/X86/avx512-cmp.ll index 5201e32f57..d5ec2e777c 100644 --- a/test/CodeGen/X86/avx512-cmp.ll +++ b/test/CodeGen/X86/avx512-cmp.ll @@ -1,5 +1,6 @@ ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl --show-mc-encoding | FileCheck %s +; CHECK-LABEL: test1 ; CHECK: vucomisd {{.*}}encoding: [0x62 define double @test1(double %a, double %b) nounwind { %tobool = fcmp une double %a, %b @@ -13,6 +14,7 @@ l2: ret double %c1 } +; CHECK-LABEL: test2 ; CHECK: vucomiss {{.*}}encoding: [0x62 define float @test2(float %a, float %b) nounwind { %tobool = fcmp olt float %a, %b @@ -25,3 +27,14 @@ l2: %c1 = fadd float %a, %b ret float %c1 } + +; CHECK-LABEL: test3 +; CHECK: vcmpeqss +; CHECK: kmov +; CHECK: ret +define i32 @test3(float %a, float %b) { + + %cmp10.i = fcmp oeq float %a, %b + %conv11.i = zext i1 %cmp10.i to i32 + ret i32 %conv11.i +} |
