mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40128 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d2f09965e6
commit
3e54953c5f
@ -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