diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-10 22:08:18 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-10 22:08:18 +0000 |
commit | 13a7db5b9c4f5e543d037be68ec3428216bfd550 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/CodeGen/AArch64/arm64-big-endian-varargs.ll | |
parent | 0eb46f5d1e06a4284663d636a74b06adc3a161d7 (diff) | |
parent | 31195f0bdca6ee2a5e72d07edf13e1d81206d949 (diff) | |
download | external_llvm-13a7db5b9c4f5e543d037be68ec3428216bfd550.zip external_llvm-13a7db5b9c4f5e543d037be68ec3428216bfd550.tar.gz external_llvm-13a7db5b9c4f5e543d037be68ec3428216bfd550.tar.bz2 |
am 31195f0b: Merge "Update aosp/master llvm for rebase to r233350"
* commit '31195f0bdca6ee2a5e72d07edf13e1d81206d949':
Update aosp/master llvm for rebase to r233350
Diffstat (limited to 'test/CodeGen/AArch64/arm64-big-endian-varargs.ll')
-rw-r--r-- | test/CodeGen/AArch64/arm64-big-endian-varargs.ll | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/CodeGen/AArch64/arm64-big-endian-varargs.ll b/test/CodeGen/AArch64/arm64-big-endian-varargs.ll index db1f48c..e5e1684 100644 --- a/test/CodeGen/AArch64/arm64-big-endian-varargs.ll +++ b/test/CodeGen/AArch64/arm64-big-endian-varargs.ll @@ -21,8 +21,8 @@ entry: %vl = alloca %struct.__va_list, align 8 %vl1 = bitcast %struct.__va_list* %vl to i8* call void @llvm.va_start(i8* %vl1) - %vr_offs_p = getelementptr inbounds %struct.__va_list* %vl, i64 0, i32 4 - %vr_offs = load i32* %vr_offs_p, align 4 + %vr_offs_p = getelementptr inbounds %struct.__va_list, %struct.__va_list* %vl, i64 0, i32 4 + %vr_offs = load i32, i32* %vr_offs_p, align 4 %0 = icmp sgt i32 %vr_offs, -1 br i1 %0, label %vaarg.on_stack, label %vaarg.maybe_reg @@ -33,26 +33,26 @@ vaarg.maybe_reg: ; preds = %entry br i1 %inreg, label %vaarg.in_reg, label %vaarg.on_stack vaarg.in_reg: ; preds = %vaarg.maybe_reg - %reg_top_p = getelementptr inbounds %struct.__va_list* %vl, i64 0, i32 2 - %reg_top = load i8** %reg_top_p, align 8 + %reg_top_p = getelementptr inbounds %struct.__va_list, %struct.__va_list* %vl, i64 0, i32 2 + %reg_top = load i8*, i8** %reg_top_p, align 8 %1 = sext i32 %vr_offs to i64 - %2 = getelementptr i8* %reg_top, i64 %1 + %2 = getelementptr i8, i8* %reg_top, i64 %1 %3 = ptrtoint i8* %2 to i64 %align_be = add i64 %3, 8 %4 = inttoptr i64 %align_be to i8* br label %vaarg.end vaarg.on_stack: ; preds = %vaarg.maybe_reg, %entry - %stack_p = getelementptr inbounds %struct.__va_list* %vl, i64 0, i32 0 - %stack = load i8** %stack_p, align 8 - %new_stack = getelementptr i8* %stack, i64 8 + %stack_p = getelementptr inbounds %struct.__va_list, %struct.__va_list* %vl, i64 0, i32 0 + %stack = load i8*, i8** %stack_p, align 8 + %new_stack = getelementptr i8, i8* %stack, i64 8 store i8* %new_stack, i8** %stack_p, align 8 br label %vaarg.end vaarg.end: ; preds = %vaarg.on_stack, %vaarg.in_reg %.sink = phi i8* [ %4, %vaarg.in_reg ], [ %stack, %vaarg.on_stack ] %5 = bitcast i8* %.sink to double* - %6 = load double* %5, align 8 + %6 = load double, double* %5, align 8 call void @llvm.va_end(i8* %vl1) ret double %6 } |