From 6aaf0561aee34a44c5ac1e48cef94e9458e0dab6 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 20 Sep 2011 14:11:35 +0000 Subject: [PATCH] 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 --- test/CodeGen/X86/avx-minmax.ll | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/CodeGen/X86/avx-minmax.ll b/test/CodeGen/X86/avx-minmax.ll index 6503c76708b..f36ba7b62a2 100644 --- a/test/CodeGen/X86/avx-minmax.ll +++ b/test/CodeGen/X86/avx-minmax.ll @@ -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 -- 2.11.0