[llvm-commits] [llvm] r140143 - /llvm/trunk/test/CodeGen/X86/avx-minmax.ll

NAKAMURA Takumi geek4civic at gmail.com
Tue Sep 20 07:11:35 PDT 2011


Author: chapuni
Date: Tue Sep 20 09:11:35 2011
New Revision: 140143

URL: http://llvm.org/viewvc/llvm-project?rev=140143&view=rev
Log:
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.

Modified:
    llvm/trunk/test/CodeGen/X86/avx-minmax.ll

Modified: llvm/trunk/test/CodeGen/X86/avx-minmax.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/avx-minmax.ll?rev=140143&r1=140142&r2=140143&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/avx-minmax.ll (original)
+++ llvm/trunk/test/CodeGen/X86/avx-minmax.ll Tue Sep 20 09:11:35 2011
@@ -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 @@
 }
 
 ; 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 @@
 }
 
 ; 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 @@
 }
 
 ; 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





More information about the llvm-commits mailing list