diff options
author | Stuart Hastings <stuart@apple.com> | 2011-05-26 04:09:49 +0000 |
---|---|---|
committer | Stuart Hastings <stuart@apple.com> | 2011-05-26 04:09:49 +0000 |
commit | 2aa0f23e1cb5afc96981ecc057980d1958c0be72 (patch) | |
tree | 30fa29d3781195e079138b08023978857c454f7e /test/CodeGen | |
parent | 421b106872d9c8adb4f14d77a8c6a1afeaaa29f6 (diff) | |
download | external_llvm-2aa0f23e1cb5afc96981ecc057980d1958c0be72.zip external_llvm-2aa0f23e1cb5afc96981ecc057980d1958c0be72.tar.gz external_llvm-2aa0f23e1cb5afc96981ecc057980d1958c0be72.tar.bz2 |
Reverting 132105: it broke some LLVM-GCC DejaGNU tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132108 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/X86/2011-05-18-byval-in-reg.ll | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/test/CodeGen/X86/2011-05-18-byval-in-reg.ll b/test/CodeGen/X86/2011-05-18-byval-in-reg.ll deleted file mode 100644 index 18f0415..0000000 --- a/test/CodeGen/X86/2011-05-18-byval-in-reg.ll +++ /dev/null @@ -1,35 +0,0 @@ -; RUN: llc < %s | FileCheck %s -; rdar://problem/6920088 -;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-f80:128:128" -target triple = "x86_64-apple-darwin9.0" -@"\01LC" = internal constant [2 x i8] c"a\00" ; <[2 x i8]*> [#uses=1] -@"\01LC1" = internal constant [2 x i8] c"b\00" ; <[2 x i8]*> [#uses=1] -@"\01LC2" = internal constant [2 x i8] c"c\00" ; <[2 x i8]*> [#uses=1] -@"\01LC3" = internal constant [2 x i8] c"d\00" ; <[2 x i8]*> [#uses=1] -@"\01LC4" = internal constant [2 x i8] c"e\00" ; <[2 x i8]*> [#uses=1] -@"\01LC5" = internal constant [2 x i8] c"f\00" ; <[2 x i8]*> [#uses=1] -@"\01LC6" = internal constant [2 x i8] c"g\00" ; <[2 x i8]*> [#uses=1] -@"\01LC7" = internal constant [4 x i8] c"%s\0A\00" ; <[4 x i8]*> [#uses=1] - -define i32 @main(i32 %argc, i8** %argv) nounwind { -entry: - %tmp = alloca i8* ; <i8**> [#uses=2] - %tmp1 = alloca i8* ; <i8**> [#uses=2] - %tmp2 = alloca i8* ; <i8**> [#uses=2] -; CHECK: leaq LC4(%rip), [[AREG:%[a-z]+]] -; CHECK-NEXT: movq [[AREG]], [[STKOFF:[0-9]+]](%rsp) - store i8* getelementptr ([2 x i8]* @"\01LC4", i32 0, i32 0), i8** %tmp - store i8* getelementptr ([2 x i8]* @"\01LC5", i32 0, i32 0), i8** %tmp1 - store i8* getelementptr ([2 x i8]* @"\01LC6", i32 0, i32 0), i8** %tmp2 -; The LC4 struct should be passed in %r9: -; CHECK: movq [[STKOFF]](%rsp), %r9 - call void (i8**, ...)* @generate_password(i8** null, - i8* getelementptr ([2 x i8]* @"\01LC", i32 0, i32 0), - i8* getelementptr ([2 x i8]* @"\01LC1", i32 0, i32 0), - i8* getelementptr ([2 x i8]* @"\01LC2", i32 0, i32 0), - i8* getelementptr ([2 x i8]* @"\01LC3", i32 0, i32 0), - i8** byval %tmp, i8** byval %tmp1, i8** byval %tmp2) - ret i32 0 -} - -declare void @generate_password(i8** %pw, ...) nounwind |