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:
parent
c157b172c1
commit
925762f19b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user