From aa917ca288c5e4295f6bbcab8700779f5879b72a Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 9 Sep 2010 20:10:22 +0000 Subject: [PATCH] Approved by Duncan: $ svn merge -c 113483 https://llvm.org/svn/llvm-project/llvm/trunk --- Merging r113483 into '.': U test/FrontendC/2010-05-18-asmsched.c U test/FrontendC/asm-reg-var-local.c $ svn merge -c 113484 https://llvm.org/svn/llvm-project/llvm/trunk --- Merging r113484 into '.': U test/FrontendC/cstring-align.c $ svn merge -c 113485 https://llvm.org/svn/llvm-project/llvm/trunk --- Merging r113485 into '.': U test/FrontendC/2010-07-14-overconservative-align.c Fix tests to pass on platforms which don't support -m64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_28@113529 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendC/2010-05-18-asmsched.c | 4 ++-- test/FrontendC/2010-07-14-overconservative-align.c | 4 ++-- test/FrontendC/asm-reg-var-local.c | 2 +- test/FrontendC/cstring-align.c | 14 ++++---------- 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/test/FrontendC/2010-05-18-asmsched.c b/test/FrontendC/2010-05-18-asmsched.c index 34abbe3e5c5..12e91405d10 100644 --- a/test/FrontendC/2010-05-18-asmsched.c +++ b/test/FrontendC/2010-05-18-asmsched.c @@ -1,4 +1,4 @@ -// RUN: %llvmgcc %s -c -O3 -m64 -emit-llvm -o - | llc -march=x86-64 -mtriple=x86_64-apple-darwin | FileCheck %s +// RUN: %llvmgcc %s -c -O3 -emit-llvm -o - | llc -march=x86-64 -mtriple=x86_64-apple-darwin | FileCheck %s // r9 used to be clobbered before its value was moved to r10. 7993104. void foo(int x, int y) { @@ -14,4 +14,4 @@ void foo(int x, int y) { lr9 = x; lr10 = foo; asm volatile("bar" : "=r"(lr9) : "r"(lr9), "r"(lr10)); -} \ No newline at end of file +} diff --git a/test/FrontendC/2010-07-14-overconservative-align.c b/test/FrontendC/2010-07-14-overconservative-align.c index 65fbdb83003..1744ba84185 100644 --- a/test/FrontendC/2010-07-14-overconservative-align.c +++ b/test/FrontendC/2010-07-14-overconservative-align.c @@ -1,4 +1,4 @@ -// RUN: %llvmgcc %s -emit-llvm -m64 -S -o - | FileCheck %s +// RUN: %llvmgcc %s -emit-llvm -S -o - | FileCheck %s // PR 5995 struct s { int word; @@ -9,6 +9,6 @@ struct s { void func (struct s *s) { -// CHECK: load %struct.s** %s_addr, align 8 +// CHECK: load %struct.s** %s_addr, align {{[48]}} s->word = 0; } diff --git a/test/FrontendC/asm-reg-var-local.c b/test/FrontendC/asm-reg-var-local.c index 3a93c11fb3d..22bd43c076d 100644 --- a/test/FrontendC/asm-reg-var-local.c +++ b/test/FrontendC/asm-reg-var-local.c @@ -1,4 +1,4 @@ -// RUN: %llvmgcc %s -m64 -S -o - | FileCheck %s +// RUN: %llvmgcc %s -S -o - | FileCheck %s // Exercise various use cases for local asm "register variables". // XFAIL: * // XTARGET: x86_64,i686,i386 diff --git a/test/FrontendC/cstring-align.c b/test/FrontendC/cstring-align.c index b9ec281f567..764126e0218 100644 --- a/test/FrontendC/cstring-align.c +++ b/test/FrontendC/cstring-align.c @@ -1,6 +1,4 @@ -// RUN: %llvmgcc %s -c -Os -m32 -emit-llvm -o - | llc -march=x86 -mtriple=i386-apple-darwin10 | FileCheck %s -check-prefix=DARWIN32 -// RUN: %llvmgcc %s -c -Os -m64 -emit-llvm -o - | llc -march=x86-64 -mtriple=x86_64-apple-darwin10 | FileCheck %s -check-prefix=DARWIN64 -// XTARGET: darwin +// RUN: %llvmgcc %s -c -Os -emit-llvm -o - | llc -march=x86 -mtriple=i386-apple-darwin10 | FileCheck %s extern void func(const char *, const char *); @@ -8,10 +6,6 @@ void long_function_name() { func("%s: the function name", __func__); } -// DARWIN64: .align 4 -// DARWIN64: ___func__. -// DARWIN64: .asciz "long_function_name" - -// DARWIN32: .align 4 -// DARWIN32: ___func__. -// DARWIN32: .asciz "long_function_name" +// CHECK: .align 4 +// CHECK: ___func__. +// CHECK: .asciz "long_function_name"