summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-06 18:24:38 +0000
committerDan Gohman <gohman@apple.com>2010-08-06 18:24:38 +0000
commite26a7b5e21a49543a727b1b2524a934e73c89772 (patch)
tree71074a265fda7833e1eb92578a2c75b56e3668d5 /test
parente6f60645c7aa208e03b3804bcf8489e08dacff0a (diff)
downloadllvm-e26a7b5e21a49543a727b1b2524a934e73c89772.tar.gz
llvm-e26a7b5e21a49543a727b1b2524a934e73c89772.tar.bz2
llvm-e26a7b5e21a49543a727b1b2524a934e73c89772.tar.xz
Implement a proper getModRefInfo for va_arg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110458 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Analysis/BasicAA/modref.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Analysis/BasicAA/modref.ll b/test/Analysis/BasicAA/modref.ll
index a2aabf135f..b9a3c5e58f 100644
--- a/test/Analysis/BasicAA/modref.ll
+++ b/test/Analysis/BasicAA/modref.ll
@@ -123,3 +123,14 @@ define i32 @test5(i8* %P, i32 %Len) {
; CHECK: sub i32 %tmp, %tmp
}
+define i8 @test6(i8* %p, i8* noalias %a) {
+ %x = load i8* %a
+ %t = va_arg i8* %p, float
+ %y = load i8* %a
+ %z = add i8 %x, %y
+ ret i8 %z
+; CHECK: @test6
+; CHECK: load i8* %a
+; CHECK-NOT: load
+; CHECK: ret
+}