mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 15:39:06 +00:00
4bd222ae26
2. Fix a typo in CONCAT_VECTORS which exposed the bug in #1. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142648 91177308-0d34-0410-b5e6-96231b3b80d8
31 lines
729 B
LLVM
31 lines
729 B
LLVM
; RUN: llc < %s -march=x86-64 -mcpu=corei7 | FileCheck %s
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
; Check that a <4 x float> compare is generated and that we are
|
|
; not stuck in an endless loop.
|
|
|
|
; CHECK: cmp_2_floats
|
|
; CHECK: cmpordps
|
|
; CHECK: ret
|
|
|
|
define void @cmp_2_floats() {
|
|
entry:
|
|
%0 = fcmp oeq <2 x float> undef, undef
|
|
%1 = select <2 x i1> %0, <2 x float> undef, <2 x float> undef
|
|
store <2 x float> %1, <2 x float>* undef
|
|
ret void
|
|
}
|
|
|
|
; CHECK: cmp_2_doubles
|
|
; CHECK: cmpordpd
|
|
; CHECK: blendvpd
|
|
; CHECK: ret
|
|
define void @cmp_2_doubles() {
|
|
entry:
|
|
%0 = fcmp oeq <2 x double> undef, undef
|
|
%1 = select <2 x i1> %0, <2 x double> undef, <2 x double> undef
|
|
store <2 x double> %1, <2 x double>* undef
|
|
ret void
|
|
}
|