1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 15:32:52 +01:00
llvm-mirror/test/Regression/Transforms/DeadStoreElimination/2005-11-30-vaarg.ll
Chris Lattner bf0175cf8f new testcase dse is miscompiling
llvm-svn: 24544
2005-11-30 19:37:08 +00:00

10 lines
253 B
LLVM

; RUN: llvm-as < %s | opt -dse | llvm-dis | grep store
double %foo(sbyte* %X) {
%X_addr = alloca sbyte*
store sbyte* %X, sbyte** %X_addr ;; not a dead store.
%tmp.0 = va_arg sbyte** %X_addr, double
ret double %tmp.0
}