diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-06 18:24:38 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-06 18:24:38 +0000 |
commit | e26a7b5e21a49543a727b1b2524a934e73c89772 (patch) | |
tree | 71074a265fda7833e1eb92578a2c75b56e3668d5 /test/Analysis | |
parent | e6f60645c7aa208e03b3804bcf8489e08dacff0a (diff) | |
download | external_llvm-e26a7b5e21a49543a727b1b2524a934e73c89772.zip external_llvm-e26a7b5e21a49543a727b1b2524a934e73c89772.tar.gz external_llvm-e26a7b5e21a49543a727b1b2524a934e73c89772.tar.bz2 |
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/Analysis')
-rw-r--r-- | test/Analysis/BasicAA/modref.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Analysis/BasicAA/modref.ll b/test/Analysis/BasicAA/modref.ll index a2aabf1..b9a3c5e 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 +} |