mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-30 20:34:21 +00:00
test/CodeGen/X86/avx-minmax.ll: Unbreak Win32.
On Windows x64, 128-bit arguments are not passed by reg but by indirect. eg. maxpd: vmovapd (%rcx), %xmm0 vmaxpd (%rdx), %xmm0, %xmm0 FIXME: I don't care YMM on x64 for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140143 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3699261d3f
commit
6aaf0561ae
@ -1,7 +1,7 @@
|
||||
; RUN: llc < %s -march=x86-64 -mattr=+avx -asm-verbose=false -join-physregs -enable-unsafe-fp-math -enable-no-nans-fp-math -promote-elements | FileCheck -check-prefix=UNSAFE %s
|
||||
|
||||
; UNSAFE: maxpd:
|
||||
; UNSAFE: vmaxpd %xmm
|
||||
; UNSAFE: vmaxpd {{.+}}, %xmm
|
||||
define <2 x double> @maxpd(<2 x double> %x, <2 x double> %y) {
|
||||
%max_is_x = fcmp oge <2 x double> %x, %y
|
||||
%max = select <2 x i1> %max_is_x, <2 x double> %x, <2 x double> %y
|
||||
@ -9,7 +9,7 @@ define <2 x double> @maxpd(<2 x double> %x, <2 x double> %y) {
|
||||
}
|
||||
|
||||
; UNSAFE: minpd:
|
||||
; UNSAFE: vminpd %xmm
|
||||
; UNSAFE: vminpd {{.+}}, %xmm
|
||||
define <2 x double> @minpd(<2 x double> %x, <2 x double> %y) {
|
||||
%min_is_x = fcmp ole <2 x double> %x, %y
|
||||
%min = select <2 x i1> %min_is_x, <2 x double> %x, <2 x double> %y
|
||||
@ -17,7 +17,7 @@ define <2 x double> @minpd(<2 x double> %x, <2 x double> %y) {
|
||||
}
|
||||
|
||||
; UNSAFE: maxps:
|
||||
; UNSAFE: vmaxps %xmm
|
||||
; UNSAFE: vmaxps {{.+}}, %xmm
|
||||
define <4 x float> @maxps(<4 x float> %x, <4 x float> %y) {
|
||||
%max_is_x = fcmp oge <4 x float> %x, %y
|
||||
%max = select <4 x i1> %max_is_x, <4 x float> %x, <4 x float> %y
|
||||
@ -25,7 +25,7 @@ define <4 x float> @maxps(<4 x float> %x, <4 x float> %y) {
|
||||
}
|
||||
|
||||
; UNSAFE: minps:
|
||||
; UNSAFE: vminps %xmm
|
||||
; UNSAFE: vminps {{.+}}, %xmm
|
||||
define <4 x float> @minps(<4 x float> %x, <4 x float> %y) {
|
||||
%min_is_x = fcmp ole <4 x float> %x, %y
|
||||
%min = select <4 x i1> %min_is_x, <4 x float> %x, <4 x float> %y
|
||||
|
Loading…
x
Reference in New Issue
Block a user