1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

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.

llvm-svn: 40128
This commit is contained in:
Duncan Sands 2007-07-20 22:39:06 +00:00
parent c157b172c1
commit 925762f19b

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);