mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-24 09:29:42 +00:00
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9817 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
102f1b68d4
commit
07909a317c
@ -2,4 +2,3 @@ typedef struct { } rwlock_t;
|
||||
struct fs_struct { rwlock_t lock; int umask; };
|
||||
void __copy_fs_struct(struct fs_struct *fs) { fs->lock = (rwlock_t) { }; }
|
||||
|
||||
|
||||
|
@ -0,0 +1,9 @@
|
||||
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep getelementptr
|
||||
|
||||
char *test(char* C) {
|
||||
return C-1; // Should turn into a GEP
|
||||
}
|
||||
|
||||
int *test2(int* I) {
|
||||
return I-1;
|
||||
}
|
Loading…
Reference in New Issue
Block a user