From c2355002950df9b3040fec6ecbcc7a5113ba3fde Mon Sep 17 00:00:00 2001 From: Alex Rosenberg Date: Thu, 29 Jan 2015 13:31:32 +0000 Subject: [PATCH] Cleanup a few tests on sse4a machines and FileCheckize along the way. llvm-svn: 227437 --- llvm/test/CodeGen/X86/2006-05-22-FPSetEQ.ll | 9 ++++++--- llvm/test/CodeGen/X86/2009-01-25-NoSSE.ll | 4 +++- llvm/test/CodeGen/X86/2009-06-18-movlp-shuffle-register.ll | 2 +- llvm/test/CodeGen/X86/barrier.ll | 3 ++- llvm/test/CodeGen/X86/nosse-varargs.ll | 7 ++++--- llvm/test/CodeGen/X86/sse4a.ll | 1 + 6 files changed, 17 insertions(+), 9 deletions(-) diff --git a/llvm/test/CodeGen/X86/2006-05-22-FPSetEQ.ll b/llvm/test/CodeGen/X86/2006-05-22-FPSetEQ.ll index 6c5a4fb..3be77f5 100644 --- a/llvm/test/CodeGen/X86/2006-05-22-FPSetEQ.ll +++ b/llvm/test/CodeGen/X86/2006-05-22-FPSetEQ.ll @@ -1,7 +1,10 @@ -; RUN: llc < %s -march=x86 -mattr=-sse | grep setnp -; RUN: llc < %s -march=x86 -mattr=-sse -enable-unsafe-fp-math -enable-no-nans-fp-math | \ -; RUN: not grep setnp +; RUN: llc < %s -march=x86 -mattr=-sse | FileCheck %s -check-prefix=WITHNANS +; RUN: llc < %s -march=x86 -mattr=-sse -enable-unsafe-fp-math -enable-no-nans-fp-math | FileCheck %s -check-prefix=NONANS +; WITHNANS-LABEL: test: +; WITHNANS: setnp +; NONANS-LABEL: test: +; NONANS-NOT: setnp define i32 @test(float %f) { %tmp = fcmp oeq float %f, 0.000000e+00 ; [#uses=1] %tmp.upgrd.1 = zext i1 %tmp to i32 ; [#uses=1] diff --git a/llvm/test/CodeGen/X86/2009-01-25-NoSSE.ll b/llvm/test/CodeGen/X86/2009-01-25-NoSSE.ll index 8406c4a2..f444cc9 100644 --- a/llvm/test/CodeGen/X86/2009-01-25-NoSSE.ll +++ b/llvm/test/CodeGen/X86/2009-01-25-NoSSE.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=x86-64 -mattr=-sse,-sse2 | not grep xmm +; RUN: llc < %s -march=x86-64 -mattr=-sse,-sse2,-sse4a | FileCheck %s ; PR3402 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" @@ -6,6 +6,8 @@ target triple = "x86_64-unknown-linux-gnu" %struct.ktermios = type { i32, i32, i32, i32, i8, [19 x i8], i32, i32 } +; CHECK-NOT: xmm +; CHECK-NOT: ymm define void @foo() nounwind { entry: %termios = alloca %struct.ktermios, align 8 diff --git a/llvm/test/CodeGen/X86/2009-06-18-movlp-shuffle-register.ll b/llvm/test/CodeGen/X86/2009-06-18-movlp-shuffle-register.ll index 4c4552d..1386370 100644 --- a/llvm/test/CodeGen/X86/2009-06-18-movlp-shuffle-register.ll +++ b/llvm/test/CodeGen/X86/2009-06-18-movlp-shuffle-register.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=x86 -mattr=+sse,-sse2 | FileCheck %s +; RUN: llc < %s -march=x86 -mattr=+sse,-sse2,-sse4a | FileCheck %s ; PR2484 define <4 x float> @f4523(<4 x float> %a,<4 x float> %b) nounwind { diff --git a/llvm/test/CodeGen/X86/barrier.ll b/llvm/test/CodeGen/X86/barrier.ll index 4769b39..2602726 100644 --- a/llvm/test/CodeGen/X86/barrier.ll +++ b/llvm/test/CodeGen/X86/barrier.ll @@ -1,6 +1,7 @@ -; RUN: llc < %s -march=x86 -mattr=-sse2 | grep lock +; RUN: llc < %s -march=x86 -mattr=-sse2,-sse4a | FileCheck %s define void @test() { +; CHECK: lock fence seq_cst ret void } diff --git a/llvm/test/CodeGen/X86/nosse-varargs.ll b/llvm/test/CodeGen/X86/nosse-varargs.ll index e6da0ab..8070c47 100644 --- a/llvm/test/CodeGen/X86/nosse-varargs.ll +++ b/llvm/test/CodeGen/X86/nosse-varargs.ll @@ -1,11 +1,12 @@ -; RUN: llvm-as < %s > %t -; RUN: llc -march=x86-64 -mattr=-sse < %t | not grep xmm -; RUN: llc -march=x86-64 < %t | grep xmm +; RUN: llc < %s -march=x86-64 -mattr=-sse | FileCheck %s -check-prefix=NOSSE +; RUN: llc < %s -march=x86-64 | FileCheck %s -check-prefix=YESSSE ; PR3403 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" target triple = "x86_64-unknown-linux-gnu" %struct.__va_list_tag = type { i32, i32, i8*, i8* } +; NOSSE-NOT: xmm +; YESSSE: xmm define i32 @foo(float %a, i8* nocapture %fmt, ...) nounwind { entry: %ap = alloca [1 x %struct.__va_list_tag], align 8 ; <[1 x %struct.__va_list_tag]*> [#uses=4] diff --git a/llvm/test/CodeGen/X86/sse4a.ll b/llvm/test/CodeGen/X86/sse4a.ll index 165d476..f8fa125 100644 --- a/llvm/test/CodeGen/X86/sse4a.ll +++ b/llvm/test/CodeGen/X86/sse4a.ll @@ -1,4 +1,5 @@ ; RUN: llc < %s -mtriple=i686-apple-darwin9 -mattr=sse4a | FileCheck %s +; RUN: llc < %s -mtriple=x86_64-unknown-linux -mattr=sse4a | FileCheck %s define void @test1(i8* %p, <4 x float> %a) nounwind optsize ssp { ; CHECK-LABEL: test1: -- 2.7.4