llvm.org GIT mirror llvm / aa917ca
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 Bill Wendling 10 years ago
4 changed file(s) with 9 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
None // RUN: %llvmgcc %s -c -O3 -m64 -emit-llvm -o - | llc -march=x86-64 -mtriple=x86_64-apple-darwin | FileCheck %s
0 // RUN: %llvmgcc %s -c -O3 -emit-llvm -o - | llc -march=x86-64 -mtriple=x86_64-apple-darwin | FileCheck %s
11 // r9 used to be clobbered before its value was moved to r10. 7993104.
22
33 void foo(int x, int y) {
1313 lr9 = x;
1414 lr10 = foo;
1515 asm volatile("bar" : "=r"(lr9) : "r"(lr9), "r"(lr10));
16 }
16 }
None // RUN: %llvmgcc %s -emit-llvm -m64 -S -o - | FileCheck %s
0 // RUN: %llvmgcc %s -emit-llvm -S -o - | FileCheck %s
11 // PR 5995
22 struct s {
33 int word;
88
99 void func (struct s *s)
1010 {
11 // CHECK: load %struct.s** %s_addr, align 8
11 // CHECK: load %struct.s** %s_addr, align {{[48]}}
1212 s->word = 0;
1313 }
None // RUN: %llvmgcc %s -m64 -S -o - | FileCheck %s
0 // RUN: %llvmgcc %s -S -o - | FileCheck %s
11 // Exercise various use cases for local asm "register variables".
22 // XFAIL: *
33 // XTARGET: x86_64,i686,i386
None // RUN: %llvmgcc %s -c -Os -m32 -emit-llvm -o - | llc -march=x86 -mtriple=i386-apple-darwin10 | FileCheck %s -check-prefix=DARWIN32
1 // RUN: %llvmgcc %s -c -Os -m64 -emit-llvm -o - | llc -march=x86-64 -mtriple=x86_64-apple-darwin10 | FileCheck %s -check-prefix=DARWIN64
2 // XTARGET: darwin
0 // RUN: %llvmgcc %s -c -Os -emit-llvm -o - | llc -march=x86 -mtriple=i386-apple-darwin10 | FileCheck %s
31
42 extern void func(const char *, const char *);
53
75 func("%s: the function name", __func__);
86 }
97
10 // DARWIN64: .align 4
11 // DARWIN64: ___func__.
12 // DARWIN64: .asciz "long_function_name"
13
14 // DARWIN32: .align 4
15 // DARWIN32: ___func__.
16 // DARWIN32: .asciz "long_function_name"
8 // CHECK: .align 4
9 // CHECK: ___func__.
10 // CHECK: .asciz "long_function_name"