summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/va_arg.ll
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-05-30 08:59:55 +0000
committerTim Northover <tnorthover@apple.com>2014-05-30 08:59:55 +0000
commitce6538c38dd70a15552152f21045cf5b0beb61d5 (patch)
tree7d7f4119d6a01ad54a2a6fd859713997f4528a7f /llvm/test/CodeGen/ARM/va_arg.ll
parentdd7cb285725fb32af4cb984038a48cef2288e46f (diff)
downloadbcm5719-llvm-ce6538c38dd70a15552152f21045cf5b0beb61d5.tar.gz
bcm5719-llvm-ce6538c38dd70a15552152f21045cf5b0beb61d5.zip
AArch64 & ARM: remove undefined behaviour from some tests.
llvm-svn: 209880
Diffstat (limited to 'llvm/test/CodeGen/ARM/va_arg.ll')
-rw-r--r--llvm/test/CodeGen/ARM/va_arg.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/ARM/va_arg.ll b/llvm/test/CodeGen/ARM/va_arg.ll
index f18b4982284..d901a7461fc 100644
--- a/llvm/test/CodeGen/ARM/va_arg.ll
+++ b/llvm/test/CodeGen/ARM/va_arg.ll
@@ -24,13 +24,13 @@ entry:
; CHECK-NOT: bfc
; CHECK: bx lr
-define double @test2(i32 %a, i32 %b, ...) nounwind optsize {
+define double @test2(i32 %a, i32* %b, ...) nounwind optsize {
entry:
%ap = alloca i8*, align 4 ; <i8**> [#uses=3]
%ap1 = bitcast i8** %ap to i8* ; <i8*> [#uses=2]
call void @llvm.va_start(i8* %ap1)
%0 = va_arg i8** %ap, i32 ; <i32> [#uses=0]
- store i32 %0, i32* undef
+ store i32 %0, i32* %b
%1 = va_arg i8** %ap, double ; <double> [#uses=1]
call void @llvm.va_end(i8* %ap1)
ret double %1
OpenPOWER on IntegriCloud