From 85d1aab444f0c8358b5941cda762235731e53a9c Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Sun, 22 Nov 2009 12:50:05 +0000 Subject: [PATCH] Fix for bad FileCheck converts in revision 89584. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89586 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/ARM/fptoint.ll | 5 ++--- test/CodeGen/PowerPC/bswap-load-store.ll | 20 ++++++++------------ test/CodeGen/X86/fp_constant_op.ll | 20 ++++++++++++-------- 3 files changed, 22 insertions(+), 23 deletions(-) diff --git a/test/CodeGen/ARM/fptoint.ll b/test/CodeGen/ARM/fptoint.ll index f4906ff1073..299cb8f8150 100644 --- a/test/CodeGen/ARM/fptoint.ll +++ b/test/CodeGen/ARM/fptoint.ll @@ -44,7 +44,6 @@ define void @foo9(double %x) { store i16 %tmp, i16* null ret void } - -; CHECK: vmov d0, r0, r1 -; CHECK-NOT: fmrrd +; CHECK: foo9: +; CHECK: vmov r0, s0 diff --git a/test/CodeGen/PowerPC/bswap-load-store.ll b/test/CodeGen/PowerPC/bswap-load-store.ll index 3d45b7f6a66..4f6bfc72991 100644 --- a/test/CodeGen/PowerPC/bswap-load-store.ll +++ b/test/CodeGen/PowerPC/bswap-load-store.ll @@ -39,17 +39,13 @@ declare i32 @llvm.bswap.i32(i32) declare i16 @llvm.bswap.i16(i16) -; X32: stwbrx 3, 4, 5 -; X32: lwbrx 3, 3, 4 -; X32: sthbrx 3, 4, 5 -; X32: lhbrx 3, 3, 4 -; X32-NOT: rlwinm -; X32-NOT: rlwimi +; X32: stwbrx +; X32: lwbrx +; X32: sthbrx +; X32: lhbrx -; X32: stwbrx 3, 4, 5 -; X32: lwbrx 3, 3, 4 -; X32: sthbrx 3, 4, 5 -; X32: lhbrx 3, 3, 4 -; X64-NOT: rlwinm -; X64-NOT: rlwimi +; X64: stwbrx +; X64: lwbrx +; X64: sthbrx +; X64: lhbrx diff --git a/test/CodeGen/X86/fp_constant_op.ll b/test/CodeGen/X86/fp_constant_op.ll index e7bcce13bbd..b3ec5388d70 100644 --- a/test/CodeGen/X86/fp_constant_op.ll +++ b/test/CodeGen/X86/fp_constant_op.ll @@ -6,37 +6,41 @@ define double @foo_add(double %P) { %tmp.1 = fadd double %P, 1.230000e+02 ; [#uses=1] ret double %tmp.1 } -; CHECK: fadd {{[^sS][^tT]}} -; CHECK: fadd {{[^sS][^tT]}} +; CHECK: foo_add: +; CHECK: fadd DWORD PTR define double @foo_mul(double %P) { %tmp.1 = fmul double %P, 1.230000e+02 ; [#uses=1] ret double %tmp.1 } -; CHECK: fmul {{[^sS][^tT]}} +; CHECK: foo_mul: +; CHECK: fmul DWORD PTR define double @foo_sub(double %P) { %tmp.1 = fsub double %P, 1.230000e+02 ; [#uses=1] ret double %tmp.1 } +; CHECK: foo_sub: +; CHECK: fadd DWORD PTR define double @foo_subr(double %P) { %tmp.1 = fsub double 1.230000e+02, %P ; [#uses=1] ret double %tmp.1 } +; CHECK: foo_subr: +; CHECK: fsub QWORD PTR define double @foo_div(double %P) { %tmp.1 = fdiv double %P, 1.230000e+02 ; [#uses=1] ret double %tmp.1 } +; CHECK: foo_div: +; CHECK: fdiv DWORD PTR define double @foo_divr(double %P) { %tmp.1 = fdiv double 1.230000e+02, %P ; [#uses=1] ret double %tmp.1 } - - -; CHECK: fsub {{[^sS][^tT]}} -; CHECK: fdiv {{[^sS][^tT]}} -; CHECK: fdiv {{[^sS][^tT]}} +; CHECK: foo_divr: +; CHECK: fdiv QWORD PTR