Need -O1 or better to have these builtins lowered to

llvm intrinsics in llvm-gcc-4.2.  This is because
get_pointer_alignment bails out: it relies on TER
to compute accurate alignment information.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40128 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands 2007-07-20 22:39:06 +00:00
parent d2f09965e6
commit 3e54953c5f

View File

@ -1,4 +1,5 @@
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.memset | wc -l | grep 3
// RUN: %llvmgcc -xc %s -c -O1 -o - | llvm-dis | grep llvm.memset | \
// RUN: wc -l | grep 3
void test(int* X, char *Y) {
memset(X, 4, 1000);